When loading Youtube videos through the StageWebView Air component I need the video to be scaled down to the viewport size, displaying black bars is ok, however what I end up seeing is a cropped version of the original size of the video instead.
I'm not seeing any extra parameters that I could use, the API seems to be very limited.
Any ideas how to play the video so even if the source is larger I can resize it to the viewport size?.
Normally I display Youtube as shown in this other Answer (but that loads a Flash Player version, which you may not want). PS: Remember it's use
.com/v/VID_IDfor Flash Player or use.com/embed/VID_IDfor HTML5 Player.You say you have similar code as the Android example posted as Answer? Why not try to open an
iframeinstead since that would allow a resize option?An example of a custom size Youtube iframe...
To open within iframe you'd have to make a dynamic webpage by code. Code below is untested but is based on this idea from Adobe forums. Just a starting point you could adjust / fix...