You should create your own, like this
=================
A)Prepare your flash document
=================
On a clean flash document:
Find on your library panel a button on the top left clic it and select New
Video,
Select Embedded Video a put the name of videop
It will be added to your library, pull it to your stage.
Then create a button (any object will do user your imagination)
And a dynamic text field and put a variable name to it use "buf"
==================
B)Add the following code
==================
Put code similar to this on a single frame (replace serveripaddress for your
server IP)
var nc:NetConnection = new NetConnection(); //create a conection object
nc.connect("rtmp://serveripaddress/oflaDemo"); //connecto to red 5 server
var ns:NetStream; //create stream variable
ns = new NetStream(nc); //asign connection to stream variable
ns.onStatus = function (info) { //activate on status change
trace("LOG" + info.code);
if (info.code=='NetStream.Buffer.Empty') {_root.buf='Almacenando en
Buffer...';}
if (info.code=='NetStream.Buffer.Full') {_root.buf='';}
}
_root.videop.attachVideo(ns); //attach stream to video object on stage
ns.setBufferTime(2); //set buffer move 2 to what ever you like
====================
c)Then create a button with this action script
Replace yourmovie.flv with the movie youuploaded to the streams folder of
/webapps/oflaDemo/streams
=====================
on (press){
_root.ns.play("yourmovie.flv"); //play movie use your imagination to create
stop button or pause.
}
Good Luck
Rodrigo O
Xnet
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Marko Kobal
Sent: MiƩrcoles, 06 de Diciembre de 2006 03:47 a.m.
To: [email protected]
Subject: Re: [Red5] simple movie player
Hi,
Dan Rossi says:
> i dont know where those flashvars are going but try adding an entry in
> the playlist.xml file
>
> <track>
>
> <title>Afraid</title>
>
> <creator>Jeroen Wijering</creator>
>
>
> <location>rtmp://localhost/oflaDemo/Spiderman3_trailer_300.flv</locati
> on>
>
> </track>
>
Doesn't work. :(
The big question still remains - has anybody successfuly used any simple
video player (other than oflaDemo) by rtmp with red5?
--
Kind regards, Marko Kobal.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org