我想通过Html5作为主流媒体向我们的客户端提供OnDemand Video。 客户端正在使用IE浏览器和Firefox浏览器并且没有安装adobe播放器插件,因为我们已经推送了html5视频流,因此无法通过Flash(rtmp)流式传输视频。
代码: jwplayer( “myElement”)。设定({
playlist: [{
sources: [
{
file: "http://xxxxxxx/vod/mp4:tektr_hssd.mp4/playlist.m3u8",
type: "mp4",
primary : html5
},
{
file: "rtmp://xxxxxx/vod/mp4:tek_hssd.mp4"
}]
}],
image: "/uploads/a123.jpg",
androidhls: "true",
autostart: true,
width: "100%",
aspectratio: "4:3"
});
我没有在浏览器上获得任何流(firefox和IE(8))
答案 0 :(得分:3)
m3u8是HLS流。它只能在Safari,iOS和Android中本机显示。在所有其他桌面浏览器中,它需要Flash。您无法“推送”HTML5 - Chrome,Firefox和IE无法在HTML5中显示HLS流。即使在Flash中,它也需要JW Player Premium许可证或更高版本。
请参阅http://support.jwplayer.com/customer/portal/articles/1403635-media-format-reference#streaming