diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-09-01 01:45:39 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-09-01 01:45:39 +0400 |
commit | 04522e9aa19b5af9527d139f0298ea0c920ae36f (patch) | |
tree | 9c06704807b78500f89ca43c732c3221f481cb30 /files_videoviewer | |
parent | 86bd81f7c9b158119963041fb2d269f423f9525c (diff) |
Remove debug messages
Diffstat (limited to 'files_videoviewer')
-rw-r--r-- | files_videoviewer/js/viewer.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/files_videoviewer/js/viewer.js b/files_videoviewer/js/viewer.js index 0eb2b66c2..fad6fb753 100644 --- a/files_videoviewer/js/viewer.js +++ b/files_videoviewer/js/viewer.js @@ -3,9 +3,6 @@ var videoViewer = { playerTemplate : '<video width="%width%" height="%height%" id="media_element" class="video-js vjs-default-skin" controls preload="none">' + '<source type="%type%" src="%src%" />' + '</video>', - init : function(){ - OC.addScript('files_videoviewer','mediaelement-and-player', videoViewer.showPlayer); - }, show : function () { $('<div id="videoviewer_overlay" style="display:none;"></div><div id="videoviewer_popup"><div id="videoviewer_container"><a class="box-close" id="box-close" href="#"></a><h3>'+videoViewer.file+'</h3></div></div>').appendTo('body'); @@ -24,8 +21,8 @@ var videoViewer = { hide : function() { $('#videoviewer_popup').fadeOut('fast', function() { $('#videoviewer_overlay').fadeOut('fast', function() { - $('#videoviewer_overlay').remove(); $('#videoviewer_popup').remove(); + $('#videoviewer_overlay').remove(); }); }); }, @@ -48,7 +45,7 @@ var videoViewer = { 'video/webm', 'video/x-flv', 'application/ogg', - 'application/octet-stream', + 'video/ogg', 'video/quicktime', 'video/x-msvideo', 'video/x-matroska', @@ -73,10 +70,8 @@ var videoViewer = { success: function (player, node) { //set the size (for flash otherwise no video just sound!) player.setVideoSize($(node).width(), $(node).height()); - videoViewer.log(videoViewer.location); player.load(); player.pause(); - videoViewer.log('ready'); }, error: function (m) { console.log(m); @@ -84,7 +79,6 @@ var videoViewer = { }); }, hidePlayer : function() { - videoViewer.player && videoViewer.pause(); videoViewer.player = false; delete videoViewer.player; |