stamat / youtube-background

ESM / jQuery plugin for creating video backgrounds from YouTube, Vimeo or video file links.
https://stamat.github.io/youtube-background/
MIT License
178 stars 54 forks source link

Adds mov and m4v to VideoBackground.MIME_MAP #68

Closed gingerchew closed 5 months ago

gingerchew commented 6 months ago

Solves #67

Is it worth it to change the MIME_MAP just be a template literal string?

this.MIME_MAP = {
  'mp4': 'video/mp4',
  'mov': 'video/mov',
  'avi': 'video/avi'
}
// All match:
this.mime = `video/${mime}`

The PR resolves it by adding the two types to the map, but I can change it if need be :)

gingerchew commented 5 months ago

Closing this since it is fixed in 1.1.8