i created a webview for playing the html5 video. I find that on the 2.3.3(HTC), when i start playing the video, it automatically goto fullscreen mode, but on my nexus 4, it plays in embedded mode. I want it play in full-screen mode also in android 4.x, is there any hint?
Furthermore, I find several links about videos playing in fullscreen mode, such as Android Webview app won't let video player go full screen
Playing HTML5 video on fullscreen in android webview
But they seems the case it failed playing full-screen with "full screen" button, not the start playing button. After all, when press "full screen" button, the WebChromeClient
's onShowCustomView
is invoked, but how about the "play" button?
[------------------------------UPDATE--------------------------]
seems quite hard to achieve this. The only article seeming suitable for this is enter link description here
but I have not made it through till now..