@applicaster/quick-brick-player 15.0.0-rc.6 → 15.0.0-rc.8
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 +6 -6
- package/src/Player/index.tsx +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.8",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@applicaster/quick-brick-mobile-transport-controls": "
|
|
39
|
-
"@applicaster/quick-brick-tv-transport-controls": "
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "15.0.0-rc.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "15.0.0-rc.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "15.0.0-rc.
|
|
38
|
+
"@applicaster/quick-brick-mobile-transport-controls": "15.0.0-rc.8",
|
|
39
|
+
"@applicaster/quick-brick-tv-transport-controls": "15.0.0-rc.7",
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "15.0.0-rc.8",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "15.0.0-rc.8",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "15.0.0-rc.8",
|
|
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
|
@@ -50,6 +50,7 @@ import { TVPlayerView } from "./PlayerView/TVPlayerView";
|
|
|
50
50
|
import PlayerModal, { VideoPlayerModal } from "./PlayerModal";
|
|
51
51
|
import { DockedControls } from "./AudioLayer/Layout/DockedControls";
|
|
52
52
|
import { FlexImage } from "./AudioLayer/Layout/PlayerImage/FlexImage";
|
|
53
|
+
import { PlayerError } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/conts";
|
|
53
54
|
|
|
54
55
|
const styles = StyleSheet.create({
|
|
55
56
|
container: { flex: 1 },
|
|
@@ -416,9 +417,12 @@ export default class VideoPlayer extends React.Component<
|
|
|
416
417
|
|
|
417
418
|
// TODO: Should be unified on both platform
|
|
418
419
|
onVideoError = ({ nativeEvent }) => {
|
|
419
|
-
const
|
|
420
|
+
const description = nativeEvent.message;
|
|
421
|
+
const error = nativeEvent.error || nativeEvent.exception || "Unknown error"; // Android only fallback
|
|
420
422
|
|
|
421
|
-
|
|
423
|
+
const newError = new PlayerError(error, description);
|
|
424
|
+
|
|
425
|
+
return this.props?.listener?.onError(newError);
|
|
422
426
|
};
|
|
423
427
|
|
|
424
428
|
onPlayerPause = ({ nativeEvent = null }) => {
|