akhgupta / WebviewVideo

sample app for displaying Html5Video using Webview in Android
106 stars 52 forks source link

On rotating device, full screen video not working. #1

Open numair96 opened 11 years ago

numair96 commented 11 years ago

Hi, Your code helped me a lot, but I'm stuck in a problem. I'm working on a project that contains TabsActivity. In Youtube tab, when I play video in full screen and rotate the device, it plays in portrait only. I've tried hiding the Tabs and my top bar too. Still no progress. I've set all my views in portrait mode android:screenOrientation="portrait". If I set my Youtube activity to noSensor, the Tab activity restarts and I switched back to Home tab. I've noticed that while rotating it gives me this warning..

W/MediaPlayer(2324): setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder

Please give solution for this.

P.S. Auto-rotate screen option is enabled.

manel00 commented 9 years ago

<activity android:name=".YourOwnWebViewActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|navigation">

is this what you need?