首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用开源播放器在VAST 4.2中玩hls?

如何使用开源播放器在VAST 4.2中玩hls?
EN

Stack Overflow用户
提问于 2021-09-03 08:59:01
回答 1查看 215关注 0票数 0

我的站点使用的是带有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内容):

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2021-09-04 06:21:14

IMA SDK创建了自己的视频元素来播放创意。这将只能是浏览器本机支持的格式。HLS可以在Safari上工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69042194

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档