sot bel Member Jan 30, 2024 #1 Hello I am trying to play youtube video in a full screen landscape app without luck. I want to use a youtube link like this :www.youtube.com/watch?v=-BIq32-qEgA I tried many ways, examples and libraries.. Ιs there any other way ?
Hello I am trying to play youtube video in a full screen landscape app without luck. I want to use a youtube link like this :www.youtube.com/watch?v=-BIq32-qEgA I tried many ways, examples and libraries.. Ιs there any other way ?
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2024 #2 This is not a link to a video stream. You need to open it with WebView. Upvote 0
sot bel Member Jan 30, 2024 #3 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
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>"$)