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)

Arguments

files

A vector of URL paths (relative or absolute) to videos

Value

A vector the same length as files of the video types.

Examples

guessVideoFormat("video.mp4")
#> [1] "video/mp4"