我怎样才能顺畅地以不同的速度播放FLV? [英] How can i smoothly playback a FLV at different speeds?

查看:143
本文介绍了我怎样才能顺畅地以不同的速度播放FLV?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



以下是一些例子:

ul>

  • 用户将通过flv框架(前/后)刷新

  • flv需要以用户交互的一半速度播放。



  • 目前我正在使用 LoaderMax ,它是用于加载和播放FLV文件的VideoLoader对象。
    我尝试过使用 playProgress 属性,但只显示FLV的关键帧。我得到了与基本设置相同的结果(使用NetStream类)

    作为一个解决方法,我播放FLV一次,并缓存BitmapData实例,我绘制/缓存视频的每一帧。完成之后,我使用BitmapData Vector来更新舞台上的位图。清理/更改速度使用这种方法可以正常工作,但用户仍然需要查看(等待)该过程一次,然后缓存,这是我不喜欢的。



    <有什么更好的想法如何做到这一点?

    任何提示都是有用的,
    谢谢!

    我之前看过这个视频,但是视频被导入到了闪存ide中,我们操纵了擦洗的时间线。我相信我们有第二个版本的慢动作回放版本的视频,并在两个动画片段之间切换。相当低科技的方法,并不是没有问题,但我们绕过了他们。我有一种感觉,你会努力做到这一点与一个普通的旧flv使用渐进式下载。


    I will need to display the frames of an FLV at different rates.

    Here are some examples:

    • the user will 'scrub' through the flv frames(front/back)
    • the flv will need to play at half the speed on a user interaction.

    Currently I'm using LoaderMax and it's VideoLoader object to load and play FLV files. I've tried using the playProgress property, but only the keyframes of the FLV are displayed. I got the same result with the basic setup(using the NetStream class)

    As a workaround, I playback the FLV once, and cache BitmapData instances in which I draw/cache each frame of the video. After this is done, I use the BitmapData Vector to update a Bitmap on stage. Scrubbing/changing speed works fine with this method, but still the user needs to see(wait for) the sequence once, while it gets cached, which I don't like.

    Any better ideas on how to do this ?

    Any tips are useful, Thanks!

    解决方案

    I've seen this done before but the video was imported into the flash ide and we manipulated the time line for the scrubbing. I believe we had a second version of the video for the slow motion play back version and switched between the two movieclips. Fairly low-tech method and wasn't without it's issues but we got round them. I have a feeling you're going to struggle to do this with a plain old flv using progressive download.

    这篇关于我怎样才能顺畅地以不同的速度播放FLV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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