简体   繁体   English

为所有浏览器嵌入播放器

[英]Embedding Player for all browsers

I have a webradio that like to put on the site. 我有一个喜欢放在网站上的网络广播。 I used the following code that works in Internet Explorer, but not in Windows 8.1 or the 64-bit MAC (iPad, iPhone ...) 我使用了以下代码,这些代码在Internet Explorer中有效,但在Windows 8.1或64位MAC(iPad,iPhone ...)中无效

<object classid = "clsid: 6BF52A52-394a-11D3-B153-00C04F79FAA6" width = "280" height = "100"     codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf. cab # version = 5,1,52,701 "> 
<param name="url" value="http://109.71.41.230:8658"> 
<param name="autostart" value="false"> 
<embed type="application/x-mplayer2" width="280" height="100" src="http://109.71.41.230:8658">     </ embed> 
</ object> 

The following code works on Mac, but also does not work on Windows 8.1 64-bit: 以下代码在Mac上可用,但在Windows 8.1 64位上也不可用:

<audio preload="auto" autoplay controls="controls" src="http://109.71.41.230:8658/;"> 
</ audio> 

I visited your page: Embedding Windows Media Player for all browsers but also did not work. 我访问了您的页面: 为所有浏览器嵌入Windows Media Player,但也无法正常工作。

There is some code that works on all browser's? 有一些适用于所有浏览器的代码吗? thank you 谢谢

There is no such 'Code that works on all browsers' ;-) You have to check what capabilities the browser has. 没有这样的“适用于所有浏览器的代码” ;-)您必须检查浏览器具有的功能。 For example flash or html5 audio or both etc. and deliver the proper code. 例如Flash或html5音频或两者兼有,并提供适当的代码。 That's not the easy way. 那不是简单的方法。

But you could use http://jplayer.org instead. 但是您可以改用http://jplayer.org

It's a HTML5 Player with Flash fallback and does all the checks for major browsers for you. 这是具有Flash后备功能的HTML5播放器,可以为您完成所有主要浏览器的检查。 It supports: Windows: Chrome, Firefox, Internet Explorer, Safari, Opera Windows (legacy): IE6, IE7, IE8, IE9, IE10, IE11 OSX: Safari, Firefox, Chrome, Opera iOS: Mobile Safari: iPad, iPhone, iPod Touch Android: Android 2.3 Browser Blackberry: OS 7 Phone Browser, PlayBook Browser 它支持:Windows:Chrome,Firefox,Internet Explorer,Safari,Opera Windows(旧版):IE6,IE7,IE8,IE9,IE10,IE11 OSX:Safari,Firefox,Chrome,Opera iOS:移动Safari:iPad,iPhone,iPod触摸Android:Android 2.3浏览器黑莓:OS 7手机浏览器,PlayBook浏览器

and those media types: HTML5: mp3, mp4 (AAC/H.264), ogg (Vorbis/Theora), webm (Vorbis/VP8), wav Flash: mp3, mp4 (AAC/H.264), rtmp, flv 以及那些媒体类型:HTML5:mp3,mp4(AAC / H.264),ogg(Vorbis / Theora),webm(Vorbis / VP8),wav Flash:mp3,mp4(AAC / H.264),rtmp,flv

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为所有浏览器嵌入 Windows Media Player - Embedding Windows Media Player for all browsers @fontface在所有Windows浏览器中都异常显示 - @fontface anomoly in all Windows browsers 在所有浏览器中出现字体粗细? - Appearance of font-weight across all browsers? 媒体播放器如何播放列表框中的所有文件? - Media player play all files in listbox how? 删除所有使用C#代码的浏览器的浏览历史记录? - Delete the browsing history of all browsers using C# code? Xhr请求显示我的计算机上所有浏览器中的某种格式的待处理状态 - Xhr request shows pending for a certain format in all the browsers on my machine 为什么activemq Web控制台没有出现在所有浏览器上,只有Firefox - Why activemq web console does not appear on all browsers,only firefox 通过安装程序将应用程序注册到URL协议(所有浏览器) - Register an application to a URL protocol (all browsers) via installer 在闪亮的应用程序中显示PDF文件不适用于所有操作系统和浏览器 - Displaying PDF files in shiny app doesn't work for all OS and browsers 尽管没有设置高度,但Windows Chrome中的字段的高度与所有其他浏览器都不同 - Fields in Windows Chrome differ in height from all other browsers, despite no height setting
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM