daohoangson / flutter_widget_from_html

Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.
https://pub.dev/packages/flutter_widget_from_html
MIT License
632 stars 233 forks source link

Automatically change Youtube video orientation in Webview to landscape in full screen mode #1282

Open Aanu1995 opened 3 months ago

Aanu1995 commented 3 months ago

Thank you very much for this plugin. Currently, when user enters full screen mode when playing Youtube video on iphone, the video does not go to landscape mode until user changes the orientation of the device to landscape. On video player in iphone, when user enters full screen, the video player orientation changes to landscape and on exit full screen screen, changes back to portrait.

I want to know if it is possible to make Youtube video in iframe to change to orientation to landscape automatically on entering full screen mode just like the video player. Thank you.

daohoangson commented 3 months ago

This may be possible to do by waiting for the fullscreen event and force a orientation change I think.

Aanu1995 commented 3 months ago

okay. Thank you