Youtube, AIR and StageWebView
If you want to insert a Youtube video in your Adobe AIR app, you’re lucky. The most important thing is to know the player URL:
http://www.youtube.com/embed/id_video
This URL works in almost all devices and browsers, if your browser don’t support flash player an HTML5 player will be used. In order to use the magic URL, we create our own browser with the following code:
In mobile devices this address will use the native player with many options like volume, fullscreen and more. Pretty good solution.