Skip to content

Commit

Permalink
Remove Debug Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jan 15, 2025
1 parent 4101377 commit e2f2253
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/StremioVideo/selectVideoImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ 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 @@ -56,7 +53,6 @@ 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
13 changes: 0 additions & 13 deletions src/TitanVideo/TitanVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,11 @@ function TitanVideo(options) {
return Math.floor(time * 1000);
}
case 'subtitlesTracks': {
console.log('subtitlesTracks 1')
if (stream === null) {
console.log('subtitlesTracks 2')
return [];
}

console.log('subtitlesTracks 3')
console.log(videoElement.textTracks)
console.log(typeof videoElement.textTracks)

if (!videoElement.textTracks || !Array.from(videoElement.textTracks).length) {
console.log('subtitlesTracks 4')
return [];
}

Expand Down Expand Up @@ -259,17 +252,11 @@ function TitanVideo(options) {
return styleElement.sheet.cssRules[0].style.textShadow.slice(0, styleElement.sheet.cssRules[0].style.textShadow.indexOf(')') + 1);
}
case 'audioTracks': {
console.log('audioTracks 1')
if (stream === null) {
console.log('audioTracks 2')
return [];
}

console.log('audioTracks 3')
console.log(videoElement.audioTracks)
console.log(typeof videoElement.audioTracks)
if (!videoElement.audioTracks || !Array.from(videoElement.audioTracks).length) {
console.log('audioTracks 4')
return [];
}

Expand Down

0 comments on commit e2f2253

Please sign in to comment.