Joe-Palmer / rtmplite

Automatically exported from code.google.com/p/rtmplite
0 stars 0 forks source link

AsyncError was unable to invoke onMetaData #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Erald (gmx) <erald@gmx.net> on Jun 3, 2010.

Hello,

This looks like the server I am looking for. Red5 and others are
complex and since I am really a noob on flash very difficult to
understand.

I understand it supports live streaming to which you can connect. This
I might want to use in the future. However I am interested in using
the server as a .flv streaming server using the jw player.

However I tried you example application to stream some files but get
always the error: streamErrorHandler() asyncError Error #2095:
flash.net.NetStream was unable to invoke callback onMetaData.

How should I avoid this and can I use this server as a rtmp .flv
streaming server.

Some guidance would be very nice on how to configure this.

Thank you for your help

Erald

Original issue reported on code.google.com by voiprese...@gmail.com on 4 Feb 2011 at 11:16

GoogleCodeExporter commented 9 years ago
Should be fixed in r39, version 7.0, where I assign nc.client and ns.client to 
empty object so that onMetaData is ignored. The server calls onMetaData when 
starting to play an existing FLV file for passing the duration and video codecs 
information to the client.

Original comment by voiprese...@gmail.com on 4 Feb 2011 at 11:20

GoogleCodeExporter commented 9 years ago
Also reported by Вячеслав Мурашкин <mvjacheslav@gmail.com> on 
Jun 28, 2010.

I am looking for lightweight rtmp server for Flash Video Player.
I've tried to use RTMPLITE to play *.flv video file with flowplayer
http://flowplayer.org/plugins/streaming/rtmp.html but server rejects
the connection.
I wonder if RTMPLITE can stream video through RTM to the flash player?
And if so what Flash Video Player can you suggest to use with RTMPLITE?
Thankyou for your project and waiting for your reply,
Slava.
---
Hello there!
I've figured out why I can't playback video from file using your testClient.
The problem described here:
http://www.adobe.com/devnet/flash/quickstart/metadata_cue_points/
And herer is a small fix for testClient.mxml:
private function play(name:String):void {
         if (ns == null && nc != null && nc.connected) {
         ns = new NetStream(nc);
ns.client = new Object(); // disable OnMetadata and OnCuePoint callbacks
         ns.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler, false, 0, true);
         ns.addEventListener(IOErrorEvent.IO_ERROR,
streamErrorHandler, false, 0, true);
         ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
streamErrorHandler, false, 0, true);
         ns.play(name);
         remoteVideo.attachNetStream(ns);
         }
        }
Hope this will help to make your project better!
Slava.
---
Applied the patch in r39, version 7.0

Original comment by voiprese...@gmail.com on 4 Feb 2011 at 11:41