If you reached till this blog looking for a flash player for your site that is able to play 3gp and other non-flv media files inside flash, then you need to know this:
In order to create and stablish a succesful playing of your files you need to initiate an
instance of NetStream.
[code]
var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);
stream_ns.client = this;
[/code]
The first two lines tell flash to connect to a server (like FMS) but wait we are not
looking for this connection, instead the ”null” parameter tells to connect sort of ”locally” or with the file itself. Next two lines tell flash to stream a file(yes you can ask flash to get contain of files using a “streaming connection”) and the client is THIS because as explained before the first two lines connected with the file itself.
[code]
var video:Video = new Video();
addChild(video);
video.attachNetStream(stream_ns);
stream_ns.play(”someFile.3gp”);
[/code]
Now this portion creates a video container (not anymore a physical component), then add it to the display list, once that is done the CONTENTS OF THE DECODED video are added so we can actually watch video, last line specifies which file will be played.
This is the BASIC script that plays non-flv files, OF COURSE you can add EventListeners to the NetStream instance so more information from the file can be pulled out.
PROBBLEMS (or incompatibility??)In my tests i realized that only mp4 coded and
HD coded files are able to be play by flash, yes with that i mean no many of mov files (Quicktime) out there are incompatible with this tricky script in flash, what’s more i tried playing 3gp files from a nokia 5200 and Motorola PEBL and flash was not able to play none of them.
Cheers!!!













Hola, bienvenido al area un tanto informal de nuestro sitio, donde conversamos de lo que sucede con la tecnología flash, conlusions.....before getting the products :)