@playkit-js/playkit-js-ui 0.82.9 → 0.82.10-canary.0-8f6e4b7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/playkit-js-ui.d.ts +155 -147
- package/dist/playkit-ui.js +1 -1
- package/dist/playkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/audio/audio.tsx +160 -0
- package/src/components/audio/index.ts +1 -0
- package/src/components/audio-desc/_audio-desc.scss +10 -0
- package/src/components/audio-desc/audio-desc-mini.tsx +254 -0
- package/src/components/audio-desc/audio-desc.tsx +199 -0
- package/src/components/audio-desc/audio-description-updater.tsx +225 -0
- package/src/components/audio-desc/index.ts +1 -0
- package/src/components/audio-description-menu/audio-description-menu.tsx +176 -0
- package/src/components/audio-description-menu/index.ts +1 -0
- package/src/components/audio-menu/audio-menu.tsx +128 -57
- package/src/components/bottom-bar/bottom-bar-registry-manager.ts +11 -0
- package/src/components/bottom-bar/bottom-bar.tsx +16 -4
- package/src/components/engine-connector/engine-connector.tsx +41 -16
- package/src/components/event-dispatcher/event-dispatcher-provider.tsx +22 -17
- package/src/components/icon/icon.scss +14 -0
- package/src/components/icon/icon.tsx +30 -12
- package/src/components/index.ts +3 -2
- package/src/components/keyboard/keyboard.tsx +7 -2
- package/src/components/menu/menu.tsx +56 -55
- package/src/components/overlay-action/overlay-action.tsx +9 -5
- package/src/components/play-pause/_play-pause.scss +4 -2
- package/src/components/play-pause/play-pause.tsx +34 -22
- package/src/components/seekbar/seekbar.tsx +6 -3
- package/src/components/settings/settings.tsx +14 -18
- package/src/components/shell/shell.tsx +10 -7
- package/src/event/event-type.ts +1 -0
- package/src/event/events/bottom-bar-needs-resize-event.ts +20 -0
- package/src/middlewares/event-dispatcher.ts +0 -35
- package/src/reducers/audio-description.ts +99 -0
- package/src/reducers/config.ts +8 -3
- package/src/reducers/index.ts +2 -1
- package/src/reducers/settings.ts +0 -9
- package/src/store.ts +3 -1
- package/src/styles/_dropdown.scss +5 -1
- package/src/styles/style.scss +1 -0
- package/src/types/reducers/audio-description.ts +12 -0
- package/src/types/reducers/root-state.ts +2 -0
- package/src/types/reducers/settings.ts +0 -1
- package/src/types/ui-options.ts +6 -1
- package/src/ui-presets/live.tsx +2 -2
- package/src/ui-presets/playback.tsx +19 -4
- package/src/utils/audio-description.ts +28 -0
- package/translations/ca_es.i18n.json +1 -4
- package/translations/en.i18n.json +21 -5
- package/src/components/advanced-audio-desc/advanced-audio-desc.tsx +0 -141
- package/src/components/advanced-audio-desc/index.ts +0 -1
- package/src/components/advanced-audio-desc-toggle/advanced-audio-desc-toggle.tsx +0 -69
- package/src/components/advanced-audio-desc-toggle/index.ts +0 -1
package/dist/playkit-js-ui.d.ts
CHANGED
|
@@ -90,6 +90,38 @@ declare const actions_12: {
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
declare const actions_13: {
|
|
94
|
+
updateAudioDescriptionLanguages: (audioDescriptionLanguages: string[]) => {
|
|
95
|
+
type: string;
|
|
96
|
+
audioDescriptionLanguages: string[];
|
|
97
|
+
};
|
|
98
|
+
updateAdvancedAudioDescriptionLanguages: (advancedAudioDescriptionLanguages: string[]) => {
|
|
99
|
+
type: string;
|
|
100
|
+
advancedAudioDescriptionLanguages: string[];
|
|
101
|
+
};
|
|
102
|
+
updateAudioDescriptionEnabled: (isEnabled: boolean) => {
|
|
103
|
+
type: string;
|
|
104
|
+
isEnabled: boolean;
|
|
105
|
+
};
|
|
106
|
+
updateAudioDescriptionType: (selectedType: AUDIO_DESCRIPTION_TYPE) => {
|
|
107
|
+
type: string;
|
|
108
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
109
|
+
};
|
|
110
|
+
updateSelectionByLanguage: (language: string, isEnabled: boolean, selectedType: AUDIO_DESCRIPTION_TYPE) => {
|
|
111
|
+
type: string;
|
|
112
|
+
language: string;
|
|
113
|
+
isEnabled: boolean;
|
|
114
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
115
|
+
};
|
|
116
|
+
resetSelectionByLanguage: () => {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
updateDefaultValueSet: (isDefaultValueSet: boolean) => {
|
|
120
|
+
type: string;
|
|
121
|
+
isDefaultValueSet: boolean;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
|
|
93
125
|
declare const actions_2: {
|
|
94
126
|
updateCaptionsStyle: (style: string) => {
|
|
95
127
|
type: string;
|
|
@@ -392,14 +424,6 @@ declare const actions_8: {
|
|
|
392
424
|
type: string;
|
|
393
425
|
speed: string;
|
|
394
426
|
};
|
|
395
|
-
updateAudio: (audio: string) => {
|
|
396
|
-
type: string;
|
|
397
|
-
audio: string;
|
|
398
|
-
};
|
|
399
|
-
updateAdvancedAudioDesc: (isChecked: boolean) => {
|
|
400
|
-
type: string;
|
|
401
|
-
isChecked: boolean;
|
|
402
|
-
};
|
|
403
427
|
updateIsCaptionsEnabled: (isCaptionsEnabled: boolean) => {
|
|
404
428
|
type: string;
|
|
405
429
|
isCaptionsEnabled: boolean;
|
|
@@ -895,75 +919,6 @@ declare type AdSkipProps = {
|
|
|
895
919
|
*/
|
|
896
920
|
declare function adsUI(props: any): VNode<any> | undefined;
|
|
897
921
|
|
|
898
|
-
/**
|
|
899
|
-
* AdvancedAudioDesc component
|
|
900
|
-
*
|
|
901
|
-
* @class AdvancedAudioDesc
|
|
902
|
-
* @example <AdvancedAudioDesc step={5} />
|
|
903
|
-
* @extends {Component}
|
|
904
|
-
*/
|
|
905
|
-
declare class AdvancedAudioDesc extends Component<any, any> implements IconComponent {
|
|
906
|
-
componentDidUpdate(previousProps: any): void;
|
|
907
|
-
get advancedAudioDesc(): boolean;
|
|
908
|
-
registerComponent(): any;
|
|
909
|
-
getComponentText: () => any;
|
|
910
|
-
getSvgIcon: () => any;
|
|
911
|
-
/**
|
|
912
|
-
* should render component
|
|
913
|
-
* @returns {boolean} - whether to render the component
|
|
914
|
-
*/
|
|
915
|
-
private _shouldRender;
|
|
916
|
-
/**
|
|
917
|
-
* AdvancedAudioDesc click handler
|
|
918
|
-
*
|
|
919
|
-
* @returns {void}
|
|
920
|
-
* @memberof AdvancedAudioDesc
|
|
921
|
-
*/
|
|
922
|
-
private onClick;
|
|
923
|
-
/**
|
|
924
|
-
* on key down handler
|
|
925
|
-
*
|
|
926
|
-
* @param {KeyboardEvent} e - keyboard event
|
|
927
|
-
* @returns {void}
|
|
928
|
-
* @memberof AdvancedAudioDesc
|
|
929
|
-
*/
|
|
930
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
931
|
-
/**
|
|
932
|
-
* render component
|
|
933
|
-
*
|
|
934
|
-
* @param {*} props - component props
|
|
935
|
-
* @returns {React$Element} - component element
|
|
936
|
-
* @memberof AdvancedAudioDesc
|
|
937
|
-
*/
|
|
938
|
-
render({ innerRef }: any): VNode<any> | undefined;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* AdvancedAudioDescToggle component
|
|
943
|
-
*
|
|
944
|
-
* @class AdvancedAudioDescToggle
|
|
945
|
-
* @example <AdvancedAudioDescToggle />
|
|
946
|
-
* @extends {Component}
|
|
947
|
-
*/
|
|
948
|
-
declare class AdvancedAudioDescToggle extends Component<any, any> {
|
|
949
|
-
/**
|
|
950
|
-
* Toggle the Advanced Audio Description option and update it in the store state
|
|
951
|
-
*
|
|
952
|
-
* @param {boolean} isChecked - Whether the feature is enabled or not
|
|
953
|
-
* @returns {void}
|
|
954
|
-
* @memberof AdvancedAudioDescToggle
|
|
955
|
-
*/
|
|
956
|
-
onAdvancedAudioClick: (isChecked: boolean) => void;
|
|
957
|
-
/**
|
|
958
|
-
* render function
|
|
959
|
-
*
|
|
960
|
-
* @param {*} props - component props
|
|
961
|
-
* @returns {React$Element} - component
|
|
962
|
-
* @memberof AdvancedAudioDescToggle
|
|
963
|
-
*/
|
|
964
|
-
render(props: any): h.JSX.Element;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
922
|
/**
|
|
968
923
|
* @typedef {Object} KPAdvertisingConfigObject@typedef {Object} KPAdvertisingConfigObject
|
|
969
924
|
* @property {PrebidConfig} prebid - The prebid config.
|
|
@@ -980,36 +935,33 @@ declare interface AdvertisingConfig {
|
|
|
980
935
|
adBreakCuePointStyle?: Object;
|
|
981
936
|
}
|
|
982
937
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
* @extends {Component}
|
|
989
|
-
*/
|
|
990
|
-
declare class AudioMenu extends Component<AudioMenuProps & WithPlayerProps & WithEventDispatcherProps, any> {
|
|
991
|
-
/**
|
|
992
|
-
* call to player selectTrack method and change audio track
|
|
993
|
-
*
|
|
994
|
-
* @param {Object} audioTrack - audio track
|
|
995
|
-
* @returns {void}
|
|
996
|
-
* @memberof Settings
|
|
997
|
-
*/
|
|
998
|
-
onAudioChange(audioTrack: any): void;
|
|
999
|
-
/**
|
|
1000
|
-
* render function
|
|
1001
|
-
*
|
|
1002
|
-
* @param {*} props - component props
|
|
1003
|
-
* @returns {React$Element} - component
|
|
1004
|
-
* @memberof AudioMenu
|
|
1005
|
-
*/
|
|
1006
|
-
render(props: any): h.JSX.Element;
|
|
938
|
+
declare const Audio_2: any;
|
|
939
|
+
|
|
940
|
+
declare enum AUDIO_DESCRIPTION_TYPE {
|
|
941
|
+
AUDIO_DESCRIPTION = 1,
|
|
942
|
+
EXTENDED_AUDIO_DESCRIPTION = 2
|
|
1007
943
|
}
|
|
1008
944
|
|
|
1009
|
-
declare
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
945
|
+
declare const AudioDesc: any;
|
|
946
|
+
|
|
947
|
+
declare namespace audioDescription {
|
|
948
|
+
export {
|
|
949
|
+
types_13 as types,
|
|
950
|
+
initialState_13 as initialState,
|
|
951
|
+
_default_13 as default,
|
|
952
|
+
actions_13 as actions
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
declare interface AudioDescriptionState {
|
|
957
|
+
audioDescriptionLanguages: string[];
|
|
958
|
+
advancedAudioDescriptionLanguages: string[];
|
|
959
|
+
isEnabled: boolean;
|
|
960
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
961
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
declare const AudioMenu: any;
|
|
1013
965
|
|
|
1014
966
|
declare const BadgeType: {
|
|
1015
967
|
qualityHd: string;
|
|
@@ -1672,6 +1624,7 @@ declare function bindActions<A, M extends ActionCreatorsMapObject<A>>(actions: M
|
|
|
1672
1624
|
*/
|
|
1673
1625
|
declare class BottomBar extends Component<any, any> {
|
|
1674
1626
|
private bottomBarContainerRef;
|
|
1627
|
+
private leftControlsRef;
|
|
1675
1628
|
private presetControls;
|
|
1676
1629
|
private resizeObserver;
|
|
1677
1630
|
private _currBarWidthArr;
|
|
@@ -2076,8 +2029,7 @@ declare namespace Components {
|
|
|
2076
2029
|
QualityMenu,
|
|
2077
2030
|
HeightResolution,
|
|
2078
2031
|
getLabelBadgeType,
|
|
2079
|
-
|
|
2080
|
-
AdvancedAudioDesc,
|
|
2032
|
+
AudioDesc,
|
|
2081
2033
|
ExpandableText,
|
|
2082
2034
|
Scrollable,
|
|
2083
2035
|
ProgressIndicator,
|
|
@@ -2111,6 +2063,7 @@ declare namespace Components {
|
|
|
2111
2063
|
ClosedCaptions,
|
|
2112
2064
|
ClosedCaptions as ClosedCaptionsControl,
|
|
2113
2065
|
CaptionsControl,
|
|
2066
|
+
Audio_2 as Audio,
|
|
2114
2067
|
EventDispatcherProvider,
|
|
2115
2068
|
WithEventDispatcherProps,
|
|
2116
2069
|
withEventDispatcher,
|
|
@@ -2318,6 +2271,39 @@ declare const _default_12: (state: BottomBarState | undefined, action: any) => {
|
|
|
2318
2271
|
controlsToMove: any;
|
|
2319
2272
|
};
|
|
2320
2273
|
|
|
2274
|
+
declare const _default_13: (state: AudioDescriptionState | undefined, action: any) => {
|
|
2275
|
+
audioDescriptionLanguages: any;
|
|
2276
|
+
advancedAudioDescriptionLanguages: string[];
|
|
2277
|
+
isEnabled: boolean;
|
|
2278
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
2279
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
2280
|
+
} | {
|
|
2281
|
+
advancedAudioDescriptionLanguages: any;
|
|
2282
|
+
audioDescriptionLanguages: string[];
|
|
2283
|
+
isEnabled: boolean;
|
|
2284
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
2285
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
2286
|
+
} | {
|
|
2287
|
+
isEnabled: any;
|
|
2288
|
+
audioDescriptionLanguages: string[];
|
|
2289
|
+
advancedAudioDescriptionLanguages: string[];
|
|
2290
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
2291
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
2292
|
+
} | {
|
|
2293
|
+
selectedType: any;
|
|
2294
|
+
audioDescriptionLanguages: string[];
|
|
2295
|
+
advancedAudioDescriptionLanguages: string[];
|
|
2296
|
+
isEnabled: boolean;
|
|
2297
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
2298
|
+
} | {
|
|
2299
|
+
isDefaultValueSet: any;
|
|
2300
|
+
audioDescriptionLanguages: string[];
|
|
2301
|
+
advancedAudioDescriptionLanguages: string[];
|
|
2302
|
+
isEnabled: boolean;
|
|
2303
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
2304
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
2305
|
+
};
|
|
2306
|
+
|
|
2321
2307
|
declare const _default_2: (state: CvaaState | undefined, action: any) => {
|
|
2322
2308
|
style: any;
|
|
2323
2309
|
};
|
|
@@ -2472,28 +2458,19 @@ declare const _default_8: (state: SettingsState | undefined, action: any) => {
|
|
|
2472
2458
|
quality: any;
|
|
2473
2459
|
speed: number;
|
|
2474
2460
|
audio?: string | undefined;
|
|
2475
|
-
advancedAudioDesc: boolean;
|
|
2476
2461
|
} | {
|
|
2477
2462
|
speed: any;
|
|
2478
2463
|
quality: number;
|
|
2479
2464
|
audio?: string | undefined;
|
|
2480
|
-
advancedAudioDesc: boolean;
|
|
2481
2465
|
} | {
|
|
2482
2466
|
audio: any;
|
|
2483
2467
|
quality: number;
|
|
2484
2468
|
speed: number;
|
|
2485
|
-
advancedAudioDesc: boolean;
|
|
2486
|
-
} | {
|
|
2487
|
-
advancedAudioDesc: any;
|
|
2488
|
-
quality: number;
|
|
2489
|
-
speed: number;
|
|
2490
|
-
audio?: string | undefined;
|
|
2491
2469
|
} | {
|
|
2492
2470
|
isCaptionsEnabled: any;
|
|
2493
2471
|
quality: number;
|
|
2494
2472
|
speed: number;
|
|
2495
2473
|
audio?: string | undefined;
|
|
2496
|
-
advancedAudioDesc: boolean;
|
|
2497
2474
|
};
|
|
2498
2475
|
|
|
2499
2476
|
declare const _default_9: (state: ShellState | undefined, action: any) => {
|
|
@@ -2884,7 +2861,7 @@ declare type EngineConnectorProps = {
|
|
|
2884
2861
|
engine: EngineState;
|
|
2885
2862
|
player: KalturaPlayer;
|
|
2886
2863
|
eventManager: EventManager;
|
|
2887
|
-
} & typeof actions_3 & typeof actions_4 & typeof actions_9 & {
|
|
2864
|
+
} & typeof actions_3 & typeof actions_4 & typeof actions_13 & typeof actions_9 & {
|
|
2888
2865
|
seekbarUpdateCurrentTime: typeof actions_7.updateCurrentTime;
|
|
2889
2866
|
} & {
|
|
2890
2867
|
updateIsCaptionsEnabled: typeof actions_8.updateIsCaptionsEnabled;
|
|
@@ -3107,6 +3084,7 @@ declare const EventType: {
|
|
|
3107
3084
|
readonly USER_SELECTED_CAPTIONS_BACKGROUND_COLOR: "playkit-ui-userselectedcaptionsbackgroundcolor";
|
|
3108
3085
|
readonly USER_SELECTED_CAPTIONS_BACKGROUND_OPACITY: "playkit-ui-userselectedcaptionsbackgroundopacity";
|
|
3109
3086
|
readonly BOTTOM_BAR_CLIENT_RECT_CHANGED: "playkit-ui-bottombarclientrectchanged";
|
|
3087
|
+
readonly BOTTOM_BAR_NEEDS_RESIZE: "playkit-ui-bottombarneedsresize";
|
|
3110
3088
|
readonly PLAYER_HOVERED: "playkit-ui-playerhovered";
|
|
3111
3089
|
readonly USER_COPIED_DEBUG_INFO: "playkit-ui-usercopieddebuginfo";
|
|
3112
3090
|
};
|
|
@@ -3330,9 +3308,9 @@ declare interface IAdsPluginController {
|
|
|
3330
3308
|
* @extends {Component}
|
|
3331
3309
|
*/
|
|
3332
3310
|
declare class Icon extends Component<any, any> {
|
|
3333
|
-
_defaultColor
|
|
3334
|
-
_activeColor
|
|
3335
|
-
_className
|
|
3311
|
+
private _defaultColor;
|
|
3312
|
+
private _activeColor;
|
|
3313
|
+
private _className;
|
|
3336
3314
|
/**
|
|
3337
3315
|
* @constructor
|
|
3338
3316
|
* @param {Object} props - component props
|
|
@@ -3345,7 +3323,7 @@ declare class Icon extends Component<any, any> {
|
|
|
3345
3323
|
* @returns {void}
|
|
3346
3324
|
* @memberof Icon
|
|
3347
3325
|
*/
|
|
3348
|
-
createDynamicIconClass
|
|
3326
|
+
private createDynamicIconClass;
|
|
3349
3327
|
/**
|
|
3350
3328
|
* Generates the encoded svg url for a certain svg path
|
|
3351
3329
|
*
|
|
@@ -3357,7 +3335,7 @@ declare class Icon extends Component<any, any> {
|
|
|
3357
3335
|
* @returns {string} - encoded svg url
|
|
3358
3336
|
* @memberof Icon
|
|
3359
3337
|
*/
|
|
3360
|
-
getSVGUrl
|
|
3338
|
+
private getSVGUrl;
|
|
3361
3339
|
/**
|
|
3362
3340
|
* @param {?number} state - icon state
|
|
3363
3341
|
* @param {?string} color - external default color
|
|
@@ -3365,14 +3343,14 @@ declare class Icon extends Component<any, any> {
|
|
|
3365
3343
|
* @returns {string} - svg fill color
|
|
3366
3344
|
* @memberof Icon
|
|
3367
3345
|
*/
|
|
3368
|
-
getFillColor
|
|
3346
|
+
private getFillColor;
|
|
3369
3347
|
/**
|
|
3370
3348
|
* @param {string | Array<string>} pathProps - svg path or paths (if an icon contains multiple paths)
|
|
3371
3349
|
* @param {string} fillColor - icon fill color
|
|
3372
3350
|
* @returns {string} - icon path tag
|
|
3373
3351
|
* @memberof Icon
|
|
3374
3352
|
*/
|
|
3375
|
-
getPathTag
|
|
3353
|
+
private getPathTag;
|
|
3376
3354
|
/**
|
|
3377
3355
|
* component will update
|
|
3378
3356
|
* @param {Object} nextProps - the next props
|
|
@@ -3405,6 +3383,7 @@ declare const IconType: {
|
|
|
3405
3383
|
Minimize: string;
|
|
3406
3384
|
Play: string;
|
|
3407
3385
|
Pause: string;
|
|
3386
|
+
Stop: string;
|
|
3408
3387
|
VolumeBase: string;
|
|
3409
3388
|
VolumeWaves: string;
|
|
3410
3389
|
VolumeWave: string;
|
|
@@ -3439,6 +3418,8 @@ declare const IconType: {
|
|
|
3439
3418
|
ClosedCaptionsOff: string;
|
|
3440
3419
|
AdvancedAudioDescription: string;
|
|
3441
3420
|
AdvancedAudioDescriptionActive: string;
|
|
3421
|
+
AdvancedAudioDescriptionDisabled: string;
|
|
3422
|
+
AdvancedAudioDescriptionDisabledDropdown: string;
|
|
3442
3423
|
};
|
|
3443
3424
|
|
|
3444
3425
|
/**
|
|
@@ -3468,15 +3449,20 @@ declare function imgUI(props: any): VNode<any>;
|
|
|
3468
3449
|
declare const initialState: {
|
|
3469
3450
|
targetId: string;
|
|
3470
3451
|
forceTouchUI: boolean;
|
|
3452
|
+
allowPlayPause: boolean;
|
|
3453
|
+
allowLivePlayPause: boolean;
|
|
3471
3454
|
showCCButton: boolean;
|
|
3455
|
+
showAudioButton: boolean;
|
|
3456
|
+
showAudioDescriptionButton: boolean;
|
|
3472
3457
|
openMenuFromCCButton: boolean;
|
|
3458
|
+
openMenuFromAudioDescriptionButton: boolean;
|
|
3473
3459
|
settings: {
|
|
3474
3460
|
showAudioMenu: boolean;
|
|
3475
3461
|
showCaptionsMenu: boolean;
|
|
3476
3462
|
showQualityMenu: boolean;
|
|
3477
3463
|
showSpeedMenu: boolean;
|
|
3478
|
-
showAdvancedAudioDescToggle: boolean;
|
|
3479
3464
|
showAdvancedCaptionsMenu: boolean;
|
|
3465
|
+
showAudioDescriptionMenu: boolean;
|
|
3480
3466
|
};
|
|
3481
3467
|
hoverTimeout: number;
|
|
3482
3468
|
tinySizeDisabled: boolean;
|
|
@@ -3503,6 +3489,15 @@ declare const initialState_12: {
|
|
|
3503
3489
|
controlsToMove: never[];
|
|
3504
3490
|
};
|
|
3505
3491
|
|
|
3492
|
+
declare const initialState_13: {
|
|
3493
|
+
audioDescriptionLanguages: never[];
|
|
3494
|
+
advancedAudioDescriptionLanguages: never[];
|
|
3495
|
+
isEnabled: boolean;
|
|
3496
|
+
selectedType: AUDIO_DESCRIPTION_TYPE;
|
|
3497
|
+
selectionByLanguage: Map<string, [boolean, AUDIO_DESCRIPTION_TYPE]>;
|
|
3498
|
+
isDefaultValueSet: boolean;
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3506
3501
|
declare const initialState_2: {
|
|
3507
3502
|
style: string;
|
|
3508
3503
|
};
|
|
@@ -3584,7 +3579,6 @@ declare const initialState_7: SeekbarState;
|
|
|
3584
3579
|
declare const initialState_8: {
|
|
3585
3580
|
quality: number;
|
|
3586
3581
|
speed: number;
|
|
3587
|
-
advancedAudioDesc: boolean;
|
|
3588
3582
|
isCaptionsEnabled: boolean;
|
|
3589
3583
|
};
|
|
3590
3584
|
|
|
@@ -4356,9 +4350,7 @@ declare class Keyboard extends Component<any, any> {
|
|
|
4356
4350
|
*
|
|
4357
4351
|
* @memberof Keyboard
|
|
4358
4352
|
*/
|
|
4359
|
-
keyboardHandlers
|
|
4360
|
-
[key: number]: (event: KeyboardEvent) => KeyboardEventResult;
|
|
4361
|
-
};
|
|
4353
|
+
private keyboardHandlers;
|
|
4362
4354
|
render(): undefined;
|
|
4363
4355
|
}
|
|
4364
4356
|
|
|
@@ -4855,7 +4847,7 @@ declare interface MediaSourceOptionsObject {
|
|
|
4855
4847
|
* @extends {Component}
|
|
4856
4848
|
*/
|
|
4857
4849
|
declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
4858
|
-
_menuElement
|
|
4850
|
+
private _menuElement;
|
|
4859
4851
|
/**
|
|
4860
4852
|
* before component mounted, set initial state of the menu position
|
|
4861
4853
|
* @returns {void}
|
|
@@ -4874,7 +4866,7 @@ declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
|
4874
4866
|
* @returns {Array} position style classes array
|
|
4875
4867
|
* @memberof Menu
|
|
4876
4868
|
*/
|
|
4877
|
-
getPosition
|
|
4869
|
+
private getPosition;
|
|
4878
4870
|
/**
|
|
4879
4871
|
* handler to click outside of the component event listener.
|
|
4880
4872
|
* if not mobile device and clicked outside the component, call the onClose callback
|
|
@@ -4883,7 +4875,7 @@ declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
|
4883
4875
|
* @returns {void}
|
|
4884
4876
|
* @memberof Menu
|
|
4885
4877
|
*/
|
|
4886
|
-
handleClickOutside
|
|
4878
|
+
private handleClickOutside;
|
|
4887
4879
|
/**
|
|
4888
4880
|
* indication if option is active or not
|
|
4889
4881
|
*
|
|
@@ -4891,7 +4883,7 @@ declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
|
4891
4883
|
* @returns {boolean} is option active boolean
|
|
4892
4884
|
* @memberof Menu
|
|
4893
4885
|
*/
|
|
4894
|
-
isSelected
|
|
4886
|
+
private isSelected;
|
|
4895
4887
|
/**
|
|
4896
4888
|
* when option selected, change the active prop immediately for instant ui change
|
|
4897
4889
|
* and call the onSelect callback with the option value
|
|
@@ -4900,7 +4892,7 @@ declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
|
4900
4892
|
* @returns {void}
|
|
4901
4893
|
* @memberof Menu
|
|
4902
4894
|
*/
|
|
4903
|
-
onSelect
|
|
4895
|
+
private onSelect;
|
|
4904
4896
|
/**
|
|
4905
4897
|
* on change handler
|
|
4906
4898
|
* @param {Event} e - event
|
|
@@ -4914,14 +4906,14 @@ declare class Menu extends Component<MenuProps & WithEventManagerProps, any> {
|
|
|
4914
4906
|
* - If the selected index is within `options.length`, it's a normal option, so we call `onSelect()`.
|
|
4915
4907
|
* - Otherwise, it's `additionalOptions`, so we calculate itsrelative index and call `onMenuChosen()` directly
|
|
4916
4908
|
*/
|
|
4917
|
-
onChange
|
|
4909
|
+
private onChange;
|
|
4918
4910
|
/**
|
|
4919
4911
|
* render native select element
|
|
4920
4912
|
* @param {string} labelledby - the label id the describes the dropdown (for screen reader)
|
|
4921
4913
|
* @returns {React$Element} - component element
|
|
4922
4914
|
* @memberof Menu
|
|
4923
4915
|
*/
|
|
4924
|
-
renderNativeSelect
|
|
4916
|
+
private renderNativeSelect;
|
|
4925
4917
|
/**
|
|
4926
4918
|
* if mobile device detected, renders the native select element.
|
|
4927
4919
|
* otherwise, render the styled menu
|
|
@@ -4962,7 +4954,9 @@ declare interface NetworkConfig {
|
|
|
4962
4954
|
declare type OptionType = {
|
|
4963
4955
|
value: any;
|
|
4964
4956
|
label: string;
|
|
4957
|
+
ariaLabel?: string;
|
|
4965
4958
|
active: boolean;
|
|
4959
|
+
disabled?: boolean;
|
|
4966
4960
|
};
|
|
4967
4961
|
|
|
4968
4962
|
/**
|
|
@@ -5065,7 +5059,7 @@ declare class OverlayAction extends Component<any, any> {
|
|
|
5065
5059
|
* @returns {void}
|
|
5066
5060
|
* @memberof OverlayAction
|
|
5067
5061
|
*/
|
|
5068
|
-
togglePlayPause
|
|
5062
|
+
private togglePlayPause;
|
|
5069
5063
|
/**
|
|
5070
5064
|
* toggle exit-enter fullscreen
|
|
5071
5065
|
*
|
|
@@ -5841,9 +5835,7 @@ declare interface PlaylistState {
|
|
|
5841
5835
|
*/
|
|
5842
5836
|
declare class PlayPause extends Component<any, any> {
|
|
5843
5837
|
private _playPauseButtonRef?;
|
|
5844
|
-
|
|
5845
|
-
entryName: string;
|
|
5846
|
-
};
|
|
5838
|
+
constructor();
|
|
5847
5839
|
/**
|
|
5848
5840
|
* component mounted
|
|
5849
5841
|
*
|
|
@@ -5857,8 +5849,8 @@ declare class PlayPause extends Component<any, any> {
|
|
|
5857
5849
|
* @returns {void}
|
|
5858
5850
|
* @memberof PlayPause
|
|
5859
5851
|
*/
|
|
5860
|
-
togglePlayPause
|
|
5861
|
-
handleKeyDown
|
|
5852
|
+
private togglePlayPause;
|
|
5853
|
+
private handleKeyDown;
|
|
5862
5854
|
/**
|
|
5863
5855
|
* render component
|
|
5864
5856
|
*
|
|
@@ -6029,7 +6021,8 @@ declare namespace Reducers {
|
|
|
6029
6021
|
shell,
|
|
6030
6022
|
volume,
|
|
6031
6023
|
overlay,
|
|
6032
|
-
bottomBar
|
|
6024
|
+
bottomBar,
|
|
6025
|
+
audioDescription
|
|
6033
6026
|
}
|
|
6034
6027
|
}
|
|
6035
6028
|
export { Reducers }
|
|
@@ -6270,6 +6263,7 @@ export declare interface RootState {
|
|
|
6270
6263
|
playlist: PlaylistState;
|
|
6271
6264
|
overlay: OverlayState;
|
|
6272
6265
|
bottomBar: BottomBarState;
|
|
6266
|
+
audioDescription: AudioDescriptionState;
|
|
6273
6267
|
}
|
|
6274
6268
|
|
|
6275
6269
|
/**
|
|
@@ -6382,7 +6376,7 @@ declare class SeekBar extends Component<any, any> {
|
|
|
6382
6376
|
* @returns {void}
|
|
6383
6377
|
* @memberof SeekBar
|
|
6384
6378
|
*/
|
|
6385
|
-
togglePlayPause
|
|
6379
|
+
private togglePlayPause;
|
|
6386
6380
|
/**
|
|
6387
6381
|
* seekbar touch end handler
|
|
6388
6382
|
*
|
|
@@ -6735,7 +6729,6 @@ declare interface SettingsState {
|
|
|
6735
6729
|
quality: number;
|
|
6736
6730
|
speed: number;
|
|
6737
6731
|
audio?: string;
|
|
6738
|
-
advancedAudioDesc: boolean;
|
|
6739
6732
|
}
|
|
6740
6733
|
|
|
6741
6734
|
/**
|
|
@@ -6793,7 +6786,7 @@ declare class Shell extends Component<any, any> {
|
|
|
6793
6786
|
* @param {KeyboardEvent} e - event object
|
|
6794
6787
|
* @returns {void}
|
|
6795
6788
|
*/
|
|
6796
|
-
onKeyDown
|
|
6789
|
+
private onKeyDown;
|
|
6797
6790
|
/**
|
|
6798
6791
|
* componentWillMount
|
|
6799
6792
|
*
|
|
@@ -7589,6 +7582,16 @@ declare const types_12: {
|
|
|
7589
7582
|
UPDATE_CONTROLS_TO_MOVE: string;
|
|
7590
7583
|
};
|
|
7591
7584
|
|
|
7585
|
+
declare const types_13: {
|
|
7586
|
+
UPDATE_AUDIO_DESCRIPTION_LANGUAGES: string;
|
|
7587
|
+
UPDATE_EXTENDED_AUDIO_DESCRIPTION_LANGUAGES: string;
|
|
7588
|
+
UPDATE_AUDIO_DESCRIPTION_ENABLED: string;
|
|
7589
|
+
UPDATE_AUDIO_DESCRIPTION_TYPE: string;
|
|
7590
|
+
UPDATE_SELECTION_BY_LANGUAGE: string;
|
|
7591
|
+
RESET_SELECTION_BY_LANGUAGE: string;
|
|
7592
|
+
UPDATE_DEFAULT_VALUE_SET: string;
|
|
7593
|
+
};
|
|
7594
|
+
|
|
7592
7595
|
declare const types_2: {
|
|
7593
7596
|
UPDATE_CAPTIONS_STYLE: string;
|
|
7594
7597
|
};
|
|
@@ -7845,15 +7848,20 @@ export declare interface UIOptionsObject {
|
|
|
7845
7848
|
targetId: string;
|
|
7846
7849
|
debugActions?: boolean;
|
|
7847
7850
|
forceTouchUI?: boolean;
|
|
7851
|
+
allowPlayPause?: boolean;
|
|
7852
|
+
allowLivePlayPause?: boolean;
|
|
7848
7853
|
showCCButton?: boolean;
|
|
7854
|
+
showAudioDescriptionButton?: boolean;
|
|
7849
7855
|
openMenuFromCCButton?: boolean;
|
|
7856
|
+
openMenuFromAudioDescriptionButton?: boolean;
|
|
7857
|
+
showAudioButton?: boolean;
|
|
7850
7858
|
settings?: {
|
|
7851
7859
|
showAudioMenu?: boolean;
|
|
7852
7860
|
showCaptionsMenu?: boolean;
|
|
7853
7861
|
showQualityMenu?: boolean;
|
|
7854
7862
|
showSpeedMenu?: boolean;
|
|
7855
|
-
showAdvancedAudioDescToggle?: boolean;
|
|
7856
7863
|
showAdvancedCaptionsMenu?: boolean;
|
|
7864
|
+
showAudioDescriptionMenu?: boolean;
|
|
7857
7865
|
};
|
|
7858
7866
|
hoverTimeout?: number;
|
|
7859
7867
|
logger?: LoggerType;
|