如何将复杂的对象传递到 Brightcove 插件中?
我正在创建一个 Brightcove 插件。该文档暗示,如果您需要将数据传递到插件,则需要通过将 flashvars 附加到 swf url 来实现。 (例如: myPlugin.swf?myVar=foo&yourVar=bar )
是否有另一种方法来传递变量?我希望能够传递一个对象数组,每个对象都包含自己的对象到我的插件中。
如果没有其他方法,我该如何使用 flash var 字符串来做到这一点?
理想情况下,我希望能够使用 BEML 范例传递各种 XML 样式节点,然后将它们解析为类。
I am creating a Brightcove plugin. The documentation implies that if you need pass in data to your plugin that you need to do that by attaching flashvars to the swf url. (example: myPlugin.swf?myVar=foo&yourVar=bar )
Is there another way to pass in vars? I want to be able to pass in an array of objects, each which contain objects as their own into my plugin.
If there isn't another way, how do I do that with a flash var string?
Ideally, I'd like to be able to use the BEML paradigm to pass in various XML style nodes and then parse those into classes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BEML 仅用于设计您的播放器并附加模块/插件。
如果您下载他们的 GoogleAnalytics 示例。
您可以以此为基础构建您的插件,这也是我能够将 Flashvars 与该特定插件一起使用的方式:
我需要
_bcStage
才能访问 HTML。BEML is only to style your player and to attach modules/plugins.
If you download their GoogleAnalytics example.
You can build your plugin off that, and also this is how I was able to use Flashvars with that particular plugin:
I needed the
_bcStage
in order to get access to the HTML.