diff --git a/packages/youtube_player_iframe/CHANGELOG.md b/packages/youtube_player_iframe/CHANGELOG.md index 2b99aabf..f35365aa 100644 --- a/packages/youtube_player_iframe/CHANGELOG.md +++ b/packages/youtube_player_iframe/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 4.0.1 +**Dec 26, 2022** +- Fixed video playback issue in web release. + ## 4.0.0 **Dec 25, 2022** diff --git a/packages/youtube_player_iframe/example/.gitignore b/packages/youtube_player_iframe/example/.gitignore deleted file mode 100644 index 1ba9c339..00000000 --- a/packages/youtube_player_iframe/example/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Exceptions to above rules. -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/packages/youtube_player_iframe/example/pubspec.yaml b/packages/youtube_player_iframe/example/pubspec.yaml index d2820c1d..d13307e8 100644 --- a/packages/youtube_player_iframe/example/pubspec.yaml +++ b/packages/youtube_player_iframe/example/pubspec.yaml @@ -1,7 +1,7 @@ name: youtube_player_iframe_example description: Demonstrates how to use the youtube_player_iframe plugin. publish_to: 'none' -version: &yp_version 4.0.0 +version: &yp_version 4.0.1 environment: sdk: '>=2.17.0 <3.0.0' diff --git a/packages/youtube_player_iframe/lib/src/controller/youtube_player_controller.dart b/packages/youtube_player_iframe/lib/src/controller/youtube_player_controller.dart index 9ea71a34..dc139544 100644 --- a/packages/youtube_player_iframe/lib/src/controller/youtube_player_controller.dart +++ b/packages/youtube_player_iframe/lib/src/controller/youtube_player_controller.dart @@ -247,7 +247,6 @@ class YoutubePlayerController implements YoutubePlayerIFrameAPI { /// Loads the player with default [params]. @internal Future init() async { - await webViewController.runJavaScript('var isWeb = $kIsWeb;'); await load(params: params, baseUrl: params.origin); if (!_initCompleter.isCompleted) _initCompleter.complete(); diff --git a/packages/youtube_player_iframe/pubspec.yaml b/packages/youtube_player_iframe/pubspec.yaml index 5a5c2d93..8b463980 100644 --- a/packages/youtube_player_iframe/pubspec.yaml +++ b/packages/youtube_player_iframe/pubspec.yaml @@ -1,6 +1,6 @@ name: youtube_player_iframe description: Flutter port of the official YouTube iFrame player API. Supports web & mobile platforms. -version: 4.0.0 +version: 4.0.1 repository: https://github.com/sarbagyastha/youtube_player_flutter homepage: https://github.com/sarbagyastha/youtube_player_flutter/tree/master/packages/youtube_player_iframe