跨浏览器嵌入VLC插件 [英] Cross-browser embed VLC plugin

查看:752
本文介绍了跨浏览器嵌入VLC插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < embed 
type ='application / x-vlc-plugin'
pluginspage ='http://www.videolan.org'
version ='VideoLAN.VLCPlugin.2'
width ='800'
height ='600'
id ='vlc'
loop ='yes'
autoplay ='yes'
target ='rtsp://127.0.0.1:8554 / realtime_1db07ff1- c5f9-4597-abf6-0d442454d06c'>
< / embed>

但是这种方法在Internet Explorer中不起作用。



是否有任何通用方法可将此播放器嵌入到所有浏览器中?

我贴两个IE和Mozilla上VideoLAN的论坛例子在不久前

在您的特定情况下,IE的代码应该如下所示:

 <对象
的classid = clsid中:9BE31822-FDAD-461B-AD51-BE1D1C159921
基本代码=http://download.videolan.org/pub/videolan/ vlc / last / win32 / axvlc.cab
id =vlc
name =vlc
class =vlcPlayer
events =True>
将PARAM NAME = Src的 值= RTSP://127.0.0.1:8554 / realtime_1db07ff1-c5f9-4597-abf6-0d442454d06c/>
< param name =ShowDisplayvalue =True/>
< param name =AutoLoopvalue =True/>
< param name =AutoPlayvalue =True/>
< / object>

您可以在VideoLan Wiki中找到更多信息这里



在VLC CAB文件不幸的是,在此位置的可用再btw。我上面引用的帖子是VLC论坛中的一个完整主题的一部分,内容是为什么它不再提供。


I have embedded vlc plugin for Google Chrome this way:

<embed 
  type='application/x-vlc-plugin'
  pluginspage='http://www.videolan.org'
  version='VideoLAN.VLCPlugin.2'
  width='800'
  height='600'
  id='vlc'
  loop='yes'
  autoplay='yes'
  target='rtsp://127.0.0.1:8554/realtime_1db07ff1-c5f9-4597-abf6-0d442454d06c'>
</embed>

But this approach doesn't work with Internet Explorer.

Are any universal methods available to embed this player in all browsers?

解决方案

I posted examples for both IE and Mozilla on the VideoLan forum a while ago here.

I wrote myself a switch that distinguishes between IE and "the rest" and embeds either one control for IE, or another one for Mozilla and Chrome.

In your particular case, the code for IE should work like this:

<object
  classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" 
  codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  id="vlc"
  name="vlc"
  class="vlcPlayer"
  events="True">
    <param name="Src" value="rtsp://127.0.0.1:8554/realtime_1db07ff1-c5f9-4597-abf6-0d442454d06c" />
    <param name="ShowDisplay" value="True" />
    <param name="AutoLoop" value="True" />
    <param name="AutoPlay" value="True" />
 </object>

You can find further information in the VideoLan Wiki here.

The VLC cab file unfortunately isn't available in this location anymore btw. The post I referenced above is part of a whole thread in the VLC forum about why it's not being provided anymore.

这篇关于跨浏览器嵌入VLC插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆