Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]全屏报错 #21

Closed
slimcheng opened this issue Apr 17, 2020 · 7 comments
Closed

[Bug Report]全屏报错 #21

slimcheng opened this issue Apr 17, 2020 · 7 comments

Comments

@slimcheng
Copy link

系统:安卓8.0.0
插件版本:1.0.8

E/flutter ( 4166): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method SystemChrome.forceOrientation on channel sososdk.github.com/orientation)

E/flutter ( 4166): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)

E/flutter ( 4166):  < asynchronous suspension >

E/flutter ( 4166): #1      OrientationPlugin.forceOrientation (package:orientation/orientation.dart:35:26)

E/flutter ( 4166): #2      _AwsomeVideoPlayerState.toggleFullScreen (package:awsome_video_player/src/video.dart:342:25)

E/flutter ( 4166): #3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
@chudongvip
Copy link
Owner

系统:安卓8.0.0
插件版本:1.0.8

E/flutter ( 4166): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method SystemChrome.forceOrientation on channel sososdk.github.com/orientation)

E/flutter ( 4166): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)

E/flutter ( 4166):  < asynchronous suspension >

E/flutter ( 4166): #1      OrientationPlugin.forceOrientation (package:orientation/orientation.dart:35:26)

E/flutter ( 4166): #2      _AwsomeVideoPlayerState.toggleFullScreen (package:awsome_video_player/src/video.dart:342:25)

E/flutter ( 4166): #3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)

全屏需要通过onfullscreen回调,隐藏掉页面掉其他元素,这个会在今后的几个版本中优化,最快这个周末完成

@slimcheng
Copy link
Author

系统:安卓8.0.0
插件版本:1.0.8

E/flutter ( 4166): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method SystemChrome.forceOrientation on channel sososdk.github.com/orientation)

E/flutter ( 4166): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)

E/flutter ( 4166):  < asynchronous suspension >

E/flutter ( 4166): #1      OrientationPlugin.forceOrientation (package:orientation/orientation.dart:35:26)

E/flutter ( 4166): #2      _AwsomeVideoPlayerState.toggleFullScreen (package:awsome_video_player/src/video.dart:342:25)

E/flutter ( 4166): #3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)

全屏需要通过onfullscreen回调,隐藏掉页面掉其他元素,这个会在今后的几个版本中优化,最快这个周末完成

你好,不是这个问题,是直接报错了,没有进到回调方法里,报错信息如上

@chudongvip
Copy link
Owner

系统:安卓8.0.0
插件版本:1.0.8

E/flutter ( 4166): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method SystemChrome.forceOrientation on channel sososdk.github.com/orientation)

E/flutter ( 4166): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)

E/flutter ( 4166):  < asynchronous suspension >

E/flutter ( 4166): #1      OrientationPlugin.forceOrientation (package:orientation/orientation.dart:35:26)

E/flutter ( 4166): #2      _AwsomeVideoPlayerState.toggleFullScreen (package:awsome_video_player/src/video.dart:342:25)

E/flutter ( 4166): #3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)

全屏需要通过onfullscreen回调,隐藏掉页面掉其他元素,这个会在今后的几个版本中优化,最快这个周末完成

你好,不是这个问题,是直接报错了,没有进到回调方法里,报错信息如上

依赖没装好,或者是平台的问题,等我修复把,或者你用as打开项目,看看会不会安装一些插件

@slimcheng
Copy link
Author

嗯,非常感谢,试了下debug不行,但是release是好的

@slimcheng
Copy link
Author

补充一下
后来自定义UI的时候,封装到一个单独的Widget里面后全屏功能可以了。效果很棒😄

@frankyvij
Copy link

Hello. I have the similar problem. When I click on full screen icon, the screen changes orientation to Landscape mode; but it does not go to full-screen mode. I can still scroll. Please note that full-screen works perfectly fine with chewie.

@chudongvip
Copy link
Owner

Hello. I have the similar problem. When I click on full screen icon, the screen changes orientation to Landscape mode; but it does not go to full-screen mode. I can still scroll. Please note that full-screen works perfectly fine with chewie.

It will be optimized in a later release, and now you can hide other widget by calling back onfullscreen.

see example:
line: 40 and 360.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants