mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-20 03:06:48 +00:00
use ChromecastSenderVideo in select video impl
This commit is contained in:
parent
bf620ffc81
commit
077507607f
1 changed files with 2 additions and 2 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue