使用 FLVPlayback 类播放 Video 类的实例

发布于 2024-10-03 08:09:48 字数 167 浏览 1 评论 0原文

是否可以使用 FLVPlayback 类来播放 Video 类的实例?我正在使用 GreenSocks LoaderMax(以及我的其他资源)加载视频(这只是一个带有提示点的音轨),因此有各种视频实例。 FLVPlayback 类仅接受 String 作为其源。有没有办法破解它以绕过它所做的任何加载并直接向其提供视频?

Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is there any way to hack it to bypass whatever loading it does and just feed it the video directly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

池木 2024-10-10 08:09:48

不,反正我不知道。

Video 对象需要附加 NetStream 对象才能播放视频。

FLVPlayback 组件根据提供的源路径在内部生成所需的 NetConnection/NetStream 对象。无法检查视频对象的 NetStream 对象。如果您不想构建自定义 UI,则可以使用 Video 对象并向其附加一些播放控制组件。

nope, not that I know of anyway.

the Video objects need to have NetStream objects attached to them to play a video.

The FLVPlayback component generates the needed NetConnection/NetStream objects internally based on the source path supplied. A video object cannot be inspected for its NetStream object. You could use your Video objects and attach some playback control components to it if you don't want to build out a custom UI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文