[Red5] Get a list of available streams

Eric Haskins ehask71 at gmail.com
Thu Feb 28 18:31:45 PST 2008


Mine does not have that file?? I added it and restarted but no change?

I used ant build to make this app so do I need a diff build file?

Thx
Eric

On Thu, Feb 28, 2008 at 6:40 PM, Lenny Sorey <lrsorey at gmail.com> wrote:

> Ok, Eric,
>
> Now we are getting somewhere.
>
> Look in your Classes folder under the WEB-INF Folder and tell me
> if you have oflaDemo-web.xml file.
>
> Does it have the following in it.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:lang="http://www.springframework.org/schema/lang"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>                            http://www.springframework.org/schema/lang
> http://www.springframework.org/schema/lang/spring-lang-2.0.xsd">
>
>  <!-- oflaDemo web context -->
>  <bean id="web.context.oflaDemo" class="org.red5.server.Context">
>   <property name="scopeResolver" ref="red5.scopeResolver" />
>   <property name="clientRegistry" ref="global.clientRegistry" />
>   <property name="serviceInvoker" ref="global.serviceInvoker" />
>   <property name="mappingStrategy" ref="global.mappingStrategy" />
>  </bean>
>
>  <bean id="web.scope.oflaDemo" class="org.red5.server.WebScope"
> init-method="register">
>   <property name="server" ref="red5.server" />
>   <property name="parent" ref="global.scope" />
>   <property name="context" ref="web.context.oflaDemo" />
>   <property name="handler" ref="web.handler.oflaDemo" />
>   <property name="contextPath" value="/oflaDemo" />
>   <property name="virtualHosts" value="@virtual.hosts@" />
>  </bean>
>
>  <bean id="web.handler.oflaDemo" class="
> org.red5.server.webapp.oflaDemo.Application"/>
>
>     <bean id="demoService.service" class="
> org.red5.server.webapp.oflaDemo.DemoService" lazy-init="true" />
>
> </beans>
>
>
>
> The path for DemoService is listed here. AMke this path matches yours.
>
>
>
> Lenny
>
>
>
>   On Thu, Feb 28, 2008 at 5:31 PM, Eric Haskins <ehask71 at gmail.com> wrote:
>
> > Here is the log I see when I click connect
> >
> > [WARN] 2008-02-28 18:29:59,468 pool-3-thread-10:(
> > org.red5.server.service.ServiceInvoker.invoke ) Service not found:
> > DemoService
> >
> > Eric
> >
> >
> > On Thu, Feb 28, 2008 at 6:23 PM, Eric Haskins <ehask71 at gmail.com> wrote:
> >
> > > 2.0
> > >
> > > Eric
> > >
> > >
> > > On Thu, Feb 28, 2008 at 6:14 PM, Lenny Sorey <lrsorey at gmail.com>
> > > wrote:
> > >
> > > > Eric,
> > > >
> > > > What version of flex are you using, 2.0 or 3.0?
> > > >
> > > > Lenny
> > > >
> > > >
> > > >   On Thu, Feb 28, 2008 at 5:03 PM, Eric Haskins <ehask71 at gmail.com>
> > > > wrote:
> > > >
> > > > >         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
> > > > > _______________________________________________
> > > > > 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
> > _______________________________________________
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080228/a895b760/attachment.html 


More information about the Red5 mailing list