[Red5] Is this bug?
Steven Gong
steven.gong at gmail.com
Thu Mar 23 09:05:04 EST 2006
Hi Taylor,
On 3/23/06, taylorluo <taylor_luo at hotmail.com> wrote:
>
> Hi Steven:
>
> I don't think the bug is over.I try yesterday cvs version on linux. I
> push the "stop button" and "continue button" for 3 or 4 times.I faile to
> receive stream.And I found the error on server like this:
>
Would you please attach your test swf on the list and tell me how I can
reproduce this exception? Thanks ahead.
[ERROR] 49883 IoWorker-2:(
> org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived ) Exception
> java.lang.NullPointerException
> at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(
> BaseRTMPHandler.java:93)
> at org.red5.server.net.rtmp.RTMPHandler.messageReceived(
> RTMPHandler.java:34)
> at
> org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(
> AbstractIoFilterChain.java:189)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived
> (AbstractIoFilterChain.java:494)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.access$1000(
> AbstractIoFilterChain.java:52)
> at
> org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived
> (AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.LoggingFilter.messageReceived(
> LoggingFilter.java:87)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived
> (AbstractIoFilterChain.java:494)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.access$1000(
> AbstractIoFilterChain.java:52)
> at
> org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived
> (AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.ThreadPoolFilter.processEvent(
> ThreadPoolFilter.java:665)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(
> ThreadPoolFilter.java:421)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.run(
> ThreadPoolFilter.java:376)
>
> Best Regards
> taylor
>
> ------------------------------
> Date: Thu, 23 Mar 2006 21:42:30 +0800
>
>
> From: steven.gong at gmail.com
> To: taylor_luo at hotmail.com
> Subject: Re: Re: [Red5] Is this bug?
>
>
> Hi Taylor,
>
> On 3/23/06, taylorluo <taylor_luo at hotmail.com> wrote:
> >
> > Hi steven:
> >
> > I test the 0.3 windows version from red5 website and the latest cvs
> > version on linux.
> >
> > I try the code like this:
> >
> > //--------------------------------------
> >
> >
> >
> > _cam = Camera.get();
> > //------stop button------
> >
> > Stop_btn.onPress = function() {
> > _ns.close();
> > publish_video.attachVideo(null);
> > publish_video.clear();
> > };
> >
> > //-------continue button-----
> > continue_btn.onPress = function() {
> > _root._nc = new NetConnection();
> > _root._nc.connect("rtmp://127.0.0.1/oflaDemo");
> > _root._ns = new NetStream(_root._nc);
> > _root._ns.play("liveAv");
> > publish_video.attachVideo(_root._ns);
> > };
> >
> > //-------start receive-------
> > _nc = new NetConnection();
> > _nc.connect("rtmp://127.0.0.1/oflaDemo");
> > _nc.onStatus = function(_info) {
> > trace(_info.code);
> >
> > };
> > _ns = new NetStream(_nc);
> > _ns.play("FCAVPresence.video1.av");
> > publish_video.attachVideo(_ns);
> >
> >
> > //---------------------------------------
> >
> >
> >
> > 1)When I play the stream from 0.3 version on Localhost .I try many times
> > "stop" and "continue".I work fine.
> >
> > But when I close this swf file and start another one.It faile to receive
> > any stream.And I have to restart the publish stream again.
> >
> > 2)I try the latest cvs version.I still like above.
> >
>
> I think it should work just fine on the trunk because the bug has been
> fixed by Joachim. :-)
>
> taylor
> >
> > ------------------------------
> > Date: Thu, 23 Mar 2006 18:24:16 +0800
> > From: steven.gong at gmail.com
> > To: Red5 at osflash.org
> > Subject: Re: [Red5] Is this bug?
> >
> > Hi taylor,
> > What version did you use?
> >
> > On 3/22/06, taylorluo <taylor_luo at hotmail.com> wrote:
> > >
> > > Hello,I try to run red5 for some test.I publish video stream like
> > > this.
> > >
> > > //==========publish======
> > >
> > > this.nc1 = new NetConnection();
> > > this.nc1.connect(_root.connectStr);
> > > this.nc1.onStatus = function(_info) {
> > > trace(_info.code);
> > > };
> > > this.ns1 = new NetStream(this.nc1);
> > > this.ns1.attachVideo(this.local_cam);
> > > this.ns1.publish("liveVideo", "live");
> > >
> > >
> > >
> > > And I receive video steam like this
> > >
> > > //==========receive stream=====
> > >
> > > this.nc2 = new NetConnection();
> > > this.nc2.connect(_root.connectStr);
> > > this.nc2.onStatus = function(_info) {
> > > trace(_info.code);
> > > };
> > > this.ns2 = new NetStream(this.nc2);
> > > this.ns2.play("liveVideo");
> > >
> > > So I push a button to stop this stream and another button to restart
> > > the streaming like this.
> > >
> > > //=======stop button====
> > >
> > > this.ns1.close();
> > > this.seat_video.attachVideo(null);
> > > this.seat_video.clear();
> > >
> > >
> > >
> > >
> > >
> > > //=========restart streaming ======
> > >
> > > this.nc2 = new NetConnection();
> > > this.nc2.connect(_root.connectStr);
> > > this.nc2.onStatus = function(_info) {
> > > trace(_info.code);
> > > };
> > > this.ns2 = new NetStream(this.nc2);
> > > this.ns2.play("liveVideo");
> > >
> > >
> > >
> > > My question is,at first 2 or 3 times I push the stop and restart
> > > button.It work.The stream will stop and start.But after I reload the
> > > flash for some times or I push the botton for more times, I can't receive
> > > the stream any more.I have to shutdown the publish streaming and begin
> > > a new publishing..Why?
> > >
> > >
> > >
> > > Is't a bug.What can I do.
> > >
> > >
> > >
> > > ------------------------------
> > > ʹÓà MSN Messenger
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> > >
> >
> >
> > --
> > Best Regards
> > Steven Gong
> >
> >
> > ------------------------------
> > ʹÓà MSN Messenger
> >
>
>
>
> --
> Best Regards
> Steven Gong
>
> ------------------------------
> ʹÓà MSN Messenger <http://messenger.msn.com/cn>
>
--
Best Regards
Steven Gong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060323/7f7df3fd/attachment.htm
More information about the Red5
mailing list