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.

Media streaming issues with Chrome

See original GitHub issue

Hey mate, I’ve been running into a couple issues with how Chrome handles media (audio/video):

  • Without the response header Content-Length, checking media.duration returns Infinity.

  • Without serving the requested chunk (Content-Range), changing media.currentTime just makes the file play from the beginning (as the whole file is returned).

In comparison, Firefox has neither issue.

I recall reading about this a long time ago, and found it weird how Chrome kept re-downloading the video assets with experiences that involve changing the currentTime, but I’m not sure how best to work streaming into Servor. Any ideas/thoughts?

Cheers.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
gordonnlcommented, May 19, 2020

I have a modified version of it - I just threw the main file up here for you to check!

1reaction
lukejacksonncommented, May 19, 2020

Thanks 🙇 this will speed things up a lot but not 100% sure exactly when I will get around to implementing. Will leave this issue open in case anyone else wants to tackle it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix videos & games that won't play - Google Chrome Help
Fix videos & games that won't play · Step 1: Turn on JavaScript · Step 2: Check your extensions, plugins, cache & cookies...
Read more >
Videos Not Playing on Chrome: Fix It with 10 Methods
Part 2: How to Fix Videos Not Playing on Chrome · 1. Enable Flash Player: · 2. Clear Cookies and Cache: · 3....
Read more >
How to Fix Embedded Videos Not Playing in Google Chrome
The first thing to try is disabling hardware acceleration in Chrome's Advanced Settings to fix the problem. You can get to Settings from...
Read more >
12 Ways to Fix the "The Media Could Not Be Loaded" Error in ...
Are videos not loading up in Google Chrome? Use these 12 troubleshooting steps to find the culprit and fix playback issues.
Read more >
How to Fix: Chrome not Playing Videos Online? - BrowserHow
Restart Computer System · Update Google Chrome · Clear cookies and cache · Enable JavaScript · Reset your Chrome browser · Bottom Line:...
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