question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Video not play on standard browser in Android

See original GitHub issue

Expected behaviour

Video should be able to auto-play or at least having “Play” button to tap for toggle play/pause

Actual behaviour

Video seems to be loaded (could see default control on few second), but there is no “Play” button to tap for play/pause this video. I’ve tested on various browsers and also in iPhone, other browsers work well except this standard browser on Android

Environment

  • Script: Plyr v3.3.7
  • Browser: Standard Browser v2.2.2.80
  • Operating System: Android v5.0

Steps to reproduce

  • 5 video types i.e. MP4, WebM, OGV, WMV, 3GP

  • Using standard HTML5 video tag <video>

  • Include CSS/JS of Plyr v3.3.7 i.e. <link rel="stylesheet" href="https://cdn.plyr.io/3.3.7/plyr.css"> <script src="https://cdn.plyr.io/3.3.7/plyr.js"></script>

  • Set JavaScript for assign script to video <script> const player = new Plyr("#video",{ autoplay: true, clickToPlay: true, controls: ["play-large"] }); </script>

  • Also add attribute to <video> as
    data-plyr="{autoplay:true, clickToPlay:true, controls:['play-large']}"

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Ib-Rcommented, Jun 24, 2019

i managed to make the plyr work on android 4.4 by editing the css,

.plyr__video-wrapper {
    height: 100% !important;

    video {
        height: 100% !important;
    }
}
1reaction
vesper8commented, Dec 14, 2018

managed to get some info with the debugger, it was causing this error

Unable to post message to https://www.youtube.com. Recipient has origin file://

And I found the fix! Simply needed to add this line to the config.xml inside src-cordova

<!-- Add the whitelist plugin -->
<plugin name="cordova-plugin-whitelist" source="npm" spec="*"/>

<!-- White list https access to Youtube -->
<allow-navigation href="https://*youtube.com/*"/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 7 Ways to Fix Google Chrome Not Playing Videos on Mobile
Top 7 Ways to Fix Google Chrome Not Playing Videos on Mobile · 1. Use Incognito Mode · 2. Enable JavaScript (Android) ·...
Read more >
Fix Videos Not Playing on Android Phone with 9 Proven Ways
Part 2: How to Fix YouTube Videos Not Playing on Android · Fix 1: Reopen the YouTube App · Fix 2: Check your...
Read more >
11 Ways to Fix Videos Not Playing on Chrome (Android, iOS) -
How to Fix Videos Not Playing on Chrome Mobile? · 1. Check if The Website Server is Down (Android, iOS) · 2. Enable...
Read more >
Cannot play videos in any browser only in player
You could try to use Default App Manager to remove the association for flash video (.flv) files. This should tell the browser(s) to...
Read more >
Fix videos & games that won't play - Android - Google Chrome ...
Fix videos & games that won't play · Step 1: Update Chrome · Step 2: Turn on JavaScript · Step 3: Reset your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found