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
Post a Comment