我已经尝试了几个插件,因此,有些已经非常老了(视频js 4),目前我一直在测试videojs 5,但到目前为止还没有一个。
我试过videojs-vast-plugin 还尝试了IMA SDK Plugin for Video.js
和videojs-vast-vpaid plugin最初在this question中询问了一些我没有找到的文件的HLS plugin,我在其中一个答案中使用了示例代码。但是,我收到了这个错误:
[videojs-vast-vpaid] AD ERROR: VAST Error: on VASTClient.requestVastXML, HTTP request error with status '-1'
Object { message: "VAST Error: on VASTClient.requestVastXML, HTTP request error with status '-1'", code: 301, stack: "[23]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:3774:23\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[33]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:5173:17\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[30]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:4685:22\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[18]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:3249:16\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[15]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:3077:14\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[22]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:3467:10\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[39]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:5925:18\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ns/<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:305\n[49]<@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:7889:19\ns@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:246\ne@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:425\n@http://mailonline.github.io/videojs-vast-vpaid/scripts/videojs_4.vast.vpaid.js:1:11\n" }
null
consoleLogger.js:21
我无法使用videojs 4,因为我需要videojs-vast-plugin,它不适用于版本4
是否有适用于视频js 5的VAST插件?当我使用mp4文件时,这个插件react-fontawesome加载我的VAST标签,如果我使用videojs 5,它就不起作用
答案 0 :(得分:0)
由于缺乏声誉,无法发表评论。 你能提供广大的工作吗? 来自[这个问题] [1]
上的大量uri样本[1]:My videojs Vast player failed to load video flash ads,没有广泛的回应,也不允许ima请求:
无法加载https://p.algovid.com/vpvast?p=99974938&cb=undefined&d=https://h5.xcloudgame.com&w=710&h=500:否&#39;访问控制 - 允许 - 来源&#39;标头出现在请求的资源上。起源&#39; https://imasdk.googleapis.com&#39;因此不允许访问。
我一直在使用videojs-ima来投放广告!