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

Video doesn't start on Android 6, Chrome Browser #238

Closed
luciendub opened this issue May 22, 2016 · 18 comments
Closed

Video doesn't start on Android 6, Chrome Browser #238

luciendub opened this issue May 22, 2016 · 18 comments
Assignees
Labels

Comments

@luciendub
Copy link

The video does not start in Android 6, Chrome browser on thr démo page https://plyr.io . It stays at 0:0

@wrightpt
Copy link

second this
On May 22, 2016 9:32 AM, "Lucien Dubois" [email protected] wrote:

The video does not start in Android 6, Chrome browser on thr démo page
https://plyr.io . It stays at 0:0


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#238

@sampotts
Copy link
Owner

Damn. I'm in the UK and my test Nexus 5 is back home. Tried to use a simulator but they are terrible. Not yet found a good one. iOS is way better in that department. Out of interest, if you switch source and then back to video, does it work? I'll try and find an Android device to debug on here.

@sampotts sampotts added the Bug label May 24, 2016
@sampotts sampotts self-assigned this May 24, 2016
@sampotts
Copy link
Owner

Could you let me know if this is still an issue? I've just tested on a device on 6.0 with Chrome 50 and it worked ok every time.

@enda-zoo
Copy link

Same thing happening on Android 4.3 using the latest version of Chrome. (HUAWEI G6-L11)

@sampotts
Copy link
Owner

Frustrating as I can't replicate. Any help on this is appreciated...

@enda-zoo
Copy link

Yup, I'll try to remote debug this issue tomorrow... just need to figure out how to do that first :)

@enda-zoo
Copy link

I can see that the network inspector that the MP4 from Vimeo gets cancelled...

Request URL:https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/3683/5/143418951/459135658.mp4?token=574d87b0_0x399d4a7feaf0a282880b792d9e703e06089d3579
Request Headers CAUTION: Provisional headers are shown.
Referer:https://player.vimeo.com/video/143418951?player_id=vimeo-6396&api=1&badge=0&byline=0&portrait=0&title=0
User-Agent:Mozilla/5.0 (Linux; Android 4.3; HUAWEI G6-L11 Build/HuaweiG6-L11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36
Query String Parametersview sourceview URL encoded
token:574d87b0_0x399d4a7feaf0a282880b792d9e703e06089d3579

inspector

I'm guessing that doesn't narrow it down at all though...

@enda-zoo
Copy link

enda-zoo commented Jun 1, 2016

Seems to be happening on the Galaxy Note 4 and Nexus 6 - they were the only Android devices I had access to with my free BrowserStack trial.

@tdaines
Copy link

tdaines commented Oct 18, 2016

Works on my Moto X running Android 5.1 with Chrome 53.0.2785.124

@ghost
Copy link

ghost commented Feb 9, 2017

Same here, Android 6 with Chrome browser!!!!

@alejandroiglesias
Copy link
Contributor

alejandroiglesias commented Apr 25, 2017

We found this issue today on an Android device with the latest Chrome version. The YouTube video stays frozen on 0:00 and displays an "If playback doesn't start shortly, try restarting your device" message. Doesn't happen embedding in a different way by using YouTube Iframe API directly.

image
"If playback doesn't start shortly, try restarting your device."

@alejandroiglesias
Copy link
Contributor

I fixed that issue by disabling autoplay on mobile devices. Sadly, had to implement that by user agent sniffing, but found a way to check for autoplay on mobile that I hadn't implemented yet.

@alex-devPY
Copy link

Mozilla/5.0 (Linux; Android 7.1.2; Redmi Note 5A Prime Build/N2G47H - I tried plyr.io demo player on page. Not loaded( Do you support mobile devices? I mean plyr.

@friday
Copy link
Collaborator

friday commented Feb 26, 2018

@alex-devPY: Plyr is wrapping existing browser features and apis, and doesn't determine what is or isn't supported. If your browser supports html5 video and the codec, container and preset plyr should work. Disable plyr and use html5 directly. If this fixes the issue (not likely), it could be a problem with plyr.

@sampotts
Copy link
Owner

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍

@firescript
Copy link

@sampotts getting this error on latest android and latest chrome, seems related to this post.

Error is:
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.

The video won't autoplay on certain android devices. Video and script looks like this:

      <video  poster="@asset('images/video-thumbnail-start.jpg')" muted id="player" playsinline>
        <source src="@asset('videos/truck-intro.mp4')" type="video/mp4">
      </video>
                const player = new Plyr('#player', {
                    hideControls: true,
                    autoplay: true,
                    fullscreen: true,
                    controls: [],
                    clickToPlay: false,
                    volume: 0,
                    debug: true,
                });

@friday
Copy link
Collaborator

friday commented Jan 21, 2019

@firescript
Copy link

Thanks @friday

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

No branches or pull requests

9 participants