PDA

View Full Version : NetStream method "pauseRaw" not supported by RTMP handler.



MikeParks
04-12-2010, 06:53 AM
It's been a while since I've been able to peek in here. Feels weird being on this side of things, though. Anyway...

It seems that Flash 10 and onward contains a new method for pausing streams. When I pause a RTMP stream on my ES-obtained NetStream object using Flash 10, it appears that my connection to the server is terminated. Using Wireshark, I noticed that instead of the normal "pause" function one would expect to be passed, Flash 10 now sends a "pauseRaw" function under the surface. After a bit of research, I've come to find out that the prototype looks something like this:


function pauseRaw(pausePlayback:Boolean, position:Number)

Also, when checking my ES log, the following can be found:


java.lang.UnsupportedOperationException: Unsupported function pauseRaw on destination 2
at com.electrotank.electroserver4.protocol.rtmp.Strea mDestinationHandler.onEvent(StreamDestinationHandl er.java:89)
at com.electrotank.electroserver4.protocol.rtmp.Flash ComIoHandler.messageReceived(FlashComIoHandler.jav a:73)
...


Now, I'm in the process of writing this app to show off to potential investors so I can take some liberties to work around this. I'm going to continue streaming in the background and just take a current snapshot of the video state before my "pause" is triggered. Just figured I should bring this to your attention now before the next version.

tcarr
04-12-2010, 06:55 AM
Thanks Mike - I'll pass this on to the ES5 dev team.

MikeParks
04-12-2010, 07:03 AM
Cool deal. It seems like all the other non-Adobe servers out there either don't have this implemented or just shoehorned it in as an alias for the normal "pause" function. Good thing I like ES, however, and choose to use it for most of my needs. :D