Copy link to clipboard
Copied
Hey Guys,
I built an app for ios that displays html in a stagewebview and in that html, is youtube vidoes that when you click on play in the native player for ios.
I am trying to do that for andriod, and it is not working.
Any ideas? It is just showing up blank where the video should go? I am using air 3.2 with cs6.
Thanks
Copy link to clipboard
Copied
Here is more info.
It shows a black box on my samsung tab 10.1, and if you tapp on it really fast you can get it to go into fullscreen mode where it place the youtube video. Any one have any ideas on how to get it to work in non full screen.
webView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 100, screenWidth, 779 );
htmlString = '<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/YOsrVaLbKCY" frameborder="0"></iframe>';
webView.loadString( htmlString );
please Help!
Copy link to clipboard
Copied
It seems that youtube has blocked it, because its runs few months ago:
stageWebView.loadURL( 'http://www.youtube.com/v/YOsrVaLbKCY?version=3' );
Copy link to clipboard
Copied
It seems to work with "http://youtube.googleapis.com/v/0msotE6Ygqk?version=3"
But I suppose you can use it with any video...
I am about to test in my tablet...in my desktop works fine.
Copy link to clipboard
Copied
I tested it. It works.