@applicaster/quick-brick-player 14.0.0-alpha.1430213104 → 14.0.0-alpha.1661204539
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 +5 -5
- package/src/Player/index.tsx +7 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1661204539",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.124",
|
|
39
|
-
"@applicaster/quick-brick-tv-transport-controls": "
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "14.0.0-alpha.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
39
|
+
"@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "14.0.0-alpha.1661204539",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.1661204539",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.1661204539",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"react-native-web-linear-gradient": "1.1.2",
|
|
45
45
|
"shaka-player": "4.3.5",
|
package/src/Player/index.tsx
CHANGED
|
@@ -33,6 +33,7 @@ import { playerManager } from "@applicaster/zapp-react-native-utils/appUtils";
|
|
|
33
33
|
import { getAllAccessibilityProps } from "@applicaster/zapp-react-native-utils/configurationUtils";
|
|
34
34
|
import { PlayNextData } from "@applicaster/zapp-react-native-ui-components/Components/PlayerContainer/PlayerContainer";
|
|
35
35
|
import { getTargetScreenDataFromEntry } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useTargetScreenData";
|
|
36
|
+
import { isAppleTV } from "@applicaster/zapp-react-native-ui-components/Helpers/Platform";
|
|
36
37
|
import {
|
|
37
38
|
AnimationComponent,
|
|
38
39
|
ComponentAnimationType,
|
|
@@ -41,10 +42,7 @@ import { PlayerAnalyticsManager } from "@applicaster/zapp-react-native-utils/ana
|
|
|
41
42
|
import { PlayerAnalyticsTrackerI } from "@applicaster/zapp-react-native-utils/analyticsUtils/playerAnalyticsTracker";
|
|
42
43
|
|
|
43
44
|
import { RNPlayerManager } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/nativePlayerManager";
|
|
44
|
-
import {
|
|
45
|
-
isAudioItem as isAudioItemUtil,
|
|
46
|
-
isInlineTV as isInlineTVUtil,
|
|
47
|
-
} from "@applicaster/zapp-react-native-utils/playerUtils";
|
|
45
|
+
import { isAudioItem as isAudioItemUtil } from "@applicaster/zapp-react-native-utils/playerUtils";
|
|
48
46
|
|
|
49
47
|
const styles = StyleSheet.create({
|
|
50
48
|
container: { flex: 1 },
|
|
@@ -801,7 +799,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
801
799
|
// TODO: Get screen data more reliable way useCurrentScreenData
|
|
802
800
|
const screenData = getTargetScreenDataFromEntry(this.props.playableItem);
|
|
803
801
|
|
|
804
|
-
const isInlineTV =
|
|
802
|
+
const isInlineTV = screenData?.ui_components?.length > 0 && isTV();
|
|
805
803
|
|
|
806
804
|
let platformSpecificProps: any = isApplePlatform()
|
|
807
805
|
? {
|
|
@@ -812,7 +810,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
812
810
|
const supportsNativeControls =
|
|
813
811
|
!!this.props.controller?.supportsNativeControls?.();
|
|
814
812
|
|
|
815
|
-
const controls =
|
|
813
|
+
const controls = isAppleTV()
|
|
816
814
|
? (supportsNativeControls && !isInlineTV) || !!this.getPlayNextData()
|
|
817
815
|
: supportsNativeControls && !this.getPlayNextData();
|
|
818
816
|
|
|
@@ -859,7 +857,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
859
857
|
),
|
|
860
858
|
};
|
|
861
859
|
|
|
862
|
-
if (!
|
|
860
|
+
if (!isAppleTV()) {
|
|
863
861
|
// TODO: Move to RN method and remove from props.
|
|
864
862
|
// Causes tvOS bug: native player passes rate on fast seek,
|
|
865
863
|
// RN returns it and it breaks playback.
|
|
@@ -1141,7 +1139,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
1141
1139
|
const renderTVPlayer = () => {
|
|
1142
1140
|
return (
|
|
1143
1141
|
<View style={this.takeParentStyle} testID={"player-view"}>
|
|
1144
|
-
{
|
|
1142
|
+
{!isTvOS && isAudioItem ? (
|
|
1145
1143
|
<AudioPlayer
|
|
1146
1144
|
style={getStyle(styles.audioPlayerSize)}
|
|
1147
1145
|
audio_item={entry}
|
|
@@ -1158,7 +1156,7 @@ export default class VideoPlayer extends React.Component<
|
|
|
1158
1156
|
pluginConfiguration={this.getPluginConfiguration()}
|
|
1159
1157
|
controller={this.props.controller}
|
|
1160
1158
|
>
|
|
1161
|
-
{
|
|
1159
|
+
{this.childrenWithExtensions()}
|
|
1162
1160
|
</this.props.PlayerComponent>
|
|
1163
1161
|
|
|
1164
1162
|
{renderTransportControls(this.takeParentStyle)}
|