I want to set up v3 of Ooayla's api and use html 5 videos. So far I've followed the instructions here and I've added to the players js script to include the parameters to force html video. The video won't show on chrome for android 4.4 and on desktop it reverts to flash. If I say html only then it doesn't show up at all on either devices.
Here's my header code
<script src='https://player.ooyala.com/v3/MWI3YjYwYTBiZjg1ZWE0ZTYyZWViM2Ew?platform=html5-priority'></script>
My javascript code
//topVideo.field_ooyala_upload is the variable for the video id.
OO.ready(function() {
window.player = OO.Player.create(
'playerwrapper',
topVideo.field_ooyala_upload, {
// add the embedded player parameters here
autoplay: false
}
);
});
Not sure why I can't get HTML5 videos to show up. Any help would be great.
答案 0 :(得分:1)
要使用HTML5 V3播放器进行流媒体播放,您必须正确添加ULR查询参数。 请注意,这将使用桌面和Android上的渐进式下载进行流式处理,因此必须在您的帐户中启用此编码。
如果您想尝试HLS流,并启用了该编码,对于Android,您必须启用描述here的其他查询字符串参数。
如果您有更完整的代码示例,请分享以获取进一步的评论。