PDA

View Full Version : ie6 + h.264 pseudo streaming


shepard9811
04-26-2008, 04:22 PM
Hy!
I've an applet that can "pseudo" stream mp4 video from a server. Well the problem is it seems ie6 (i think it's the same for ie7) doesn't close the connection to the server if you navigate to somewhere else, only if you close the browser window. So if you just navigate back and forward the browser is going to freez. I've tried close(), clear(), delete, =null, and all other stuff i could find, nothing seems to work, and it's the same for as2, as3, flvPlayback, video player and video(with netstream and netconnection). If anyone has any ideas, i would really appreciate it. Thanks!

wvxvw
04-26-2008, 05:30 PM
Hm... NetConnection.close() has to close the connection...
May be try <body onbeforeunload='call flash to close the NetConnection'>...

shepard9811
04-26-2008, 10:17 PM
Hey!
Thanks for the reply! The thing is i've already tried that and it stops the stream for sure, but i can still see that the connection to the server is still open. And also thanks for the other tip i'm going to use that one if i can figure out how to close that connection :)

wvxvw
04-26-2008, 11:07 PM
It'd be more proper to create some sort of session on the server. Than, check if the user is still connected...
And, when you close the connection it supposed to send something from flash so that you'll know it wanted to close... I'm not sure about how the message should look like, but, at least having some logging on the server may help...

shepard9811
04-27-2008, 11:38 AM
I'm going to try it thanks for the advice.