如何启用ima视频自动播放?

时间:2019-03-05 14:37:56

标签: google-ima

如何使用ima播放器示例文件启用视频自动播放?

由于某种原因,如果使用自动播放功能,播放器会在此处显示错误,请点击播放按钮。

错误:

ads.js:127未捕获的TypeError:无法将属性“ onended”设置为null

>   // An event listener to tell the SDK that our content video   // is
> completed so the SDK can play any post-roll ads.   var
> contentEndedListener = function() {adsLoader.contentComplete();};  
> videoContent.onended = contentEndedListener;

0 个答案:

没有答案