List Info

Thread: NS.Play.Stop before actual end?




NS.Play.Stop before actual end?
country flaguser name
Germany
2007-03-31 11:41:48
Hey guys,

I was just doing a few tests of the different events against
the dev.
version of FMS and noticed that it sends the NS.Play.Stop
event while
the videos are still playing. Has anyone else experienced
this? I'm
just curious to why we do all that calculations to detect
the correct
time to send the NS.Play.Stop event when it doesn't seem to
be
necessary at all ;)

Oh, and on this site[1], I found that you should wait for
NS.Play.Stop
and NS.Buffer.Empty after that to detect the real end of a
movie, so
maybe we can simplify our code a bit.

Anyway, I'll do some more tests and post my findings...

Joachim

[1] http://www.wildform.com/support/tutorials/loopingFLVs/


_______________________________________________
Red5devs mailing list
Red5devsosflash.org
http://osflash.org/mailman/listinfo/red5devs_osflash.org


Re: NS.Play.Stop before actual end?
user name
2007-03-31 23:08:27


On 4/1/07, Joachim Bauch < jojostruktur.de">jojostruktur.de> wrote:
Hey guys,

I was just doing a few tests of the different events against the dev.
version of FMS and noticed that it sends the NS.Play.Stop event while
the videos are still playing. Has anyone else experienced this? I'm
just curious to why we do all that calculations to detect the correct
time to send the NS.Play.Stop event when it doesn't seem to be
necessary at all ;)

Oh, and on this site[1], I found that you should wait for NS.Play.Stop
and NS.Buffer.Empty after that to detect the real end of a movie, so
maybe we can simplify our code a bit.

That makes sense because the server only knows when the stream ends on the server side and is difficult to estimate when the stream actually ends on client side because of the variable network latency. It appears more difficult for the server to send the NS.Play.Stop if it wants the notification to reach the client side the exact time when the stream playback stops on client side also because of the variable network latency.

So if your finding is true, it will be much easier for the NS.Play.Stop sending logic.

Anyway, I'll do some more tests and post my findings...

Joachim

[1] http://www.wildform.com/support/tutorials/loopingFLVs/

_______________________________________________
Red5devs mailing list
Red5devsosflash.org">Red5devsosflash.org
http://osflash.org/mailman/listinfo/red5devs_osflash.org



--
I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers.  ;-- Tagore

Best Regards
Steven Gong
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )