@applicaster/quick-brick-player 13.0.13 → 13.0.15-rc.0
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 +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.15-rc.0",
|
|
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": "13.0.10",
|
|
39
39
|
"@applicaster/quick-brick-tv-transport-controls": "13.0.10",
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "13.0.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "13.0.
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "13.0.15-rc.0",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.15-rc.0",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "13.0.15-rc.0",
|
|
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
|
@@ -46,6 +46,8 @@ import {
|
|
|
46
46
|
isInlineTV as isInlineTVUtil,
|
|
47
47
|
} from "@applicaster/zapp-react-native-utils/playerUtils";
|
|
48
48
|
|
|
49
|
+
import { PlayerError } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/conts";
|
|
50
|
+
|
|
49
51
|
const styles = StyleSheet.create({
|
|
50
52
|
container: { flex: 1 },
|
|
51
53
|
playerContainerBlack: { backgroundColor: DEFAULT_COLORS.black },
|
|
@@ -404,9 +406,12 @@ export default class VideoPlayer extends React.Component<
|
|
|
404
406
|
|
|
405
407
|
// TODO: Should be unified on both platform
|
|
406
408
|
onVideoError = ({ nativeEvent }) => {
|
|
407
|
-
const
|
|
409
|
+
const description = nativeEvent.message;
|
|
410
|
+
const error = nativeEvent.error || nativeEvent.exception || "Unknown error"; // Android only fallback
|
|
411
|
+
|
|
412
|
+
const newError = new PlayerError(error, description);
|
|
408
413
|
|
|
409
|
-
return this.props?.listener?.onError(
|
|
414
|
+
return this.props?.listener?.onError(newError);
|
|
410
415
|
};
|
|
411
416
|
|
|
412
417
|
onPlayerPause = ({ nativeEvent = null }) => {
|