Skip to content

Commit

Permalink
Apply patches
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed Jan 19, 2023
1 parent 82123dc commit 9942654
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/youtube_player_iframe/assets/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
case 'web':
window.parent.postMessage(messageString, '*');
break;
default:
YoutubePlayer.postMessage(messageString, '*');
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/youtube_player_iframe/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class _YoutubeAppDemoState extends State<YoutubeAppDemo> {
),
body: LayoutBuilder(
builder: (context, constraints) {
if (kIsWeb && constraints.maxWidth > 750) {
if (constraints.maxWidth > 750) {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expand Down
3 changes: 2 additions & 1 deletion packages/youtube_player_iframe/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ environment:
dependencies:
flutter:
sdk: flutter

url_launcher_tizen: ^2.1.1
webview_flutter_tizen: ^0.6.2
youtube_player_iframe:
path: ../

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ class _YoutubePlayerState extends State<YoutubePlayer> {
featureName = params['feature'];
} else if (path == '/watch') {
featureName = 'emb_info';
} else if (defaultTargetPlatform == TargetPlatform.iOS) {
} else if (defaultTargetPlatform == TargetPlatform.iOS ||
defaultTargetPlatform == TargetPlatform.linux) {
return NavigationDecision.navigate;
}

Expand Down

0 comments on commit 9942654

Please sign in to comment.