取消实时流“快速运动”在Flash中追赶 [英] Cancel a live stream "fast motion" catch-up in Flash
问题描述
中播放,然后又过了一段时间它 - 那么窗口被隐藏以后,流中发生的所有事情都会在快速运动中播放,直到到达活动点。
如何取消此功能?
我假设这与NetStream具有的智能搜索功能相关,但是,即使我设置了以下内容:
ns.bufferTime = 0;
ns.bufferTimeMax = 0;
ns.backBufferTime = 0;
ns.inBufferSeek = false;
ns.maxPauseBufferTime = 0;
在接收方 - 这个 仍然 发生。
完全取消它的任何方式?
编辑: b $ b在Adobe论坛上有人指出这对我来说:
http://help.adobe.com/zh_CN/FlashPlatform/beta/reference/actionscript/3/flash/net/NetStream.html#bufferTimeMax
但是,根据这个信息,这个特性只有在
bufferTimeMax 设置为> 0时才能运行,但是,如前所述,这仍然会发生,即使我设置
bufferTimeMax 为0.
我也尝试将它(和上面提到的所有其他属性)设置为 -1 ,但它也没有帮助...如果你从你的代码中复制并粘贴了你的代码,你会错过一个。的代码。在ns和bufferTimeMax之间...所以你只需要将一个名为nsbufferTimeMax的未使用的变量设置为0即可。
When streaming a live stream, if you hide the browser window/tab (e.g. by going to a different tab or minimizing the browser) - where the live stream is playing in
and then after awhile you go back to it - then everything that 'happened' in the stream since the window was hidden is played back in fast motion until it reaches to the "live point".
How can I cancel this functionality?
I'm assuming this relates to the 'smart seeking' functionality that the NetStream have,
however, even when I set the following:
ns.bufferTime = 0;
ns.bufferTimeMax = 0;
ns.backBufferTime = 0;
ns.inBufferSeek = false;
ns.maxPauseBufferTime = 0;
on the receiving side - this still happens.
Any way of canceling it out completely?
EDIT: Someone at Adobe's forum pointed out this for me: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/net/NetStream.html#bufferTimeMax
It describes a "catch-up" feature that Flash Player have. However, according to that information this feature should only operate if bufferTimeMax is set to > 0 - but, as mentioned, this still happens, even if I set bufferTimeMax to 0. I also tried setting it (and all other properties mentioned above) to -1, but it didn't help either...
If you copied and pasted that from your code, you're missing a "." between ns and bufferTimeMax... so you're just setting an unused variable named nsbufferTimeMax to 0.
这篇关于取消实时流“快速运动”在Flash中追赶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!