[Red5] SVN Sources
davidb
davidb at rasun.net
Fri Nov 11 16:43:55 EST 2005
Hi,
its done fine, i have all the svn project data now.
So, my next question is: I Downloaded this DemoProject of red5,
with some example of what can be done, at next i looked for the
sources (i have it now) i try to compiled it, Successfully, ok at next
i build a project in flash: added video, named id 'av', actionscr.:
var nc = new NetConnection();
nc.connect("rtmp://localhost:1936/demoService/oflaDemo");
var ns:NetStream = new NetStream(nc);
ns.onStatus = function(obj)
{
trace(obj.code);
}
av.attachVideo(ns)
ns.play("LUCASARTS_FLIP_320_high.flv");
if found in the config the proxy porting to 1936 (first my a.s. was:
nc.connect("rtmp:/demoService/oflaDemo");, cant work this way ;)
next i took a watch at org.red5.server.service.DemoService found this:
//Resource[] flvs = appCtx.getResources("../../../../flvs/*.flv");
Resource[] flvs = appCtx.getResources("streams/*.flv");
ok, slowly it makes sense
but, when i try to run the server and run the swf i made, i got this:
[DEBUG] 181328 ProtocolThreadPool-4:( RTMPSessionHandler.lookupAppContext )
Hostname: localhost:1936
[DEBUG] 181328 ProtocolThreadPool-4:( RTMPSessionHandler.lookupAppContext )
App: demoService/oflaDemo
[WARN] 181328 ProtocolThreadPool-4:( RTMPSessionHandler.lookupAppContext )
Application not found
[DEBUG] 181328 ProtocolThreadPool-4:( RTMPSessionHandler.messageReceived )
Exception
java.lang.NullPointerException
at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:66)
at
org.red5.server.rtmp.RTMPSessionHandler.invokeCall(RTMPSessionHandler.java:215)
at
org.red5.server.rtmp.RTMPSessionHandler.onInvoke(RTMPSessionHandler.java:245)
at
org.red5.server.rtmp.RTMPSessionHandler.messageReceived(RTMPSessionHandler.java:95)
at
org.apache.mina.protocol.AbstractProtocolFilterChain$3.messageReceived(AbstractProtocolFilterChain.java:149)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.callNextMessageReceived(AbstractProtocolFilterChain.java:365)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.access$4(AbstractProtocolFilterChain.java:359)
at
org.apache.mina.protocol.AbstractProtocolFilterChain$1.messageReceived(AbstractProtocolFilterChain.java:524)
at
org.apache.mina.protocol.AbstractProtocolFilterChain$2.messageReceived(AbstractProtocolFilterChain.java:99)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.callNextMessageReceived(AbstractProtocolFilterChain.java:365)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.messageReceived(AbstractProtocolFilterChain.java:356)
at
org.apache.mina.protocol.ProtocolSessionManagerFilterChain$1.messageReceived(ProtocolSessionManagerFilterChain.java:76)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.callNextMessageReceived(AbstractProtocolFilterChain.java:365)
at
org.apache.mina.protocol.AbstractProtocolFilterChain.access$4(AbstractProtocolFilterChain.java:359)
at
org.apache.mina.protocol.AbstractProtocolFilterChain$1.messageReceived(AbstractProtocolFilterChain.java:524)
at
org.apache.mina.protocol.filter.ProtocolThreadPoolFilter.processEvent(ProtocolThreadPoolFilter.java:108)
at
org.apache.mina.util.BaseThreadPool$Worker.processEvents(BaseThreadPool.java:411)
at org.apache.mina.util.BaseThreadPool$Worker.run(BaseThreadPool.java:355)
next i took the configs of the demo, put it in the eclipse project, copied
the /flvs to the project root
and tried some experiments with the testing and demo swf's and too with
original svn source (with port 1936 configs)
so, with the port 1936 i got this error, and with the demo Configs the
server work, the client connect rightly but i dont see anything
in the video window. Another thing is: the red5.jar (demo) is about 156KB
but the svn JAR (i compiled) is about 429KB.
so whats the difference ?
Can i have the source of the Demo ?
greetings, davidb
More information about the Red5
mailing list