@applicaster/quick-brick-player 15.1.24-rc.0 → 15.1.25-alpha.9758191264
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 +4 -4
- package/src/Player/index.tsx +27 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.25-alpha.9758191264",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@applicaster/quick-brick-mobile-transport-controls": "15.1.23",
|
|
39
39
|
"@applicaster/quick-brick-tv-transport-controls": "15.1.23",
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "15.1.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "15.1.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "15.1.
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "15.1.25-alpha.9758191264",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "15.1.25-alpha.9758191264",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "15.1.25-alpha.9758191264",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"shaka-player": "4.3.5",
|
|
45
45
|
"typeface-montserrat": "^0.0.54",
|
package/src/Player/index.tsx
CHANGED
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import * as R from "ramda";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
Dimensions,
|
|
10
|
+
findNodeHandle,
|
|
11
|
+
StyleSheet,
|
|
12
|
+
View,
|
|
13
|
+
ViewStyle,
|
|
14
|
+
} from "react-native";
|
|
9
15
|
|
|
10
16
|
import TransportControlsMobile, {
|
|
11
17
|
ErrorOverlay,
|
|
@@ -47,6 +53,7 @@ import {
|
|
|
47
53
|
isAudioItem as isAudioItemUtil,
|
|
48
54
|
isInlineTV as isInlineTVUtil,
|
|
49
55
|
} from "@applicaster/zapp-react-native-utils/playerUtils";
|
|
56
|
+
import { useIsTablet as getIsTablet } from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
50
57
|
|
|
51
58
|
import { TVPlayerView } from "./PlayerView/TVPlayerView";
|
|
52
59
|
import PlayerModal, { VideoPlayerModal } from "./PlayerModal";
|
|
@@ -1369,8 +1376,25 @@ export default class VideoPlayer extends React.Component<
|
|
|
1369
1376
|
|
|
1370
1377
|
const shouldRenderNativePlayer = !isCasting || this.supportNativeCast;
|
|
1371
1378
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1379
|
+
// Vertical inline on a landscape tablet fills the column height. The
|
|
1380
|
+
// minimise animation and the docked slot both use this ratio, so it has
|
|
1381
|
+
// to describe that box (column width / screen height), not 16:9.
|
|
1382
|
+
const isVerticalInlineTabletLandscape =
|
|
1383
|
+
vertical &&
|
|
1384
|
+
inline &&
|
|
1385
|
+
isModal &&
|
|
1386
|
+
!piped &&
|
|
1387
|
+
getIsTablet() &&
|
|
1388
|
+
!isTabletPortrait;
|
|
1389
|
+
|
|
1390
|
+
const aspectRatio = isVerticalInlineTabletLandscape
|
|
1391
|
+
? getTabletWidth(
|
|
1392
|
+
pluginConfiguration.tablet_landscape_sidebar_width,
|
|
1393
|
+
style
|
|
1394
|
+
) / Dimensions.get("window").height
|
|
1395
|
+
: !inline && isModal && !piped
|
|
1396
|
+
? getScreenAspectRatio()
|
|
1397
|
+
: 16 / 9;
|
|
1374
1398
|
|
|
1375
1399
|
const audioPlayerProps = {
|
|
1376
1400
|
ref: this._assignRoot,
|