@applicaster/quick-brick-player 15.1.25-alpha.9758191264 → 15.1.25

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": "15.1.25-alpha.9758191264",
3
+ "version": "15.1.25",
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.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",
40
+ "@applicaster/zapp-react-native-tvos-app": "15.1.25",
41
+ "@applicaster/zapp-react-native-ui-components": "15.1.25",
42
+ "@applicaster/zapp-react-native-utils": "15.1.25",
43
43
  "query-string": "7.1.3",
44
44
  "shaka-player": "4.3.5",
45
45
  "typeface-montserrat": "^0.0.54",
@@ -33,6 +33,7 @@ import {
33
33
  PlayerDetails,
34
34
  PlayerWrapper,
35
35
  } from "@applicaster/zapp-react-native-ui-components/Components/VideoModal";
36
+ import { getVerticalColumnWidth } from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/playerWrapperUtils";
36
37
 
37
38
  import { PlayNextOverlay } from "./PlayNextOverlay";
38
39
  import { PlayerImageBackground } from "@applicaster/zapp-react-native-ui-components/Components/PlayerImageBackground";
@@ -1376,9 +1377,6 @@ export default class VideoPlayer extends React.Component<
1376
1377
 
1377
1378
  const shouldRenderNativePlayer = !isCasting || this.supportNativeCast;
1378
1379
 
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
1380
  const isVerticalInlineTabletLandscape =
1383
1381
  vertical &&
1384
1382
  inline &&
@@ -1387,11 +1385,20 @@ export default class VideoPlayer extends React.Component<
1387
1385
  getIsTablet() &&
1388
1386
  !isTabletPortrait;
1389
1387
 
1388
+ // Vertical inline on a landscape tablet fills the column height. The
1389
+ // minimise animation and the docked slot both use this ratio, so it has to
1390
+ // describe that box, not 16:9, and both sides have to come from the same
1391
+ // window the layout measures -- getTabletWidth resolves percentages
1392
+ // against the device screen, which is wider than the app in split view.
1393
+ const verticalColumnWidth = isVerticalInlineTabletLandscape
1394
+ ? getVerticalColumnWidth(
1395
+ Dimensions.get("window").width,
1396
+ pluginConfiguration.tablet_landscape_sidebar_width
1397
+ )
1398
+ : undefined;
1399
+
1390
1400
  const aspectRatio = isVerticalInlineTabletLandscape
1391
- ? getTabletWidth(
1392
- pluginConfiguration.tablet_landscape_sidebar_width,
1393
- style
1394
- ) / Dimensions.get("window").height
1401
+ ? verticalColumnWidth / Dimensions.get("window").height
1395
1402
  : !inline && isModal && !piped
1396
1403
  ? getScreenAspectRatio()
1397
1404
  : 16 / 9;
@@ -1435,10 +1442,14 @@ export default class VideoPlayer extends React.Component<
1435
1442
  fullscreen={fullscreen}
1436
1443
  modal
1437
1444
  style={{
1438
- tabletLandscapeWidth: getTabletWidth(
1439
- this.getPluginConfiguration().tablet_landscape_sidebar_width,
1440
- style
1441
- ),
1445
+ // The modal freezes this as the player width, so it has to be the
1446
+ // same column the aspect ratio above describes.
1447
+ tabletLandscapeWidth:
1448
+ verticalColumnWidth ??
1449
+ getTabletWidth(
1450
+ this.getPluginConfiguration().tablet_landscape_sidebar_width,
1451
+ style
1452
+ ),
1442
1453
  width: style.width,
1443
1454
  height: style.height,
1444
1455
  }}