Реклама не воспроизводится, и я получаю следующую ошибку:
Код: Выделить всё
Ad Error: VAST media file loading reached a timeout of 8 seconds.
Code: 402, AdErrorCode: 20402
Код: Выделить всё
const jwConfig = {
license: 'JWP_LICENSE', // Not required to reproduce the issue
preload: 'auto',
autostart: true,
title: 'Single Inline Linear Preroll',
playlist: [
{
title: 'Single Inline Linear Preroll',
file: 'https://content.bitsontherun.com/videos/q1fx20VZ-52qL9xLP.mp4',
adschedule: {
adBreak1: {
offset: 'pre',
ad: {
source: 'googima',
tag: 'https://video.doubleverify.com/tester/fixtures/vast/vast3.xml',
},
},
},
},
],
advertising: {
client: 'googima',
},
};
Код: Выделить всё
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 21
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
RNJWPlayerUseGoogleIMA = true
}
repositories {
google()
mavenCentral()
maven {
url 'https://mvn.jwplayer.com/content/repositories/releases/'
}
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
maven {
url 'https://mvn.jwplayer.com/content/repositories/releases/'
}
}
}
}
Проверьте журналы, и вы увидите следующую ошибку:
Код: Выделить всё
[DEBUG] onPlayerAdError:
{
error: 'Ad Error: VAST media file loading reached a timeout of 8 seconds.',
code: 402,
adErrorCode: 20402,
message: 'onPlayerAdError'
}
Я тестировал с другой допустимой рекламой. теги и видеофайлы, но проблема остается прежней.
Кто-нибудь знает, как решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/793 ... -402-20402