[Red5] pause and resume ?
Dominick Accattato
daccattato at gmail.com
Tue Nov 1 16:42:34 EST 2005
I believe I had it working with a simple
ns.pause();
and then a simple
ns.play(); // to resume
On 11/1/05, Luke Hubbard (luke at codegent.com) <king.selassie at gmail.com>
wrote:
>
> :)
>
> Well actually i think i hooked up pause, but pressing play again doesnt
> start it.
> You can expect this to be fixed by the 0.4 release.
>
> -- luke
>
> On 11/2/05, John Grden <neoriley at gmail.com> wrote:
>
> > These are calls that don't exist yet ;) Play is the only one (I think,
> > luke pipe in here) that exists right now
> >
> > On 11/1/05, Adam Procter < adam.procter at luton.ac.uk> wrote:
> > >
> > > Thanks for all the help , I now have my own videos streaming from
> > > red5 ! which is great
> > >
> > > I was wondering why or if I cant pause and resume my streaming clip ?
> > > It streams ok
> > >
> > > but if I add a pause and play buttons if i press to pause I cannot
> > > resume playback
> > >
> > > var nc:NetConnection = new NetConnection;
> > > nc.connect("rtmp://localhost:1936/oflaDemo/demoService");
> > > var ns:NetStream = new NetStream(nc);
> > >
> > > ns.onStatus = function(obj)
> > > {
> > > trace(obj.code);
> > > }
> > >
> > > myVideo.attachVideo (ns);
> > > ns.play("help.flv");
> > >
> > > //comment out for the moment
> > > //ns.pause();
> > >
> > > var videoInterval = setInterval (videostatus, 100);
> > >
> > > var amountLoader:Number;
> > >
> > > function videostatus () {
> > > amountLoaded = ns.bytesLoaded / ns.bytesTotal;
> > > loader_mc.loadbar_mc._width = amountLoaded * 84;
> > > }
> > >
> > > test_btn.onPress = function(){
> > > ns.play("help.flv");
> > > }
> > > test_btn2.onPress = function(){
> > > ns.pause();
> > > }
> > >
> > >
> > > I guess I am missing something ?
> > >
> > > Thanks again
> > > Adam
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> >
> >
> >
> > --
> > John Grden - Blitz
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20051101/f0aec314/attachment.htm
More information about the Red5
mailing list