Commit ae076f34 authored by Xiaowu Zhang's avatar Xiaowu Zhang

use new indexeddb lib

parent 8dbd2b4a
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
id = list[index].id; id = list[index].id;
} while (g.currentId === id); } while (g.currentId === id);
} }
if (list[index].doc.format === "video/webm") { if (list[index].doc.format === "video/webm" || list[index].doc.format === "video/mp4") {
control = "video_control"; control = "video_control";
} }
return g.displayThisPage({ return g.displayThisPage({
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Audio, loopEventListener, jQuery, promiseEventListener, Blob*/ Audio, loopEventListener, jQuery, promiseEventListener, Blob*/
/*jslint nomen: true, maxlen:180 */ /*jslint nomen: true, maxlen:180 */
/* The MediaSource API only supports MPEG-DASH and /* The MediaSource API only supports MPEG-DASH and
* VP8 with keyframed segments currently (on Chrome 35). * VP8 with keyframed segments currently.
* more info: * more info:
*https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html *https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
*/ */
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
id = list[index].id; id = list[index].id;
} while (g.currentId === id); } while (g.currentId === id);
} }
if (list[index].doc.format === "video/webm") { if (list[index].doc.format === "video/webm" || list[index].doc.format === "video/mp4") {
control = "video_control"; control = "video_control";
} }
return g.displayThisPage({ return g.displayThisPage({
......
This diff is collapsed.
...@@ -225,7 +225,8 @@ ...@@ -225,7 +225,8 @@
id = list[index].id; id = list[index].id;
} while (g.currentId === id); } while (g.currentId === id);
} }
if (list[index].doc.format === "video/webm") { if (list[index].doc.format === "video/webm" ||
list[index].doc.format === "video/mp4") {
control = "video_control"; control = "video_control";
} }
return g.displayThisPage({page: control, return g.displayThisPage({page: control,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* The MediaSource API only supports MPEG-DASH and /* The MediaSource API only supports MPEG-DASH and
* VP8 with keyframed segments currently (on Chrome 35). * VP8 with keyframed segments currently.
* more info: * more info:
*https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html *https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
*/ */
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
id = list[index].id; id = list[index].id;
} while (g.currentId === id); } while (g.currentId === id);
} }
if (list[index].doc.format === "video/webm") { if (list[index].doc.format === "video/webm" ||
list[index].doc.format === "video/mp4") {
control = "video_control"; control = "video_control";
} }
return g.displayThisPage({page: control, return g.displayThisPage({page: control,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment