Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advertising Android tv #606

Open
amohiy opened this issue Feb 14, 2023 · 1 comment
Open

advertising Android tv #606

amohiy opened this issue Feb 14, 2023 · 1 comment

Comments

@amohiy
Copy link

amohiy commented Feb 14, 2023

I have an application running on Android tv developed by javascript and html and wrapped with Cordova i have no issue playing any videos but when i am trying to advertise the player crash

the player config:
var config = {
...
flashvars: {
kava: {
plugin: false
},
ima: {
plugin: false
}
},
plugins: {
ima: {}
},
advertising: {
adBreaks: [ {
position: 5,
ads: [{
url: [ad_url]
}]
}]
}
....
}

when i run it on normal browser the ad works fine the problem happens only on android TV
and i get this error
/////
[FakeEventTarget] Error occurred when handling event: medialoaded. TypeError: Cannot read properties of null (reading 'updateAdsRenderingSettings')
at r. (ima.js:655)
at r.t.dispatchEvent (fake-event-target.js:95)
at r. (kaltura-player.js:112)
at r.t.dispatchEvent (fake-event-target.js:95)
at e. (player.js:1832)
at r (event-manager.js:46)
at r.t.dispatchEvent (fake-event-target.js:95)
at player.js:2198
/////

Does any one has an explanation why this is happening? thanks in advance.

@giladna
Copy link
Contributor

giladna commented Apr 27, 2023

@amohiy not sure this is related to your problem
do you have test page?

basically we have Android SDK for android TV
https://github.com/kaltura/kaltura-player-android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants