我可以使用 FlowPlayer 确定 FLV 尺寸吗?
我目前正在将自定义 Flash 视频播放器插件集成到 .Net CMS 中。插件编辑器当前要求用户提供视频的宽度和高度,以便我的代码将相关尺寸推送到 FlowPlayer。
我想知道,有没有一种方法可以自动确定 FLV 宽度和高度,而不是让编辑器每次都提供此信息?理想情况下,我更喜欢用户只需提供 FLV 位置并让新插件自动向 FlowPlayer 提供宽度/高度。
I'm currently integrating a custom Flash Video player plugin into a .Net CMS. The plugin editor currently requires the user to provide the video's width and height in order for my code to push out the relevant dimensions to the FlowPlayer.
I was wondering, is there a way to automatically determine the FLV width and height rather than having the editor having to provide this information each time? Ideally, I'd prefer it if the user simply had to provide the FLV location and let the new plugin automatically provide the width / height to the FlowPlayer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其添加到您的 flowplayer 的配置中:
加载文件的元信息(即宽度和高度)后调用事件“元数据”。
在上面的示例中,我根据电影的尺寸更改播放器的大小
Add that into Your flowplayer's configuration:
Event 'metadata' is called after file's meta information is loaded, thus width and height.
In the example above I change size of a player according to movie's dimentions