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.

Allow playback of single files through src=

See original GitHub issue
  • What version of Shaka Player are you using?

2.1.1

  • Can you reproduce the issue with our latest release version?

Yes

  • Can you reproduce the issue with the latest code from master?

Yes

  • Are you using the demo app or your own custom app?

Both

  • If custom app, can you reproduce the issue using our demo app?

Yes

  • What browser and OS are you using?

Safari

  • What did you do?

Attempted to load unprotected MP4 (advertisement) in player.

  • What did you expect to happen?

Allow load of unprotected MP4 content from outside server.

  • What actually happened?
  1. ShakaPlayer doesn’t recognize .mp4 extension automatically. Requires adding feature “mp4”.
  2. ShakaPlayer doesn’t play content. Throws 1002 Error from CORS issue. CORS issue not present in standard video HTML5 tag playback.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
joeyparrishcommented, Aug 29, 2017

We’ve decided to work on src= support in v2.3. This will involve a fair amount of refactoring, and using src= to directly play a media file will mean that most of Shaka Player’s configuration will have no effect. The browser will be responsible for streaming, buffering, etc. Side-loaded captions would also fail (because we would not be streaming text, either). Shaka Player would only be able to control DRM for src= playback.

So, with all those caveats, we are scheduling this for v2.3.

0reactions
joeyparrishcommented, Apr 11, 2019

@avelad, yes, I think that canPlayType would be helpful in general, and fits nicely with the native HLS work for iOS. I’ll follow-up on that very soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow playback of single files through src= · Issue #816 - GitHub
We do support unprotected mp4, but only through some manifest, like DASH or HLS. For direct playback of mp4, just set video.src =...
Read more >
Play local (hard-drive) video file with HTML5 video tag?
It is possible to play a local video file. <input type="file" accept="video/*"/> <video controls autoplay></video>. When a file is selected via the input ......
Read more >
SRC FAQ - Catb.org
Only deals with single files. · Allows multiple histories to live in the same directory without entanglement. · Has a human-readable master-file ......
Read more >
The <video> and <source> tags - web.dev
Specify a single file #. Although it's not recommended, you can use the video element by itself. Always use the type attribute as...
Read more >
<input type="file"> - HTML: HyperText Markup Language | MDN
The accept attribute takes a string containing one or more of these unique file type specifiers as its value, separated by commas.
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