适用于 Internet Explorer 和 Safari 的视频播放器插件开发
我们计划为 IE 和 Safari 开发一个浏览器插件,以便在专有视频播放器中流式传输视频。我们正在研究所需的技术和各种设计方法。
有人可以帮助回答以下问题吗?
- 在设计插件时我们需要关注哪些方面?
- QtBrowserPlugin/NPAPI/XUL/firebreath 中可用的最佳平台/框架是什么?为什么?
- 插件生命周期中可能出现哪些常见/一般问题?
- 请传递这方面的任何食谱/指示
谢谢和问候 维杰亚南德
We are planning to develop a browser plugin for IE and Safari to stream video in a proprietary video Player. We are investigating for the required technologies and various design approaches.
Could someone help by answering the following questions?
- What are the various aspects we need to focus while designing the plugin?
- What is the best platforms/framework available out of QtBrowserPlugin/NPAPI/XUL/firebreath and why?
- What are the common/generic issues that might crop up during plugin lifecyle?
- Please pass on any cookbook/pointers in this regard
Thanks and Regards
Vijayanand
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只有您知道您的具体要求,这取决于您要使用的插件技术/框架 - 处理所有可能性将成为一本书,而不是一篇文章。
与往常一样,没有单一的最佳技术:
许多混乱似乎来自生命周期 - 你的插件存在于主机进程中并且必须遵守其行为。插件实例、它们的窗口和可编写脚本的对象可以具有完全不同的生命周期:
插件实例可能会被重复使用,它们的窗口不会被重复使用,来自插件实例的可编写脚本的对象可能会幸存下来,等等......
并非针对所有可能的技术选择 - 选择一个,然后提出更具体的问题。如果您决定使用普通的 NPAPI 完全自己实现您的插件ActiveX 至少 FireBreath 的源代码应该可以帮助您澄清一些事情。
Only you know your specific requirements and it depends on the plugin technology/framework you are going with - handling all possibilities would make a book, not a post.
As usual there is no single best technology:
Much confusion seems to come from the life-cycle - your plugin lives in a host-process and has to comply with its behaviour. Plugin-instances, their windows and their scriptable objects can have completely different life-spans:
Plugin instances might be re-used, their windows are not re-used, scriptable objects coming from a plugin instance might survive it, etc. ...
Not for all possible technology choices - pick one, then ask more specific questions. If you decide to implement your plugin fully by yourself using plain NPAPI & ActiveX then at least FireBreath' source should help you clarify some things.