This commit is contained in:
Flummi 2016-11-07 02:44:44 +01:00
parent 3cd8601082
commit dda1c587e9

View File

@ -77,7 +77,8 @@ function Websrv(tlib) {
'.mp3': 'audio/mpeg',
'.mp4': 'video/mp4',
'.webm': 'video/webm',
'.ogg': 'audio/ogg'
'.ogg': 'audio/ogg',
'.mov': 'video/quicktime'
};
if(filePath == "./index.html") { // mainpage
var tpl = swig.compile(templates.index);
@ -124,6 +125,7 @@ function Websrv(tlib) {
break;
case "video/webm":
case "video/mp4":
case "video/quicktime":
data.item = 'video';
break;
case "audio/mpeg":
@ -182,6 +184,7 @@ function Websrv(tlib) {
switch(contentType) {
case "video/webm":
case "video/mp4":
case "video/quicktime":
case "audio/mpeg":
case "audio/ogg":
var start = 0;