javascript - Android: Playing html videos in full screen -


i loading html page on webview, has list of videos. when try play videos, playing unable make them play in full screen. have used below code in html file, , on debugging found 'element.webkitrequestfullscreen' says 'undefined'. on searching web , found videoel.webkitenterfullscreen();, read not working on android 4. possible this? or shall drop idea?

 function launchfullscreen(element) {     alert("launchfullscreen"+element.webkitrequestfullscreen);       if (element.requestfullscreen) {         element.requestfullscreen();       } else if (element.mozrequestfullscreen) {         element.mozrequestfullscreen();       } else if (element.webkitrequestfullscreen) {         element.webkitrequestfullscreen();       }     } 

if ok solving in java/android, try guy's solution. adapted needs , must works fine. remember call onhidecustomview manually when exiting fullscreen means of button. not work on devices (like s3).

but if looking element.webkitrequestfullscreen(); work im ears. same issue here atm.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -