add mov
This commit is contained in:
parent
3cd8601082
commit
dda1c587e9
@ -77,7 +77,8 @@ function Websrv(tlib) {
|
|||||||
'.mp3': 'audio/mpeg',
|
'.mp3': 'audio/mpeg',
|
||||||
'.mp4': 'video/mp4',
|
'.mp4': 'video/mp4',
|
||||||
'.webm': 'video/webm',
|
'.webm': 'video/webm',
|
||||||
'.ogg': 'audio/ogg'
|
'.ogg': 'audio/ogg',
|
||||||
|
'.mov': 'video/quicktime'
|
||||||
};
|
};
|
||||||
if(filePath == "./index.html") { // mainpage
|
if(filePath == "./index.html") { // mainpage
|
||||||
var tpl = swig.compile(templates.index);
|
var tpl = swig.compile(templates.index);
|
||||||
@ -124,6 +125,7 @@ function Websrv(tlib) {
|
|||||||
break;
|
break;
|
||||||
case "video/webm":
|
case "video/webm":
|
||||||
case "video/mp4":
|
case "video/mp4":
|
||||||
|
case "video/quicktime":
|
||||||
data.item = 'video';
|
data.item = 'video';
|
||||||
break;
|
break;
|
||||||
case "audio/mpeg":
|
case "audio/mpeg":
|
||||||
@ -182,6 +184,7 @@ function Websrv(tlib) {
|
|||||||
switch(contentType) {
|
switch(contentType) {
|
||||||
case "video/webm":
|
case "video/webm":
|
||||||
case "video/mp4":
|
case "video/mp4":
|
||||||
|
case "video/quicktime":
|
||||||
case "audio/mpeg":
|
case "audio/mpeg":
|
||||||
case "audio/ogg":
|
case "audio/ogg":
|
||||||
var start = 0;
|
var start = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user