Skip to content

Commit

Permalink
Add Debug Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jan 15, 2025
1 parent 94b4eab commit 54cd8ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/StremioVideo/selectVideoImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ var withHTMLSubtitles = require('../withHTMLSubtitles');
var withVideoParams = require('../withVideoParams');

function selectVideoImplementation(commandArgs, options) {

console.log('selectVideoImplementation platform', commandArgs.platform);

if (!commandArgs.stream || typeof commandArgs.stream.externalUrl === 'string') {
return null;
}
Expand Down Expand Up @@ -39,6 +42,7 @@ function selectVideoImplementation(commandArgs, options) {
return withStreamingServer(withHTMLSubtitles(WebOsVideo));
}
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') {
console.log('selectVideoImplementation using Titan Player with server');
return withStreamingServer(withHTMLSubtitles(TitanVideo));
}
return withStreamingServer(withHTMLSubtitles(HTMLVideo));
Expand All @@ -52,6 +56,7 @@ function selectVideoImplementation(commandArgs, options) {
return withVideoParams(withHTMLSubtitles(WebOsVideo));
}
if (commandArgs.platform === 'Titan' || commandArgs.platform === 'NetTV') {
console.log('selectVideoImplementation using Titan Player');
return withVideoParams(withHTMLSubtitles(TitanVideo));
}
return withVideoParams(withHTMLSubtitles(HTMLVideo));
Expand Down
1 change: 1 addition & 0 deletions src/withHTMLSubtitles/withHTMLSubtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ function withHTMLSubtitles(Video) {
}));
});
}
console.log('selectedTrack', selectedTrack);
loadSubtitleFromUrl(selectedTrack.url);
}
renderSubtitles();
Expand Down

0 comments on commit 54cd8ea

Please sign in to comment.