diff --git a/src/js/big-play-button.js b/src/js/big-play-button.js index 16a8017fd5..c35b50a6ca 100644 --- a/src/js/big-play-button.js +++ b/src/js/big-play-button.js @@ -87,7 +87,7 @@ class BigPlayButton extends Button { * The text that should display over the `BigPlayButton`s controls. Added to for localization. * * @type {string} - * @private + * @protected */ BigPlayButton.prototype.controlText_ = 'Play Video'; diff --git a/src/js/clickable-component.js b/src/js/clickable-component.js index f02895be08..da6229c3a2 100644 --- a/src/js/clickable-component.js +++ b/src/js/clickable-component.js @@ -148,6 +148,7 @@ class ClickableComponent extends Component { const localizedText = this.localize(text); + /** @protected */ this.controlText_ = text; Dom.textContent(this.controlTextEl_, localizedText); if (!this.nonIconControl && !this.player_.options_.noUITitleAttributes) { diff --git a/src/js/control-bar/audio-track-controls/audio-track-button.js b/src/js/control-bar/audio-track-controls/audio-track-button.js index 78be9166a4..af7062ae72 100644 --- a/src/js/control-bar/audio-track-controls/audio-track-button.js +++ b/src/js/control-bar/audio-track-controls/audio-track-button.js @@ -76,7 +76,7 @@ class AudioTrackButton extends TrackButton { * The text that should display over the `AudioTrackButton`s controls. Added for localization. * * @type {string} - * @private + * @protected */ AudioTrackButton.prototype.controlText_ = 'Audio Track'; Component.registerComponent('AudioTrackButton', AudioTrackButton); diff --git a/src/js/control-bar/fullscreen-toggle.js b/src/js/control-bar/fullscreen-toggle.js index c7c5c3bab2..2a060a9ee2 100644 --- a/src/js/control-bar/fullscreen-toggle.js +++ b/src/js/control-bar/fullscreen-toggle.js @@ -82,7 +82,7 @@ class FullscreenToggle extends Button { * The text that should display over the `FullscreenToggle`s controls. Added for localization. * * @type {string} - * @private + * @protected */ FullscreenToggle.prototype.controlText_ = 'Fullscreen'; diff --git a/src/js/control-bar/mute-toggle.js b/src/js/control-bar/mute-toggle.js index 6545ac58e8..8e06e2c12f 100644 --- a/src/js/control-bar/mute-toggle.js +++ b/src/js/control-bar/mute-toggle.js @@ -139,7 +139,7 @@ class MuteToggle extends Button { * The text that should display over the `MuteToggle`s controls. Added for localization. * * @type {string} - * @private + * @protected */ MuteToggle.prototype.controlText_ = 'Mute'; diff --git a/src/js/control-bar/picture-in-picture-toggle.js b/src/js/control-bar/picture-in-picture-toggle.js index addb71c639..cadafbe041 100644 --- a/src/js/control-bar/picture-in-picture-toggle.js +++ b/src/js/control-bar/picture-in-picture-toggle.js @@ -114,7 +114,7 @@ class PictureInPictureToggle extends Button { * The text that should display over the `PictureInPictureToggle`s controls. Added for localization. * * @type {string} - * @private + * @protected */ PictureInPictureToggle.prototype.controlText_ = 'Picture-in-Picture'; diff --git a/src/js/control-bar/play-toggle.js b/src/js/control-bar/play-toggle.js index d86f9bfc9c..8c79393068 100644 --- a/src/js/control-bar/play-toggle.js +++ b/src/js/control-bar/play-toggle.js @@ -136,7 +136,7 @@ class PlayToggle extends Button { * The text that should display over the `PlayToggle`s controls. Added for localization. * * @type {string} - * @private + * @protected */ PlayToggle.prototype.controlText_ = 'Play'; diff --git a/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js b/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js index be294892f4..8a4c4a3d65 100644 --- a/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js +++ b/src/js/control-bar/playback-rate-menu/playback-rate-menu-button.js @@ -166,7 +166,7 @@ class PlaybackRateMenuButton extends MenuButton { * Added for localization. * * @type {string} - * @private + * @protected */ PlaybackRateMenuButton.prototype.controlText_ = 'Playback Rate'; diff --git a/src/js/control-bar/seek-to-live.js b/src/js/control-bar/seek-to-live.js index 9d896f03d0..c6769fdec3 100644 --- a/src/js/control-bar/seek-to-live.js +++ b/src/js/control-bar/seek-to-live.js @@ -92,7 +92,12 @@ class SeekToLive extends Button { super.dispose(); } } - +/** + * The text that should display over the `SeekToLive`s control. Added for localization. + * + * @type {string} + * @protected + */ SeekToLive.prototype.controlText_ = 'Seek to live, currently playing live'; Component.registerComponent('SeekToLive', SeekToLive); diff --git a/src/js/control-bar/text-track-controls/captions-button.js b/src/js/control-bar/text-track-controls/captions-button.js index dc3a1a5834..c03f1c8e04 100644 --- a/src/js/control-bar/text-track-controls/captions-button.js +++ b/src/js/control-bar/text-track-controls/captions-button.js @@ -75,7 +75,7 @@ CaptionsButton.prototype.kind_ = 'captions'; * The text that should display over the `CaptionsButton`s controls. Added for localization. * * @type {string} - * @private + * @protected */ CaptionsButton.prototype.controlText_ = 'Captions'; diff --git a/src/js/control-bar/text-track-controls/chapters-button.js b/src/js/control-bar/text-track-controls/chapters-button.js index c12f44509d..be047c774c 100644 --- a/src/js/control-bar/text-track-controls/chapters-button.js +++ b/src/js/control-bar/text-track-controls/chapters-button.js @@ -209,7 +209,7 @@ ChaptersButton.prototype.kind_ = 'chapters'; * The text that should display over the `ChaptersButton`s controls. Added for localization. * * @type {string} - * @private + * @protected */ ChaptersButton.prototype.controlText_ = 'Chapters'; diff --git a/src/js/control-bar/text-track-controls/descriptions-button.js b/src/js/control-bar/text-track-controls/descriptions-button.js index 8e7fc3bb86..6f67a70912 100644 --- a/src/js/control-bar/text-track-controls/descriptions-button.js +++ b/src/js/control-bar/text-track-controls/descriptions-button.js @@ -93,7 +93,7 @@ DescriptionsButton.prototype.kind_ = 'descriptions'; * The text that should display over the `DescriptionsButton`s controls. Added for localization. * * @type {string} - * @private + * @protected */ DescriptionsButton.prototype.controlText_ = 'Descriptions'; diff --git a/src/js/control-bar/text-track-controls/subs-caps-button.js b/src/js/control-bar/text-track-controls/subs-caps-button.js index c87ec5bdef..146f35a326 100644 --- a/src/js/control-bar/text-track-controls/subs-caps-button.js +++ b/src/js/control-bar/text-track-controls/subs-caps-button.js @@ -74,7 +74,7 @@ SubsCapsButton.prototype.kinds_ = ['captions', 'subtitles']; * * * @type {string} - * @private + * @protected */ SubsCapsButton.prototype.controlText_ = 'Subtitles'; diff --git a/src/js/control-bar/text-track-controls/subtitles-button.js b/src/js/control-bar/text-track-controls/subtitles-button.js index 0ded7e8231..4b6abdfb67 100644 --- a/src/js/control-bar/text-track-controls/subtitles-button.js +++ b/src/js/control-bar/text-track-controls/subtitles-button.js @@ -54,7 +54,7 @@ SubtitlesButton.prototype.kind_ = 'subtitles'; * The text that should display over the `SubtitlesButton`s controls. Added for localization. * * @type {string} - * @private + * @protected */ SubtitlesButton.prototype.controlText_ = 'Subtitles'; diff --git a/src/js/control-bar/time-controls/current-time-display.js b/src/js/control-bar/time-controls/current-time-display.js index 3eec4b1556..02affe8cd4 100644 --- a/src/js/control-bar/time-controls/current-time-display.js +++ b/src/js/control-bar/time-controls/current-time-display.js @@ -55,7 +55,7 @@ CurrentTimeDisplay.prototype.labelText_ = 'Current Time'; * The text that should display over the `CurrentTimeDisplay`s controls. Added to for localization. * * @type {string} - * @private + * @protected * * @deprecated in v7; controlText_ is not used in non-active display Components */ diff --git a/src/js/control-bar/time-controls/duration-display.js b/src/js/control-bar/time-controls/duration-display.js index 0fe0e534ac..bb73873b94 100644 --- a/src/js/control-bar/time-controls/duration-display.js +++ b/src/js/control-bar/time-controls/duration-display.js @@ -81,7 +81,7 @@ DurationDisplay.prototype.labelText_ = 'Duration'; * The text that should display over the `DurationDisplay`s controls. Added to for localization. * * @type {string} - * @private + * @protected * * @deprecated in v7; controlText_ is not used in non-active display Components */ diff --git a/src/js/control-bar/time-controls/remaining-time-display.js b/src/js/control-bar/time-controls/remaining-time-display.js index d1d06db85a..e7a9d6fb74 100644 --- a/src/js/control-bar/time-controls/remaining-time-display.js +++ b/src/js/control-bar/time-controls/remaining-time-display.js @@ -93,7 +93,7 @@ RemainingTimeDisplay.prototype.labelText_ = 'Remaining Time'; * The text that should display over the `RemainingTimeDisplay`s controls. Added to for localization. * * @type {string} - * @private + * @protected * * @deprecated in v7; controlText_ is not used in non-active display Components */ diff --git a/src/js/control-bar/time-controls/time-display.js b/src/js/control-bar/time-controls/time-display.js index 17db17bfe3..d30284f398 100644 --- a/src/js/control-bar/time-controls/time-display.js +++ b/src/js/control-bar/time-controls/time-display.js @@ -140,7 +140,7 @@ TimeDisplay.prototype.labelText_ = 'Time'; * The text that should display over the `TimeDisplay`s controls. Added to for localization. * * @type {string} - * @private + * @protected * * @deprecated in v7; controlText_ is not used in non-active display Components */