Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_videoplayer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xappinfo/app.php4
-rwxr-xr-xappinfo/info.xml12
-rwxr-xr-xjs/viewer.js7
3 files changed, 13 insertions, 10 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index d00caee..a8b8537 100755
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -20,5 +20,5 @@
*
*/
-OCP\Util::addStyle( 'files_videosPlayer', 'style' );
-OCP\Util::addscript( 'files_videosPlayer', 'viewer');
+OCP\Util::addStyle( 'files_videojs-sublime', 'style' );
+OCP\Util::addscript( 'files_videojs-sublime', 'viewer');
diff --git a/appinfo/info.xml b/appinfo/info.xml
index d7d6546..5bf0af1 100755
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<info>
- <id>files_videosPlayer</id>
- <name>VideoJS</name>
- <description>A video player using a themed version of Video.js.
+ <id>files_videojs-sublime</id>
+ <name>VideoJS Sublime</name>
+ <description>A video player using a skinned version of Video.js
- Video.js: http://videojs.com/
+ Based on this app: https://apps.owncloud.com/content/show.php/Video+Js?content=159670
- Theme: https://github.com/cabin/videojs-sublime-skin
+ Video.js: http://videojs.com/
- Based on this app: https://apps.owncloud.com/content/show.php/Video+Js?content=159670.
+ Skin: https://github.com/cabin/videojs-sublime-skin
</description>
<version>0.9</version>
<licence>AGPL</licence>
diff --git a/js/viewer.js b/js/viewer.js
index 356e1fa..2075bce 100755
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -1,7 +1,7 @@
var videoViewer = {
UI : {
- playerTemplate : '<header><link href="'+OC.filePath('files_videosPlayer', 'videojs', 'src')+'/video-js.css" rel="stylesheet"><script src="'+OC.filePath('files_videosPlayer', 'videojs', 'src')+'/video.js"></script>' + '<script>' +
- '_V_.options.flash.swf = "'+OC.filePath('files_videosPlayer', 'videojs', 'src')+'/video-js.swf"' +
+ playerTemplate : '<header><link href="'+OC.filePath('files_videojs-sublime', 'videojs', 'src')+'/video-js.css" rel="stylesheet"><script src="'+OC.filePath('files_videojs-sublime', 'videojs', 'src')+'/video.js"></script>' + '<script>' +
+ '_V_.options.flash.swf = "'+OC.filePath('files_videojs-sublime', 'videojs', 'src')+'/video-js.swf"' +
'</script>' + '</header><video id="my_video_1" class="video-js vjs-sublime-skin" controls preload="auto" width="100%" height="100%" poster="my_video_poster.png" data-setup="{}">' +
'<source type="%type%" src="%src%" />' +
'</video>',
@@ -31,6 +31,9 @@ var videoViewer = {
});
// show elements
$('#videoplayer_overlay').fadeIn('fast');
+ // autoplay
+ var vjsPlayer = videojs("my_video_1");
+ vjsPlayer.play();
},
hide : function() {
$('#videoplayer_overlay').fadeOut('fast', function() {