Android Question Youtube video play

sot bel

Member
Thank you

Solved by using the WebView

B4X:
    WebView1.LoadHtml($"<iframe width=100% height=100% src="https://www.youtube.com/embed/-BIq32-qEgA?showinfo=0&autoplay=1&mute=1&enablejsapi=1&controls=0&disablekb=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>"$)
 
Upvote 0

Gary Miyakawa

Active Member
Licensed User
Longtime User
Thank you

Solved by using the WebView

B4X:
    WebView1.LoadHtml($"<iframe width=100% height=100% src="https://www.youtube.com/embed/-BIq32-qEgA?showinfo=0&autoplay=1&mute=1&enablejsapi=1&controls=0&disablekb=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>"$)
I attempted to use this method with a Live Stream from Africa. When it trys to play I get an error message about try again later. I've tried this on a number of the streams and it always fails. This is the "link" I'm trying to use.. https://www.youtube.com/embed/ZwxMY_3XZ_A

Any help would be greatly appreciated !

Gary M
 
Upvote 0
Top