AS3 FLVPLaybackCaptioning 组件显示图像?
我正在使用 FLVPlaybackCaptioning 组件来显示视频的字幕。 我们构建了一个播放器,它使用本地托管或从服务器流式传输的 FLV 文件来显示视频字幕、幻灯片标题和幻灯片文本。 示例如下:
http://www.brainline.org/multimedia/webreadyplayer
我想要使用 FLVPlaybackCaptioning 组件显示图像。 它将 XML 文件拉入动态文本字段,并选择多行并启用 HTML。 所以它应该允许我将图像显示到文本字段中。 但是它不允许我使用 html 代码显示图像。 我正在使用 DXFP 格式作为 XML 标题文件,我正在查看的行是:
<p begin="00:00:36.00"><img src="http://www.brainline.org/multimedia/slide1.jpg"/></p>
This will not allowed the image to load in. 我尝试在我的计算机、另一个域以及几乎所有内容上本地指定图像让它显示出来。 有什么想法可以使用 FLVPlaybackCaptioning 组件来显示图像吗?
I am using the FLVPlaybackCaptioning Component to display captions for a video. We've built a player that uses a FLV file hosted locally or streamed from the server to show captions for a video, a slide title, and slide text. The example is up here:
http://www.brainline.org/multimedia/webreadyplayer
I want to display images using the FLVPlaybackCaptioning component. It pulls from an XML file into a dynamic textField with Multiline selected and HTML enabled. So it should allow me to display images into the text field. However it will not allow me to show images using html code. I'm using DXFP format for the XML caption file and the line I'm looking at is:
<p begin="00:00:36.00"><img src="http://www.brainline.org/multimedia/slide1.jpg"/></p>
This will not allow the image to load in. I've tried specifying the image locally on my machine, on another domain and just about everything to get it to show up. Any ideas how I can use the FLVPlaybackCaptioning Component to display images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,它似乎只接受 xml 数据。 如果您能够确定您在视频播放时所处的位置,您也许可以创建一个侦听器来检查,然后将其加载到占位符中。
我过去使用过的另一个技巧是使用简单的图像 html 标签作为文本内容,将图像加载到多行文本符号中。 如果您可以动态填充该标记的 src= 部分,那么它可能会起作用,但 FLVPlaybackCaptioning 似乎不直接支持图像。
您可以使 xml 包含
并将该 xml 加载到文本中,看看是否有效。
From what I have read about it, it seems to only accept xml data. If you are able to determine whre you are at in the video as it plays you might be able to make a listener to check that then load it in a placeholder.
One other trick I have used in the past is to load images into a multiline text symbol by using a simple image html tag as the content of the text. If you could dynamically populate the src= part of that tag then it might work but the FLVPlaybackCaptioning doesn't seem to support images directly.
You could make your xml consist of
<img src="captionimage.gif">
and load that xml into the text and see if that works.