chewie icon indicating copy to clipboard operation
chewie copied to clipboard

How to exit fullscreen by pressing phone's back key.

Open yslings opened this issue 6 years ago • 3 comments

使用chewie插件,发现视频全屏播放状态下,按手机返回键不是退出全屏,而是返回上一个页面。如何设置,全屏播放状态下,按手机返回键退出全屏而不是返回上一个页面。

(google translate) Use chewie plug-in and find that when the video is playing in full screen, pressing the mobile phone's return key does not exit the full screen, but returns to the previous page. How to set, in full-screen playback state, press the phone's back key to exit full screen instead of returning to the previous page.

yslings avatar Oct 15 '19 08:10 yslings

Please add a full example where you see this problem.

(请在出现此问题的地方添加一个完整的示例。)

cbenhagen avatar Dec 22 '19 14:12 cbenhagen

使用chewie插件,发现视频全屏播放状态下,按手机返回键不是退出全屏,而是返回上一个页面。如何设置,全屏播放状态下,按手机返回键退出全屏而不是返回上一个页面。

(google translate)

Use chewie plug-in and find that when the video is playing in full screen, pressing the mobile phone's return key does not exit the full screen, but returns to the previous page. How to set, in full-screen playback state, press the phone's back key to exit full screen instead of returning to the previous page.

@yslings Very good issue here! 👏🏻 I encountered the same. I'll have a look into the code and try to add WillPopScope

Ahmadre avatar Nov 11 '20 01:11 Ahmadre

I've set autoPlay to true and fullScreenByDefault to true, first press on Back button exits full screen but immediately goes back to full screen, second press exits full screen and the third button exits the screen

markfili avatar Dec 21 '21 12:12 markfili

[Android]

@Ahmadre Any updates..? Not only this issue, I just tried to put WillPopScope on the Scaffold where the grand children has Chewie.

스크린샷 2023-01-06 오전 9 40 49

When the player isn't playing, it works normal but when the Chewie is playing a video, it rebuilds itself and pauses the video from playing.


Just discovered another thiing.. same sourse as above, clicking on back button in the app bar works as normal, but the device back key pressing works abnormal...

BROUDING avatar Jan 06 '23 00:01 BROUDING