Notice: This issue is related to #2111339: Allow multiple video types to make X-Browser compability a success!.
Currently only .mp4 videos are handled correctly by "speaking code":
$items_video['mp4'] = $file;
(See line 182 in videojs_filter.module).
That's one point being fixed with #2111339: Allow multiple video types to make X-Browser compability a success!. But there is also another problem related to drupals file extension recognition of "ogv" and the "filemime" attribute being created in "$file['filemime'] = 'video/' . $file_ext['extension'];".
If you add an "ogv" video type, the 'filemime' will be "video/ogv", but videojs.module will not accept this and sort out this mimes, because it only handles "video/ogg" which seems correct.
So we should handle this better to return 'ogg' as 'filemime'. As quickfix I've added this to my code, which works but doesn't seem clean to me:
switch ($file['filemime']) {
case 'ogv':
$file['filemime'] = 'ogg';
break;
}
How can we solve that correctly?