Comments (1)
I created custom player controls in Dart side and used the below code for making player go fullscreen (on fullscreen icon tap).
if (widget.orientation == Orientation.landscape) {
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
await SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
} else {
await SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]);
await SystemChrome.setEnabledSystemUIOverlays([]);
}
To make player go fullscreen automatically when user rotates the device, I just hide all other widgets from the view except player widget and I also set the width and height of player widget to the screen width and height. That gives the desired effect.
It would be nice to have the Android native player go fullscreen without Dart hacks similar to iOS native player.
from flutter_playout.
Related Issues (20)
- Add multiple quality and bitrate selection
- Full screen feature
- How to get the call back before and after player gets initialized HOT 3
- Can't mix audio if audio is already playing
- flutter android v2 embedding missing HOT 4
- iOS lock screen previous next buttons
- Question about iOS lock screen display
- 1
- A bug for Picture In Picture when back to home screen HOT 1
- Error playing video - Trying to create a platform view of unregistered type: tv.mta/NativeVideoPlayer - 2.0.2-rc1 HOT 6
- FAILURE: Build failed with an exception. HOT 1
- App Crash on Video Play. HOT 2
- Speed Controller
- deprecated HOT 1
- PIP not working
- flutter_playout/VideoPlayer.swift:159
- Can't play video in Android 12 playstore build.
- Cannot play audio HOT 1
- can not use this HOT 4
- Play media from user data resource
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_playout.