在视频的中间的NetStream播放 [英] netstream play in the middle of a video

查看:549
本文介绍了在视频的中间的NetStream播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的NetStream和视频对象在Flash播放视频。特别是一个MP4视频。

I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.

我想要做的就是开始从一个特定的位置(例20秒)播放文件。

What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).

然而,随着netstreamObject.seek(20)不工作,除非流已经加载过去20秒。有没有一种方法来指定开始加载在20多岁?或实现这一点的任何其他方式?

However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s? Or any other way of accomplishing this?

推荐答案

您可以使用某种CDN缓存服务器(因此实际的文件将通过该缓存服务器提供服务),它支持lighttpd的,那么你可以提前在搜寻视频。

You can use some sort of CDN cache server (so the actual file will be served via this cache server) which support lighttpd, then you can seek ahead in the video.

这篇关于在视频的中间的NetStream播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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