Skip to content

Commit

Permalink
Update viewer.js
Browse files Browse the repository at this point in the history
Fixing the Loading of video JS , I'm not a pro in JS but it works :)
  • Loading branch information
tobilap committed May 20, 2017
1 parent edba6e1 commit 37c2866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/viewer.js
Expand Up @@ -8,7 +8,7 @@ var videoViewer = {
var stylePath = OC.filePath('files_videoplayer', 'videojs', 'src/video-js.css');
$('head').append($('<link rel="stylesheet" type="text/css" href="' + stylePath + '"/>'));
var scriptPath = OC.filePath('files_videoplayer', 'videojs', 'src/video.js');
return $.getScript(scriptPath)
return $.getScript(scriptPath, function (xhr) {eval(xhr);});
}
},
videoJSLoaded: false,
Expand Down

2 comments on commit 37c2866

@sizziff
Copy link

@sizziff sizziff commented on 37c2866 Jul 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its works for me too. Thanks.

@SebDE
Copy link

@SebDE SebDE commented on 37c2866 Aug 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

work for me too - version 12.0.0.29

Please sign in to comment.