Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Update plyr.io version in AudioVideo player

kristiyandddbd4ce11f93b
diff --git a/data/js/ext.api.js b/data/js/ext.api.js
index 8e87d9129..65d936ff2 100644
--- a/data/js/ext.api.js
+++ b/data/js/ext.api.js
@@ -10,6 +10,12 @@ define(function(require, exports, module) {
var command = data.command;
switch (command) {
+ case "endedVideo":
+ if(data){
+ console.log(data);
+ openVideoFileFormat(data);
+ } else {console.log('err')}
+ break;
case "openLinkExternally":
if (data.link) {
openLinkExternally(data.link);
@@ -24,6 +30,13 @@ define(function(require, exports, module) {
}
}
+ function openVideoFileFormat(filePath) {
+
+ if(TSCORE.selectedFiles[0]) {
+ TSCORE.FileOpener.getNextFile(filePath);
+ }
+ }
+
function openLinkExternally(uri) {
uri = decodeURIComponent(uri);
if (