Skip to content

Commit

Permalink
🐛 fixed video playback issue in web release
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbagyastha committed Dec 26, 2022
1 parent 7534818 commit 83fe63b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 46 deletions.
4 changes: 4 additions & 0 deletions packages/youtube_player_iframe/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.0.1
**Dec 26, 2022**
- Fixed video playback issue in web release.

## 4.0.0
**Dec 25, 2022**

Expand Down
43 changes: 0 additions & 43 deletions packages/youtube_player_iframe/example/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion packages/youtube_player_iframe/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ class YoutubePlayerController implements YoutubePlayerIFrameAPI {
/// Loads the player with default [params].
@internal
Future<void> init() async {
await webViewController.runJavaScript('var isWeb = $kIsWeb;');
await load(params: params, baseUrl: params.origin);

if (!_initCompleter.isCompleted) _initCompleter.complete();
Expand Down
2 changes: 1 addition & 1 deletion packages/youtube_player_iframe/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 83fe63b

Please sign in to comment.