开发者

Spark Video Player: seek() for Local Playback

I am playing back local video in an AIR application using the Spark Video Component. Using the seek method does not provide accurate positioning as per its description:

The playheadTime property might not have the expected value immediately after you call seek(). For a progressive download, you can seek only to a keyframe; therefore, a seek takes you to the time of the first keyframe after the specif开发者_开发问答ied time.

Note: When streaming, a seek always goes to the precise specified time even if the source FLV file doesn't have a keyframe there.

It appears that the video component treats local playback as a progressive download, making the seek method not usable for granular seeking because it snaps to keyframes. Is there a way to have local playback that is treated as streamed video to get the granular seeking ability from the seek() method? Or will this desired functionality require a different video component?


It is not the video playback component but the actual media. When you seek a precise time with streamed video, then the media server will create the required keyframe in the stream. By encoding your video with more keyframes you can increase the accuracy of the seek, but at the cost of the file size (which I assume isn't an issue for you)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜