[Red5] Serverside stream and MetaData
Steven Gong
steven.gong at gmail.com
Mon Apr 14 18:49:09 PDT 2008
Look this implementation in SimplePlaylistController.nextItem():
if (nextIndex < playlist.getItemSize()) {
return nextIndex;
} else if (playlist.isRewind()) {
return playlist.getItemSize() > 0 ? 0 : -1;
} else {
return -1;
}
If the list is set to rewind, the item will go from the beginning. This is
also true for previousItem(). Dan, do you mean it doesn't work for you?
On Tue, Apr 15, 2008 at 9:39 AM, Daniel Rossi <spam at electroteque.org> wrote:
> I dont remember seeing setrewind hence my questions why setrepeat wasnt
> working properly. So i dont need to set a timer to check for the last
> playlist item and then run setItem ? So setrewind does the setItem for you
> when it reaches the end ?
>
> On 15/04/2008, at 11:07 AM, Steven Gong wrote:
>
> Hi Dan,
>
> On Tue, Apr 15, 2008 at 8:09 AM, Daniel Rossi <spam at electroteque.org>
> wrote:
>
> > Is that a new feature ? I dont remember seeing that ?
> >
> I think it should be there for quite a long time.
>
> >
> > On 15/04/2008, at 6:14 AM, Manuel R.G. wrote:
> >
> > 2008/4/14, Andy <bowljoman at hotmail.com>:
> > >
> > > There is repeat, yes, but doesnt 'rewind' work to start the whole
> > > thing up again?
> > >
> >
> > Yes:
> >
> > *theServerStream.setRewind(true);
> >
> > restart the serverStream when last item finished playing
> >
> > http://dl.fancycode.com/red5/api/org/red5/server/stream/ServerStream.html#setRewind(boolean) <http://dl.fancycode.com/red5/api/org/red5/server/stream/ServerStream.html#setRewind%28boolean%29>
> >
> > *
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> Best Regards
> Steven Gong
>
> InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com
>
> Red5 Developer: http://osflash.org/red5,
> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
>
> Javaflash Project Founder and Maintainer: http://osflash.org/javaflash
> _______________________________________________
> 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
>
>
--
Best Regards
Steven Gong
InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com
Red5 Developer: http://osflash.org/red5,
http://jira.red5.org/confluence/display/~steven/Home
Javaflash Project Founder and Maintainer: http://osflash.org/javaflash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080415/7d98aee2/attachment.html
More information about the Red5
mailing list