[英]Azure media player multiple instances volume issue
I am using multiple instances of azure media player.我正在使用 azure 媒体播放器的多个实例。 The problem is that I have multiple instances, the player's volume control stops working.
问题是我有多个实例,播放器的音量控制停止工作。 Is there any workaround for this?
有什么解决方法吗? I am using vuejs.
我正在使用 vuejs。 Thanks.
谢谢。
anyone who looks for a solution for the volume (mute and unmute too) issues.任何为音量(静音和取消静音)问题寻找解决方案的人。 The only workaround i found to fix the issues is to use a iframe for the player.
我发现解决问题的唯一解决方法是为播放器使用 iframe。 Basically i created a html file with the player and loading it via iframe.
基本上我用播放器创建了一个 html 文件并通过 iframe 加载它。
For example my videoplayer.html (HTML) looks like this: https://amp.azure.net/libs/amp/latest/samples/dynamic_setsource.html例如我的 videoplayer.html (HTML) 看起来像这样: https://amp.azure.net/libs/amp/latest/samples/dynamic_setsource.html
And my iframe looks like this:我的 iframe 看起来像这样:
<iframe src="/bla/bla/videoplayer.html?video=https://thevideourl.manifest&otherparam=xx&andsomethingelse="yyy"></iframe>
Im also passing the some params via get parameter to the iframe. So i can use the params inside the iframe to make it more dynamic.我还通过 get 参数将一些参数传递给 iframe。因此我可以使用 iframe 中的参数使其更具动态性。
This way you can embed multiple player on the same page and the player works like excepted.通过这种方式,您可以在同一页面上嵌入多个播放器,播放器的工作方式与例外情况相同。 Currently its not possible to use the Azure Media Player on the same page multiple times without control issues.
目前无法在同一页面上多次使用 Azure 媒体播放器而不会出现控制问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.