I'm trying to play YouTube videos embedded in a browser.
I'm relying on Mobile_Browser_Example. (Project attached).
In iOS devices works well.
In Android device, you can hear the audio, but no video.
Tested with multiple devices (tablets).
Actually, activating 'Force hardware acceleration' in the device's Development Options, it works…
…but that's not enough:
- Would have to work by activating the acceleration from within the app.
- And what if the device has no hardware acceleration or rejects setting it?
Also activate LiveCode hardware acceleration by acceleratedRendering has no effect.
In Youtube normal full page (not embedded) it works, so it should work without the forcing HW acceleration trick.
Testing:
What I'm changing in the Mobile_Browser_Example comes down to this:
Code: Select all
set the acceleratedRendering of this stack to true
mobileControlSet sBrowserId, "url", "http://www.youtube.com/embed/bmnfPm2Oo7s?html5=1"
You can make aditional tests in the device on this page from Google.
(Here are generated URLs to embed, wich works in the device's browser, but not in the LiveCode browser):
https://developers.google.com/youtube/y ... layer_demo