0

I'm using OSMF Version: 2.0, build: 2494. While I connect to a Live stream and stream stopped unexpectedly (broadcaster turn it off) I get error:

Error: Error #2154: The NetStream Object is invalid.  This may be due to a failed NetConnection.

    at flash.net::NetStream/play2()

    at org.osmf.net::NetLoader/reconnectStream()

    at MethodInfo-2568()

Do someone encounter it or how I can catch it? I use

_mediaPlayer.addEventListener( MediaErrorEvent.MEDIA_ERROR, mediaErrorEventHandler);

for event handling but it does not get catch.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • Are you using http://helpx.adobe.com/flash/kb/flash-player-10-action-script.html to unload the osmf? – Eran May 08 '14 at 18:02
  • 1
    nope, I manage to fix it long ago. I had to create my NetStream Object based and use it. Then I send it via the MediaErrorEvent to bottle up. – Stanislav Stankov May 10 '14 at 09:18
  • If you can explain a bit on how to send it via the mediator event (it does not get catched...), Thanks a lot! I have been struggling with this for a few days now. – Eran May 11 '14 at 16:01
  • Only way was to extend the OSMF class that this happen. I think it was in some RTMP Loader Base class... something like that. It was handing this netStream object – Stanislav Stankov May 24 '14 at 08:09

0 Answers0