Hi, is there a way to customize path for preview non regular video file so the preview is not play the original file?
I can do it with regular video file like mp4 by simply change path in GetFile action. But with non regular video file like AVI or MXF need extra work.
this.support = {
audio: {
ogg: support('audio/ogg;'),
webm: support('audio/webm;'),
mp3: support('audio/mpeg;'),
wav: support('audio/wav;'),
m4a: support('audio/mp4;') || support('audio/x-m4a;') || support('audio/aac;'),
flac: support('audio/flac;'),
amr: support('audio/amr;')
},
video: {
ogg: support('video/ogg;'),
webm: support('video/webm;'),
mp4: support('video/mp4;'),
avi: support('video/mp4;'), // added
mxf: support('video/mp4;'),
mkv: support('video/x-matroska;') || support('video/webm;'),
'3gp': support('video/3gpp;') || support('video/mp4;'), // try as mp4
m3u8: support('application/x-mpegURL', 'video') || support('application/vnd.apple.mpegURL', 'video'),
mpd: support('application/dash+xml', 'video')
}
};
mimes = {
'video/mp4': 'mp4',
'video/mp4': 'avi',
'video/mp4': 'mxf',
'video/x-m4v': 'mp4',
'video/quicktime': 'mp4',
'video/mpeg': 'mpeg',
'video/ogg': 'ogg',
'application/ogg': 'ogg',
'video/webm': 'webm',
'video/x-matroska': 'mkv',
'video/3gpp': '3gp',
'application/vnd.apple.mpegurl': 'm3u8',
'application/x-mpegurl': 'm3u8',
'application/dash+xml': 'mpd',
'video/x-flv': 'flv',
'video/x-msvideo': 'avi',
'application/mxf': 'mxf'
},
By adding avi: support('video/mp4;'), and 'video/mp4': 'avi', somehow it works with AVI file, but it dont work with MXF files as it wont open video preview.
PS. The new path I use is mp4 file so it can be played with browser