[Red5] Get a list of available streams
Eric Haskins
ehask71 at gmail.com
Thu Feb 28 15:03:58 PST 2008
public Map getListOfAvailableFLVs() {
IScope scope = Red5.getConnectionLocal().getScope();
Map<String, Map> filesMap = new HashMap<String, Map>();
try {
log.debug("getting the FLV files");
Resource[] flvs = scope.getResources
("streams/*.flv");
addToMap(filesMap, flvs);
Resource[] mp3s = scope.getResources
("streams/*.mp3");
addToMap(filesMap, mp3s);
} catch (IOException e) {
log.error("{}", e);
}
return filesMap;
}
Is what I have now for getListOfAvailableFLVs() but I dont see "getting the
FLV files" as soon as you click connect I see a green light for a split
second then I get
net.connection.call.failed
If I comment out
nc.call("demoService.getListOfAvailableFLVs", nc_responder);
In flex it will stay connected
Eric
On Thu, Feb 28, 2008 at 5:36 PM, Eric Haskins <ehask71 at gmail.com> wrote:
> Lenny,
>
> Hmmm if I move the streams/ folder outside of the webapps/oflaDemo/
> I cant even hardcode a stream to play. So I believe I have them in the
> right place. I will see what I can come up with to debug it
>
> Eric
>
>
>
>
> On Thu, Feb 28, 2008 at 7:35 AM, Lenny Sorey <lrsorey at gmail.com> wrote:
>
> > Eric,
> >
> > Why don't you add a debugging statement to your
> > DemosService.java app to see where the getListOfAvailableFLVs
> > is looking for streams. This might help.
> >
> > As long the streams folder is as follows the /usr/opt/red5/streams
> > folder the getListOfAvailableFLVs()
> > should find the streams folder. If not, then you are going to have to
> > tell your app where the streams
> > folder resides.
> >
> > Regards,
> >
> > Lenny
> >
> >
> > On 2/27/08, Eric Haskins <ehask71 at gmail.com> wrote:
> >
> > > http://www.rackspeed.net/red5/FLVPlayer.swf
> > >
> > >
> > > This is not the directory where I have red5 installed. it is
> > > installed /usr/opt/red5
> > >
> > > Yes the files are in the streams/ directory. As I said earlier I can
> > > hardcode it to play a stream I just cant figure out how to get it to query
> > > the available streams
> > >
> > > Thanks for your help guys
> > >
> > > Eric
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> >
>
>
> --
> ~Eric
--
~Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080228/ee795488/attachment.html
More information about the Red5
mailing list