Error #2154 removing OSMF video player from stage

553 views Asked by At

I am using osmf player to play HDS format videos. At a certain scenario I am stopping the video and removing it from stage. For some reason it throws the following 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.rtmpstreaming::RTMPDynamicStreamingNetLoader/reconnectStream()

My attempts to fix it were not successful so I am looking for a way to catch this specific error somehow. I am looking for ideas on how to handle this error in my code(can't use global error handling). Any directions on how to fix this bug would be also awesome! Thanks!

0

There are 0 answers