If no type is provided when generating a video.js video, then the format needs to be guessed. Included in the package is a dataset of the default type of each video. This will give the default type of each file provided.
guessVideoFormat(files)
A vector of URL paths (relative or absolute) to videos
A vector the same length as files
of the video types.
guessVideoFormat("video.mp4")
#> [1] "video/mp4"