@applicaster/quick-brick-player 12.0.0-rc.82 → 12.0.0-rc.83
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.83",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@applicaster/quick-brick-mobile-transport-controls": "12.0.0-rc.
|
|
40
|
-
"@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.
|
|
41
|
-
"@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.
|
|
42
|
-
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.
|
|
43
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-rc.
|
|
39
|
+
"@applicaster/quick-brick-mobile-transport-controls": "12.0.0-rc.83",
|
|
40
|
+
"@applicaster/quick-brick-tv-transport-controls": "12.0.0-rc.83",
|
|
41
|
+
"@applicaster/zapp-react-native-tvos-app": "12.0.0-rc.83",
|
|
42
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.83",
|
|
43
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.83",
|
|
44
44
|
"keymirror": "^0.1.1",
|
|
45
45
|
"query-string": "7.1.3",
|
|
46
46
|
"react-native-web-linear-gradient": "1.1.2",
|
|
@@ -388,6 +388,7 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
|
|
|
388
388
|
<AnimationComponent
|
|
389
389
|
animationType={ComponentAnimationType.moveUpComponent}
|
|
390
390
|
additionalData={{ saveArea: true }}
|
|
391
|
+
style={Styles.playerContainer}
|
|
391
392
|
>
|
|
392
393
|
<AnimatedScrollModal>
|
|
393
394
|
<View style={Styles.playerContainer} onLayout={onLayout}>
|
package/src/Player/index.tsx
CHANGED
|
@@ -335,11 +335,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
* Sets either subtitle language, or audio language if we have a selected a new locale.
|
|
340
|
-
* If no locale is set it defaults to system language for audio, and leaves subtitles unaltered.
|
|
341
|
-
*/
|
|
342
|
-
selectTrack = (selected = null) => {
|
|
338
|
+
selectTrack = (selected) => {
|
|
343
339
|
const { trackType, id, language } = selected || {};
|
|
344
340
|
|
|
345
341
|
const isOff = language === "Off";
|
|
@@ -993,7 +989,13 @@ export default class VideoPlayer extends React.Component<
|
|
|
993
989
|
...androidLifecyclePiPEvents,
|
|
994
990
|
};
|
|
995
991
|
|
|
996
|
-
const needToShowPlayNextOverlay =
|
|
992
|
+
const needToShowPlayNextOverlay =
|
|
993
|
+
isTV() && this.getPlayNextData() && !docked;
|
|
994
|
+
|
|
995
|
+
const needToShowDefaultControls = !(
|
|
996
|
+
(controls && !castAction?.state?.connected) ||
|
|
997
|
+
this.getPlayNextData()
|
|
998
|
+
);
|
|
997
999
|
|
|
998
1000
|
const playerContainerStyles = isApplePlatform()
|
|
999
1001
|
? styles.playerContainerBlack
|
|
@@ -1035,7 +1037,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
1035
1037
|
extraInfoText={castAction?.state?.friendlyStatus}
|
|
1036
1038
|
controlsAlwaysVisible={castAction?.state?.connected}
|
|
1037
1039
|
playNextData={this.getPlayNextData()}
|
|
1038
|
-
|
|
1040
|
+
needToShowDefaultControls={needToShowDefaultControls}
|
|
1039
1041
|
/>
|
|
1040
1042
|
) : null;
|
|
1041
1043
|
};
|