ct7ct7ct7 / Android-VimeoPlayer

Unofficial Vimeo video player library for Android.
https://ct7ct7ct7.github.io/Android-VimeoPlayer
MIT License
56 stars 39 forks source link

Unable to play videos in a specific device. Chromium errors appeared in logcat. #37

Open jonny123d opened 2 years ago

jonny123d commented 2 years ago

I'm using this library to play Vimeo videos. I'm able to play the videos in phone with Android 6, but when I try with another device with Android 6 (a kind of set top box) it doesn't work.

These messages are when I call initialize() method:

I/chromium: [INFO:CONSOLE(0)] "Refused to load the image 'android-webview-video-poster:default_video_poster/-5383068036791378439' because it violates the following Content Security Policy directive: "img-src 'self' data: https://i.vimeocdn.com https://secure-b.vimeocdn.com https://f.vimeocdn.com https://vimeo.com https://secure.gravatar.com https://i0.wp.com https://i1.wp.com https://i2.wp.com https://pagead2.googlesyndication.com https://player.vimeo.com https://*.ci.vimeows.com https://videoapi-sprites.vimeocdn.com https://i.vimeocdn.com https://wirewax.s3.eu-west-1.amazonaws.com https://studio-media.wirewax.com https://edge-assets.wirewax.com https://f.vimeocdn.com".
    ", source: https://player.vimeo.com/video/645100337?h=60b071fdb0&color=00acf0&playsinline=0&quality=Auto&app_id=122963 (0)
I/chromium: [INFO:CONSOLE(10)] "Uncaught TypeError: i.hasOwnProperty is not a function", source: https://f.vimeocdn.com/p/4.6.0/js/player.js (10)

When onReady() listener method is called y run play() method and I get this message:

I/chromium: [INFO:CONSOLE(10)] "Uncaught TypeError: i[(i.length - 1)].toJSON is not a function", source: https://f.vimeocdn.com/p/4.6.0/js/player.js (10)

Do you know why is this happening?