Yes I tried directly through webview and the entire youtube screen appears with the ads etc... but the video windows states "an error occurred" Please try again later
as you can see here:
.
If I copy the entire address and paste it in I.E or Mozilla it comes up and plays.
To play a video from youtube , you can fire up chrome with jShell and get that to play the video
B4X:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Dim jsh As Shell
End Sub
Sub AppStart (Form1 As Form, Args() As String)
jsh.InitializeDoNotHandleQuotes("jsh","C:/the/really/long/pathname/to/where/chrome/is/chrome.exe",Array("--app=https://www.youtube.com/embed/CTNJ51ghzdY"))
jsh.Run(-1)
End Sub
The above will play the video in a chrome window that has no address bar etc
Thanks @Daestrum Your code is an alternative and works great. My problem is if the user does not have chrome installed it won't work. I could also use jshell with iexplore.exe but I was hoping to keep the video in the app.