From 541f8d8c8bd326bf7262f0f0d49dffc693a9d053 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Fri, 15 Apr 2022 18:42:44 +0300 Subject: [PATCH] missing props added to ChromecastSenderVideo --- .../ChromecastSenderVideo.js | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/ChromecastSenderVideo/ChromecastSenderVideo.js b/src/ChromecastSenderVideo/ChromecastSenderVideo.js index 4259fd2..8cc7e15 100644 --- a/src/ChromecastSenderVideo/ChromecastSenderVideo.js +++ b/src/ChromecastSenderVideo/ChromecastSenderVideo.js @@ -49,10 +49,18 @@ function ChromecastSenderVideo(options) { duration: false, buffering: false, buffered: false, - volume: false, - muted: false, + audioTracks: false, + selectedAudioTrackId: false, subtitlesTracks: false, selectedSubtitlesTrackId: false, + subtitlesOffset: false, + subtitlesSize: false, + subtitlesTextColor: false, + subtitlesBackgroundColor: false, + subtitlesOutlineColor: false, + volume: false, + muted: false, + playbackSpeed: false, extraSubtitlesTracks: false, selectedExtraSubtitlesTrackId: false, extraSubtitlesDelay: false, @@ -111,10 +119,18 @@ function ChromecastSenderVideo(options) { onPropChanged('duration', null); onPropChanged('buffering', null); onPropChanged('buffered', null); - onPropChanged('volume', null); - onPropChanged('muted', null); + onPropChanged('audioTracks', []); + onPropChanged('selectedAudioTrackId', []); onPropChanged('subtitlesTracks', []); onPropChanged('selectedSubtitlesTrackId', null); + onPropChanged('subtitlesOffset', null); + onPropChanged('subtitlesSize', null); + onPropChanged('subtitlesTextColor', null); + onPropChanged('subtitlesBackgroundColor', null); + onPropChanged('subtitlesOutlineColor', null); + onPropChanged('volume', null); + onPropChanged('muted', null); + onPropChanged('playbackSpeed', null); onPropChanged('extraSubtitlesTracks', []); onPropChanged('selectedExtraSubtitlesTrackId', null); onPropChanged('extraSubtitlesDelay', null); @@ -179,7 +195,7 @@ ChromecastSenderVideo.canPlayStream = function() { ChromecastSenderVideo.manifest = { name: 'ChromecastSenderVideo', external: true, - props: ['stream', 'paused', 'time', 'duration', 'buffering', 'buffered', 'volume', 'muted', 'subtitlesTracks', 'selectedSubtitlesTrackId', 'extraSubtitlesTracks', 'selectedExtraSubtitlesTrackId', 'extraSubtitlesDelay', 'extraSubtitlesSize', 'extraSubtitlesOffset', 'extraSubtitlesTextColor', 'extraSubtitlesBackgroundColor', 'extraSubtitlesOutlineColor'], + props: ['stream', 'paused', 'time', 'duration', 'buffering', 'buffered', 'audioTracks', 'selectedAudioTrackId', 'subtitlesTracks', 'selectedSubtitlesTrackId', 'subtitlesOffset', 'subtitlesSize', 'subtitlesTextColor', 'subtitlesBackgroundColor', 'subtitlesOutlineColor', 'volume', 'muted', 'playbackSpeed', 'extraSubtitlesTracks', 'selectedExtraSubtitlesTrackId', 'extraSubtitlesDelay', 'extraSubtitlesSize', 'extraSubtitlesOffset', 'extraSubtitlesTextColor', 'extraSubtitlesBackgroundColor', 'extraSubtitlesOutlineColor'], commands: ['load', 'unload', 'destroy', 'addExtraSubtitlesTracks'], events: ['propValue', 'propChanged', 'ended', 'error', 'subtitlesTrackLoaded', 'audioTrackLoaded', 'extraSubtitlesTrackLoaded', 'implementationChanged'] };