Youtube_player_flutter: [BUG] Video is not playing when changing to fullscreen mode

Created on 1 Oct 2020  路  3Comments  路  Source: sarbagyastha/youtube_player_flutter

After starting the video, rotating the device or switching to fullscreen mode through the controls stops the video and it produces the error message below.

MissingPluginException: MissingPluginException(No implementation found for method evaluateJavascript on channel com.pichillilorenzo/flutter_inappwebview_2) File "platform_channel.dart", line 159, in MethodChannel._invokeMethod File "<asynchronous suspension>" File "in_app_webview_controller.dart", line 1350, in InAppWebViewController.evaluateJavascript File "<asynchronous suspension>" File "unparsed"

Steps to reproduce the behavior:

  1. Start the video
  2. Enable fullscreen mode
  3. Video stops playing

    • OS: iOS & Android
    • Plugin Version 7.0.0+7

Similar issue: https://github.com/sarbagyastha/youtube_player_flutter/issues/242

bug

All 3 comments

same issue

I fix like this:

in full_screen_button.dart
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(
_controller.value.isFullScreen
? Icons.fullscreen_exit
: Icons.fullscreen,
color: widget.color,
),
onPressed: () => {
_controller.pause(),
Future.delayed(Duration(milliseconds: 200)).then((e) {
_controller.toggleFullScreenMode();
})
},
);
}

some solution to this problem ?

Was this page helpful?
0 / 5 - 0 ratings