1

我正在构建一个视频播放器并尝试使用数据生成模式。但是当我试图寻找时,我找不到正确的方法。我进行了很多搜索,但找不到在数据生成模式下搜索的示例。

任何人都可以在这种情况下帮助我。如果您有 actionscript-3 数据生成模式下的视频流示例代码,请分享。我需要一个示例工作代码。

4

1 回答 1

0

这有帮助吗?http://forums.adobe.com/thread/646900

ns.seek(0);  //the parameter to seek() is irrelevant, as both the playout and FIFO buffers will be cleared

ns.appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);  //you can do this in NetStreamStatus if you want

ns.appendBytes(seekPosBytes);  //write the bytes to play from the desired stream position
于 2012-07-09T11:31:33.550 回答