use ChromecastSenderVideo in select video impl

This commit is contained in:
nklhrstv 2020-12-15 11:35:11 +02:00
parent bf620ffc81
commit 077507607f

View file

@ -1,6 +1,6 @@
// Copyright (C) 2017-2020 Smart code 203358507
const { ChromecastVideo, HTMLVideo, YouTubeVideo, withStreamingServer, withHTMLSubtitles } = require('@stremio/stremio-video');
const { ChromecastSenderVideo, HTMLVideo, YouTubeVideo, withStreamingServer, withHTMLSubtitles } = require('@stremio/stremio-video');
const selectVideoImplementation = (args) => {
// TODO handle stream.behaviorHints
@ -8,7 +8,7 @@ const selectVideoImplementation = (args) => {
// TODO handle MPVVideo
if (args.chromecastTransport && args.chromecastTransport.getCastState() === cast.framework.CastState.CONNECTED) {
return ChromecastVideo;
return ChromecastSenderVideo;
}
if (args.stream && typeof args.stream.ytId === 'string') {