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?
- ShakaPlayer doesn’t recognize .mp4 extension automatically. Requires adding feature “mp4”.
- ShakaPlayer doesn’t play content. Throws 1002 Error from CORS issue. CORS issue not present in standard video HTML5 tag playback.
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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.