Hello, I do not speak very well English, so I am going to try to be clear.

I Attempt that a SWF reproduces a FLV file.
The FLV file is generated in a Server who has Red5 doing Streaming.
That I attempt is that the FLV are emitted from the Server towards the client.

The error which I obtain when doing this is the following:

[INFO] 1132453 IoWorker-4:( org.red5.io.flv.impl.FLV.info ) File size: 102508
[DEBUG] 1132453 IoWorker-4:( org.red5.server.adapter.ApplicationAdapter.debug ) appConnect: RTMPMinaConnection from 127.0.0.1:1542 to localhost (in: 3490, out: 3073)
[DEBUG] 1132453 IoWorker-4:( org.red5.server.adapter.ApplicationAdapter.debug ) appJoin: Client: 5 >> [ [EMAIL PROTECTED] Depth = 1, Path = '/default', Name = 'oflaDemo']

[ERROR] 1133469 DefaultQuartzScheduler_Worker-9:( org.red5.server.messaging.InMemoryPushPushPipe.error ) exception when pushing message to consumer
java.lang.NullPointerException
    at org.red5.server.stream.VideoFrameDropper.canSendPacket(VideoFrameDropper.java:127)
    at org.red5.server.stream.PlaylistSubscriberStream$PlayEngine.pushMessage(PlaylistSubscriberStream.java :1105)
    at org.red5.server.messaging.InMemoryPushPushPipe.pushMessage(InMemoryPushPushPipe.java:67)
    at org.red5.server.stream.ServerStream$2.execute(ServerStream.java:408)
    at org.red5.server.scheduling.QuartzSchedulingServiceJob.execute (QuartzSchedulingServiceJob.java:42)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)


I attach the main fragments of client and Server code.

Thank you very much.
Homero,  from Buenos Aires, Argentina.



--------------------------------------------------------------------------------------------------------------------------------
SERVER CODE
--------------------------------------------------------------------------------------------------------------------------------


    @Override
    public boolean appConnect(IConnection conn, Object[] params)
    {
        if (appScope == conn.getScope())
        {
            serverStream = StreamUtils.createServerStream (appScope, "live0");
            SimplePlayItem item = new SimplePlayItem();
            item.setStart(0);
            item.setLength(10);
            item.setName("Cam01_20061014205102171"); //Cam01_20061014205102171 is the FLV file
            serverStream.addItem(item);
            serverStream.setRepeat(true);
            serverStream.start();
        }
       
        return super.appConnect(conn, params);
    }




--------------------------------------------------------------------------------------------------------------------------------
CLIENT CODE
--------------------------------------------------------------------------------------------------------------------------------



var nc:NetConnection;
var ns:NetStream = null;


connect()

function connect():Boolean
{
    this.nc = new NetConnection();
    this.nc. (this, this.ncOnStatus);
    var connected:Boolean = this.nc.connect("rtmp://localhost/ModifOflaDemo");   
   
    return connected;
}




function ncOnStatus(obj:Object):Void
{
 
    if(obj.code == "NetConnection.Connect.Success")
    {
        this.videoContainer._width = vidWidth;
        this.videoContainer._height = vidHeight;


        this.ns = new NetStream( this.nc);
        this.ns. this.nsOnStatus);
        this.ns. this.onMetaData);


        this.ns.setBufferTime (5);
        this.videoContainer.attachVideo(this.ns);

        ns.play("live0", -1);
    }
}





_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to