Thursday, 15 August 2013

Embed YouTube video on Adobe Air application for Android (without bugs) -



Embed YouTube video on Adobe Air application for Android (without bugs) -

i trying create adobe air plays youtube video. however, have usual problems mentioned when using stagewebview:

if utilize hardware acceleration, video appears strangely. if don't initial video thumbnail appears sound played presenting black screen, until toggle fullscreen.

there variety of issues want ask, since find hard find clear reply on how add together youtube video within adobe air app android.

is there clear answer/tutorial presenting implementation of chromeless youtube player on adobe air android? is there way embed youtube video without looking flipped or causing black screen , crashes on app stagewebview? is possible utilize htmlloader embed youtube video in adobe air app using javascript , if yes, there tutorial?

i think issue many people have , it's not clear. lot.

[edit]the bad news app crashes when user tries go total screen [/edit] news - maybe. work using stagewebview - instead of loading external page utilize 'videoview.loadstring'

var videoview : stagewebview = new stagewebview(); videoview.stage = starling.current.nativestage; videoview.viewport = new rectangle( 100, 100, videoview.stage.stagewidth-200, videoview.stage.stageheight-200); var htmlstring:string = "<!doctype html><html><body><iframe class=\"youtube-player\" style=\"border: 0; width: 100%; height: 100%; padding:0px; margin:0px\" id=\"ytplayer\" type=\"text/html\" src=\"http://www.youtube.com/embed/dqcji_prat8?fs=0\" frameborder=\"0\"></iframe></body></html>"; videoview.loadstring( htmlstring, "text/html" );

and remember set <application android:hardwareaccelerated="true"> in manifestadditions.

android youtube air stagewebview chromeless

No comments:

Post a Comment