Is it expected that <video src="/filewithoutextension"> and <source src="/filewithoutextension"> will not work? #7710
-
I have some videos that are mp4s in S3 and some others that are playable via HLS with m3u8 playlists. For various reasons it's convenient for me not to have to know which is which when rendering the html for a page, but it seems that videojs can't play a source without a file extension or without a type="" hint. The server returns the correct content-type for either HLS or mp4. Is this expected?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. The type needs to be known to know how to load the video, e.g. to pass to the native video element or play via media source extensions. The type will be inferred from some common extensions, but if there's no extension you must use the |
Beta Was this translation helpful? Give feedback.
Yes. The type needs to be known to know how to load the video, e.g. to pass to the native video element or play via media source extensions. The type will be inferred from some common extensions, but if there's no extension you must use the
type
attribute.