A Albert Lin Member Licensed User Longtime User Dec 4, 2015 #1 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: 281
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
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2015 #2 Are you setting this attribute: https://www.b4x.com/android/forum/threads/problem-with-webview-and-youtube.18130/#post-104105 Upvote 0
Are you setting this attribute: https://www.b4x.com/android/forum/threads/problem-with-webview-and-youtube.18130/#post-104105
A Albert Lin Member Licensed User Longtime User Dec 11, 2015 #3 Erel said: Are you setting this attribute: https://www.b4x.com/android/forum/threads/problem-with-webview-and-youtube.18130/#post-104105 Click to expand... I added SetActivityAttribute(main, android:hardwareAccelerated, "true"), but it is still not working Upvote 0
Erel said: Are you setting this attribute: https://www.b4x.com/android/forum/threads/problem-with-webview-and-youtube.18130/#post-104105 Click to expand... I added SetActivityAttribute(main, android:hardwareAccelerated, "true"), but it is still not working
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2015 #4 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 Upvote 0
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
A Albert Lin Member Licensed User Longtime User Dec 14, 2015 #5 Erel said: 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 Click to expand... My is Android 4.4.4 Upvote 0
Erel said: 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 Click to expand... My is Android 4.4.4
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2015 #6 It is a real device, right? Might be a problem with the native WebView implementation. You can use the YouTube library instead. Upvote 0
It is a real device, right? Might be a problem with the native WebView implementation. You can use the YouTube library instead.
A Albert Lin Member Licensed User Longtime User Dec 14, 2015 #7 Yes, it's a real device. Do you have a YouTube library example? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2015 #8 https://www.b4x.com/search?query=YouTube+library Upvote 0