Khuram U. Khalid

Results 35 comments of Khuram U. Khalid

There isn't such functionality built in the player but this is something your app can handle. See below code to programmatically toggle fullscreen. ```dart if (widget.orientation == Orientation.landscape) { await...

Try adding this to Video(), ``` onViewCreated: (viewId) { listenForVideoPlayerEvents(viewId); }, ```

Please see `lib/player_observer.dart`. It's just an `EventChannel` based on the created `viewId`. ``` EventChannel eventChannel = EventChannel( "tv.mta/NativeVideoPlayerEventChannel_$viewId", JSONMethodCodec()); eventChannel.receiveBroadcastStream().listen(_processEvent); ``` Then see implementation of `_processEvent(dynamic event)` for various events.

Right so with this there would be a few things to iron out. Firstly, I think this would make the client code more unreadable since `onPlayerEvents` would be responsible for...

Which platform are you trying this on? Android or iOS?

This isn't necessarily an issue with the native player. It just means something went wrong during the player setup. It could be an unexpected input, some edge case we didn't...

You can use the `onPlay` through `PlayerObserver` to get notified when video starts playing. You can then hide the loading indicator. Checkout the example for this.

Under `example/lib/video.dart` inside the video player state there is a `url` String which is `null`. Follow that variable to see how to pass it to the `Video` widget. Also setting...

Which version are you using?

Please use [2.0.2-rc2](https://pub.dev/packages/flutter_playout/versions/2.0.2-rc2). With this version you will also need to do a bit more setup for the plugin. Please see [this](https://github.com/muslimtv/flutter_playout/issues/86) issue for details.