Highlighted

Android StageWebview won't play youtube videos

New Here ,
Aug 08, 2012

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

Topics

Development

Views

2.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Android StageWebview won't play youtube videos

New Here ,
Aug 08, 2012

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

Topics

Development

Views

2.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Aug 09, 2012

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Sep 19, 2012

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' );

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Dec 15, 2012

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Dec 16, 2012

Copy link to clipboard

Copied

I tested it. It works.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...