我的站点使用的是带有videojs-ima插件的video.js,但是它不能在VAST中使用hls。
我使用谷歌服务https://googleads.github.io/googleads-ima-html5/vsi/测试了xml,我看到了错误Ad error: AdError 400: There was an error playing the video ad. Caused by: Error: Error: There was an error playing the video ad.
我尝试过videojs- VAST -vpaid插件,但它抛出了一个关于无法使用VAST 4.2的错误。
我试过其他免费的播放器- plur,openplayerjs,fluid player-但他们都不能使用我的xml。
我的庞大的4.2示例xml看起来就像这样(警告!内部的NSFW内容):
<VAST xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.iab.com/VAST" version="4.2">
<Ad id="1" adType="video">
<InLine>
<AdSystem version="1">stripcash.com</AdSystem>
<AdTitle>Naked girl get cum on face</AdTitle>
<Creatives>
<Creative sequence="1" id="1">
<Linear skipoffset="00:00:05">
<Duration>00:00:05</Duration>
<MediaFiles>
<MediaFile id="1" delivery="progressive" type="video/mp4" width="480" height="640">
<![CDATA[ https://b-hls-25.strpst.com/hls/48371204/48371204.m3u8 ]]>
</MediaFile>
</MediaFiles>
<VideoClicks>
<ClickThrough id="1">
<![CDATA[ https://go.xxxjmp.com/api/goToTheRoom?campaignId=59eb46ec7c05df0507091.......]]>
</ClickThrough>
</VideoClicks>
</Linear>
<UniversalAdId idRegistry="unknown">unknown</UniversalAdId>
</Creative>
</Creatives>
<Impression id="">
<![CDATA[ https://go.xxxjmp.com/eye.gif?campaignId=59eb46ec7c05df0507091cccc8a....... ]]>
</Impression>
</InLine>
</Ad>
</VAST>发布于 2021-09-04 06:21:14
IMA SDK创建了自己的视频元素来播放创意。这将只能是浏览器本机支持的格式。HLS可以在Safari上工作。
https://stackoverflow.com/questions/69042194
复制相似问题