在iOS上跳过广告不起作用

时间:2016-01-06 11:00:17

标签: ios jwplayer

根据JWplayer文档,这应该有效,但在播放广告时我看不到任何跳过按钮。

//ad config
JWAdConfig *adConfig = [JWAdConfig new];
adConfig.adMessage = @"Ad duration countdown xx";
adConfig.skipMessage = @"Skip in xx";
adConfig.skipText = @"Move on";
adConfig.skipOffset = 3;
adConfig.adClient = vastPlugin;
config.adConfig = adConfig;

还要问JWplayer:https://support.jwplayer.com/customer/en/portal/questions/16078471-skipping-ad-on-ios-doesn-t-work?new=16078471

@Max Mikheyenko - 广告网址:

NSString *appBundle = @"myBundleName";
NSString *appDomain = @"myDomainName";
NSString *appName = @"myAppName";

NSString *adUrl = [NSString stringWithFormat:@"http://search.myadurl.com/vast/2.0/myadurlid?VPAID=JS&app[name]=%@&app[domain]=%@&app[bundle]=%@&device[ifa]=%@", appName, appDomain, appBundle, kGaPropertyId];

config.adSchedule = @[[JWAdBreak adBreakWithTag:adUrl offset:@"pre"]];

@Max Mikheyenko - VPAID = js

JWplayer最近告诉我的同事(他正在为Android实现相同功能)应用程序中的JW播放器不支持VPAID 2.0(JS)并要求他更改URL,将VPAID = js替换为VPI = MP4。

最近更新:我再次尝试使用VPI = MP4,现在我收到此错误

2016-01-10 15:05:07.346 [21:285288] AD ERROR {
    adposition = pre;
    client = vast;
    code = 101;
    event = onAdError;
    message = "Ad Tag Empty";

@Max Mikheyenko

VPI = MP4现在工作正常,我在用VPI = MP4替换VPAID = JS时意外地在我的网址上添加了一个美元符号

1 个答案:

答案 0 :(得分:0)

使用VPI = MP4,它运行正常!

VPAID = JS适用于iOS,但没有跳过按钮,VPI = MP4现在显示跳过按钮。