如何缓冲流时的视频暂停使用闪光灯 [英] How to buffer stream when the video is paused with flash

查看:200
本文介绍了如何缓冲流时的视频暂停使用闪光灯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要允许缓冲视频,当它停了下来,这是我无法找到如何做到这一点的一个特点直接...

I need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly...

我注意到,当我暂停视频,事件NetStream.Buffer.Flush被触发。而根据语言参考:数据已完成流式处理,剩余的缓冲区将被清空。,我必须重新缓冲,对不对?然而,还根据参考,它不应该停止缓冲

I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:

从Flash Player 9.0.115.0开始,   Flash Player不再清除   缓冲NetStream.pause()时是   调用。这种行为被称为智能   暂停,在Flash Player 9.0.115.0之前,   Flash播放器将等待缓冲区来   继续播放之前填满,   这通常会导致延迟。

Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay.

我在使用Flash Professional做了调试,并跟踪版本号是:MAC 10,0,22,91;而对于流媒体服务器,我用red5的。如果你有兴趣与我的code,那就是: http://pastebin.com/kwTfiEH9

I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91; and for the streaming server, I use red5. And if you're interested with my code, here it is: http://pastebin.com/kwTfiEH9

现在我完全糊涂了。任何推的pciated非常AP $ P $!

I'm now totally confused. Any push is appreciated very much!

推荐答案

这里的基础上wondefl.net一个例子您code

这篇关于如何缓冲流时的视频暂停使用闪光灯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆