Android Question couldn't use WebView to playback Youtube Vedio

Albert Lin

Member
Licensed User
Longtime User
Dear All

I used the WebView to loadURL to play the youtube Vedio, but it couldn't work.
What's wrong with it? the attachment is the project I made. The program can be call out the Youtube Vedio. but when I click <Play>, there's no reponse.

Thanks for any suggestion

Albert Lin
 

Attachments

  • ch12-6A.zip
    267.5 KB · Views: 136

Albert Lin

Member
Licensed User
Longtime User
Which device are you using? What is the Android version?

This code works on Android 6.0:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("1")
  
   WebView1.LoadUrl("https://www.youtube.com/watch?v=noQLB3wo47k")
End Sub
My is Android 4.4.4
 
Upvote 0
Top