If you're using a mobile phone browser to access YouTube, it's likely that the YouTube servers are giving you special mobile content (m.youtube.com) which uses H.264 for the videos rather than FLV. I don't think the entire range of YouTube content is available in this way...
Not sure whether you'd be better off using your SWF from a stand-alone player, it depends how the player puts together its user agent profile string...
on behalf of Andy Herzberg
Sent: Wed 26/08/2009 23:08
Subject: [Disarmed] [FlashLite] Youtube like Flash Mobile Application
I'm trying to build an Youtube like mobile Flash Player in Flash Lite 3.0 that should be embedded in xhtml and work with progressive download.
Things seemed to work when I tested with WIFI but when I test on a real device the browser seems to load the video but it isn't played in the Flash Movie... :-(
The code is really simple:
var my_nc:NetConnection = new NetConnection();
var my_ns:NetStream = new NetStream(my_nc);
Via _level0.myURL I pass the video URL to the Flash Movie.
You may see my example:
I tried with different buffer times but via UMTS the video is not shown... Where is the mistake? I took a really short video snipped so that doesn't seem to be the case.
Does Youtube work with real streaming from a FMS - is that the only way?
Many thanks for any hint!