在视频的中间的NetStream播放视频、NetStream

2023-09-08 11:38:24 作者:一个人的青春战役

我使用的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.