Skip to content

Commit 47926e4

Browse files
committed
Titan Player
1 parent 75f2a02 commit 47926e4

File tree

3 files changed

+652
-0
lines changed

3 files changed

+652
-0
lines changed

src/StremioVideo/selectVideoImplementation.js

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var ChromecastSenderVideo = require('../ChromecastSenderVideo');
22
var ShellVideo = require('../ShellVideo');
33
var HTMLVideo = require('../HTMLVideo');
44
var TizenVideo = require('../TizenVideo');
5+
var TitanVideo = require('../TitanVideo');
56
var WebOsVideo = require('../WebOsVideo');
67
var IFrameVideo = require('../IFrameVideo');
78
var YouTubeVideo = require('../YouTubeVideo');
@@ -37,6 +38,9 @@ function selectVideoImplementation(commandArgs, options) {
3738
if (commandArgs.platform === 'webOS') {
3839
return withStreamingServer(withHTMLSubtitles(WebOsVideo));
3940
}
41+
if (window.Titanos) {
42+
return withStreamingServer(withHTMLSubtitles(TitanVideo));
43+
}
4044
return withStreamingServer(withHTMLSubtitles(HTMLVideo));
4145
}
4246

@@ -47,6 +51,9 @@ function selectVideoImplementation(commandArgs, options) {
4751
if (commandArgs.platform === 'webOS') {
4852
return withVideoParams(withHTMLSubtitles(WebOsVideo));
4953
}
54+
if (window.Titanos) {
55+
return withVideoParams(withHTMLSubtitles(TitanVideo));
56+
}
5057
return withVideoParams(withHTMLSubtitles(HTMLVideo));
5158
}
5259

0 commit comments

Comments
 (0)