Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOO-803]: react-native-video dependency upgraded (9.24) #169

Open
wants to merge 3 commits into
base: mx/9.24.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/pluggableWidgets/video-player-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [4.0.1] - 2024-8-28

### Changed

- We have updated both `react-native-video` to 6.3.0
Ahmad-Elsayed marked this conversation as resolved.
Show resolved Hide resolved

## [4.0.0] - 2023-3-28

## BREAKING
Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/video-player-native/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "video-player-native",
"widgetName": "VideoPlayer",
"version": "4.0.0",
"version": "4.0.1",
Ahmad-Elsayed marked this conversation as resolved.
Show resolved Hide resolved
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand All @@ -23,7 +23,7 @@
"deprecated-react-native-prop-types": "^4.0.0",
"react-native-system-navigation-bar": "1.0.2",
"react-native-vector-icons": "9.1.0",
"react-native-video": "5.2.1"
"react-native-video": "6.3.0"
},
"devDependencies": {
"@mendix/piw-utils-internal": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Modal,
NativeModules
} from "react-native";
import Video, { OnProgressData, VideoProperties } from "react-native-video";
import Video, { OnProgressData, VideoRef, ReactVideoProps } from "react-native-video";
import Icon from "react-native-vector-icons/MaterialIcons";
import { VideoPlayerProps } from "../typings/VideoPlayerProps";
import { defaultVideoStyle, VideoStyle } from "./ui/Styles";
Expand All @@ -29,8 +29,8 @@ const enum StatusEnum {
export function VideoPlayer(props: VideoPlayerProps<VideoStyle>): ReactElement {
const [styles, setStyles] = useState(flattenStyles(defaultVideoStyle, props.style));
const timeoutRef = useRef<NodeJS.Timeout>();
const playerRef = useRef<Video>(null);
const fullScreenPlayerRef = useRef<Video>(null);
const playerRef = useRef<VideoRef>(null);
const fullScreenPlayerRef = useRef<VideoRef>(null);
const [status, setStatus] = useState(StatusEnum.NOT_READY);
const [videoAspectRatio, setVideoAspectRatio] = useState(0);
const [fullScreen, setFullScreen] = useState(false);
Expand Down Expand Up @@ -100,7 +100,7 @@ export function VideoPlayer(props: VideoPlayerProps<VideoStyle>): ReactElement {
}
}

const videoProps: VideoProperties = {
const videoProps: ReactVideoProps = {
testID: props.name,
source: { uri: isAvailable(props.videoUrl) ? props.videoUrl.value : undefined },
muted: props.muted,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="VideoPlayer" version="4.0.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="VideoPlayer" version="4.0.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="VideoPlayer.xml" />
</widgetFiles>
Expand Down
43 changes: 9 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6989,7 +6989,7 @@ __metadata:
languageName: node
linkType: hard

"deprecated-react-native-prop-types@npm:^2.2.0, deprecated-react-native-prop-types@npm:^2.3.0":
"deprecated-react-native-prop-types@npm:^2.3.0":
version: 2.3.0
resolution: "deprecated-react-native-prop-types@npm:2.3.0"
dependencies:
Expand Down Expand Up @@ -7263,13 +7263,6 @@ __metadata:
languageName: node
linkType: hard

"eme-encryption-scheme-polyfill@npm:^2.0.1":
version: 2.1.1
resolution: "eme-encryption-scheme-polyfill@npm:2.1.1"
checksum: 5d67fac0f95cc7e2066c68a15d8ecfb508d0c3774d3b8a37013da1a3a6a25ce86d6f8e185d885aa802c1fca48a3348f13dd310e54966fb96faba833a1e62000b
languageName: node
linkType: hard

"emittery@npm:^0.13.1":
version: 0.13.1
resolution: "emittery@npm:0.13.1"
Expand Down Expand Up @@ -11183,13 +11176,6 @@ __metadata:
languageName: node
linkType: hard

"keymirror@npm:^0.1.1":
version: 0.1.1
resolution: "keymirror@npm:0.1.1"
checksum: be8f0bc5ff7d561d729f935ef55b4dbbea7b56a4714f044a2212088730f4d52f73935c38c5a9604e0f1157611725ee493cb7d08d1f3eb34151c0aa999236206a
languageName: node
linkType: hard

"kind-of@npm:^3.0.2, kind-of@npm:^3.0.3, kind-of@npm:^3.2.0":
version: 3.2.2
resolution: "kind-of@npm:3.2.2"
Expand Down Expand Up @@ -15162,15 +15148,13 @@ __metadata:
languageName: node
linkType: hard

"react-native-video@npm:5.2.1":
version: 5.2.1
resolution: "react-native-video@npm:5.2.1"
dependencies:
deprecated-react-native-prop-types: ^2.2.0
keymirror: ^0.1.1
prop-types: ^15.7.2
shaka-player: ^2.5.9
checksum: efbc09a47e3080dde2986a3a1ea3f32b815317f99013c015522fd2e6ed937ed02244761f4dd5c8f5bf0260bf8a1d518315025cae499c16a6c3b1cd0fa6935d2d
"react-native-video@npm:6.3.0":
version: 6.3.0
resolution: "react-native-video@npm:6.3.0"
peerDependencies:
react: "*"
react-native: "*"
checksum: fd3995eb14a64ff2848059baf1e6ad797fad10cec05a31c09d6eaf57433930411b7e6ae11a8d086f2ecc05b4434f884005c9425ac9b2e281406ca389ae366694
languageName: node
linkType: hard

Expand Down Expand Up @@ -16242,15 +16226,6 @@ __metadata:
languageName: node
linkType: hard

"shaka-player@npm:^2.5.9":
version: 2.5.23
resolution: "shaka-player@npm:2.5.23"
dependencies:
eme-encryption-scheme-polyfill: ^2.0.1
checksum: 219c5ab073edd0f70582809df533d29f0369a5d8e31507ea76ddc71f3c8e11e9b63b61671ce19d7d3c464d7f3035581a4820903535ce24d4d5da7a94a98ca064
languageName: node
linkType: hard

"shallow-clone@npm:^1.0.0":
version: 1.0.0
resolution: "shallow-clone@npm:1.0.0"
Expand Down Expand Up @@ -18344,7 +18319,7 @@ __metadata:
eslint: ^7.20.0
react-native-system-navigation-bar: 1.0.2
react-native-vector-icons: 9.1.0
react-native-video: 5.2.1
react-native-video: 6.3.0
languageName: unknown
linkType: soft

Expand Down
Loading