WebView Youtube iframe allowfullscreen doesn't work


#1

hi all,

I am displaying youtube video inside WebView, but I can’t get full screen option working. Based on my research allowfullscreen option should be enough, but full screen button doesn’t appear in player. Did anybody had similar issue? Thanks

<GridLayout height="280"> 
 <WebView src="<iframe  width='340' height='280' src='https://www.youtube.com/embed/oqrdfYnTdR8' frameborder='0' allowfullscreen></iframe>">
 </WebView>
</GridLayout>

#2

It appears that you need a custom implementation of the WebView component on android to play videos in fullscreen.

http://stackoverflow.com/questions/15796661/android-webview-app-wont-let-video-player-go-full-screen/16199649#16199649


Android video fullscreen not working in Webview
#3

@Pete.K thanks for reply. I am new to mobile development, could share code or example how to implement it in nativeScript? Thank you