player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Vimeo video is getting stuck in app while play properly in mobile browser

Open RohitStartbit opened this issue 4 years ago • 15 comments

We have one react app, in this we have integrated vimeo videos through Web view + iframe. In mobile app - androind version, video is not playing properly and getting stuck after each 2 or 3 seconds, while when we play same video on Chrome - mobile browser on same tablet and mobile, it plays well.

What could be the possible issue?

RohitStartbit avatar Aug 25 '20 12:08 RohitStartbit

@RohitStartbit thanks for the feedback. do you have a test page online? is it a specific video? that would help to debug.

luwes avatar Aug 25 '20 20:08 luwes

Hi, Not a specific videos, all the videos in the app in specific mobiles are giving problem, while we play same video in mobile browser, it works well. We have used webview and iframe.

RohitStartbit avatar Aug 26 '20 03:08 RohitStartbit

what is loaded in the webview? just the Vimeo player?

luwes avatar Aug 26 '20 03:08 luwes

In webview, we are loading iframe and in iframe vimeo video is loaded.

RohitStartbit avatar Aug 26 '20 03:08 RohitStartbit

Hi @luwes , Same issue here More specifically, it happens when two or more vimeo players are played on a web page in Android Webview but everything works ok in in-app browser. I'd like to share this video https://drive.google.com/file/d/1aAZMmQrqMVEi9XS7kZ1WkDfEYZP5XgIK/view?usp=sharing plus If you don't mind, can you let me know the latest update? I think It worked ok a month ago.

Thanks in advance!

jhso-dev avatar Aug 26 '20 10:08 jhso-dev

@luwes Same issue

qleeyun avatar Aug 27 '20 00:08 qleeyun

+1

heyman333 avatar Aug 27 '20 01:08 heyman333

is this perhaps related to this issue #298? solution https://stackoverflow.com/questions/38277526/webview-content-security-policy/40412110#40412110

are there any errors showing in the debugger? network requests being blocked?

luwes avatar Aug 27 '20 15:08 luwes

Hi @luwes, It's not related to the issue #298, and network ain't problem. Please check this video https://drive.google.com/file/d/1FI3Z0TMxwHT1-e3EyBzMjdg3EEMxNkHV/view?usp=sharing And check this webpage https://collection-87ba6.firebaseapp.com/

YouTube and Dailymotion players worked in the same test.

Thanks in advance!

jhso-dev avatar Aug 28 '20 03:08 jhso-dev

Any one has any suggestion OR solution? We got reply from vimeo support team that we have to use third party player with external URL of vimeo video, but still on few devices mostly Android version 10, we are facing problem of lip syncing of the video and audio is not matching...

RohitStartbit avatar Aug 28 '20 18:08 RohitStartbit

do you have any Android code to share? how do you create the webview, with which options, etc?

https://www.google.com/search?q=android%20webview%20vimeo

is it a WebChromeClient?

luwes avatar Sep 02 '20 19:09 luwes

@luwes Sorry for the late. We are using this webview. It is WebChromeClient. Thanks in advance!

jhso-dev avatar Sep 07 '20 01:09 jhso-dev

@luwes Hi luwes any updates?

jhso-dev avatar Sep 21 '20 03:09 jhso-dev

have you tried setting the autopause parameter to 0. since it happens with multiple players that could be a potential cause. that feature basically pauses the other players on the page when starting a new one but maybe there is something weird going on. not sure.

luwes avatar Oct 13 '20 16:10 luwes

I have a similar issue Facebook in App Webview, Neither Vimeo nor YouTube plays. Here is the screencast which shows the issue, I am clicking on a link using Facebook mobile app and it takes me Facebook in app webview: https://drive.google.com/file/d/11Vr1vUml-9X4FbXH-bktILG-iwwTQS1e/view?usp=sharing . Please visit our Facebook page https://www.facebook.com/salsamuzik/ with your Facebook app and find the post which has this url http://salsalar.com/station/salsita-mix-vol-02-dj-yedi/ you should be able to troubleshoot this way (https://www.facebook.com/salsamuzik/posts/112510477546891)

jimbolo avatar Mar 05 '21 05:03 jimbolo