是否有真正的针对横播流的跨浏览器解决方案? [英] Is there a true cross browser solution for shoutcast streams?
问题描述
Shoutcast直播让我头疼不已.
我尝试过:
- JWplayer
- Jplayer
- Html5音频
这些都不是真正的跨平台浏览器解决方案.他们甚至都无法播放所有的直播视频!
这个问题还有其他解决方法吗?
也许我可以通过一些php库传递流?
有什么解决办法吗?
由于没有人回答,所以我今天在网上洗劫了,发现soundmanager2-至少在我的测试中,它在台式机和移动浏览器上均能正常工作.
我在Android,IOS,台式机侧面chrome,firefox,safari和所有shoutcast频道上进行了测试,
所以你去:)
http://www.schillmania.com/projects/soundmanager2/
soundManager.setup({
url: 'soundManager2/swf',
debugMode: false,
// optional: use 100% HTML5 mode where available
// preferFlash: false,
onready: function() {
var mySound = soundManager.createSound({
id: 'shoutCast',
url: valueSelected+';',
type: 'audio/mp3'
});
mySound.play();
},
ontimeout: function() {
// Hrmm, SM2 could not start. Missing SWF? Flash blocked? Show an error, etc.?
}
});
valueSelected = http://198.27.79.224:9770/
Shoutcast stream is giving me a serious headache.
I tried:
- JWplayer
- Jplayer
- Html5 Audio
None of these are true cross-platform-browser solutions. THey can't even play all shoutcast streams!
Is there any other solution to this problem?
Maybe I can pass stream through some php library?
Any solutions for this?
Since nobody is answering, I ransacked web today and found soundmanager2 - which at least in my tests works fine both on desktop and mobile browsers.
I tested on Android, IOS, on desktop side chrome,firefox,safari and all shoutcast channels seem to work fine.
So here you go :)
http://www.schillmania.com/projects/soundmanager2/
soundManager.setup({
url: 'soundManager2/swf',
debugMode: false,
// optional: use 100% HTML5 mode where available
// preferFlash: false,
onready: function() {
var mySound = soundManager.createSound({
id: 'shoutCast',
url: valueSelected+';',
type: 'audio/mp3'
});
mySound.play();
},
ontimeout: function() {
// Hrmm, SM2 could not start. Missing SWF? Flash blocked? Show an error, etc.?
}
});
valueSelected = http://198.27.79.224:9770/
这篇关于是否有真正的针对横播流的跨浏览器解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!