Compare commits
61 Commits
ivan/on-se
...
ivan/mergi
Author | SHA1 | Date | |
---|---|---|---|
ff0f288636 | |||
d7977241c9 | |||
921ead0f05 | |||
20397d32e6 | |||
e3900e794d | |||
4dc7bf465f | |||
e5f182cda9 | |||
9138c3249d | |||
7a1d0e8b10 | |||
9cbba8f95e | |||
2cfb26d51f | |||
4f18e9b238 | |||
bd64379837 | |||
47151c7119 | |||
a16275b003 | |||
56c129aa4f | |||
68cbe3c4b1 | |||
81e864c0e1 | |||
0e9ac4d125 | |||
9191a06600 | |||
dc61c3efea | |||
11f480f206 | |||
9619e7517b | |||
3ddc6e931a | |||
6b5831dc1c | |||
3fc002f3fd | |||
edb5c6bcfa | |||
5bc975b2c9 | |||
d79b5c9a83 | |||
f72b44d4df | |||
d2ab22b99f | |||
2dcde42fd6 | |||
c7a45d421b | |||
f0db0a6868 | |||
01b3322e03 | |||
13beae1401 | |||
f3deabd75e | |||
d69729dc04 | |||
|
6768c22139 | ||
|
2b369df57d | ||
|
8542c8f7d1 | ||
|
fc5b2d4563 | ||
|
ffb4631854 | ||
|
29cf7c97c3 | ||
|
491ed77a32 | ||
|
5b199b52b4 | ||
|
9d19157654 | ||
|
3dabf5f16f | ||
|
e610a274d5 | ||
|
27880f5212 | ||
|
39dd30b762 | ||
|
edf5d0c613 | ||
|
975fc2f303 | ||
|
aa85d71b87 | ||
|
cce24cd829 | ||
|
cad63d465d | ||
|
f5fa063bc0 | ||
|
c6abcdeb2f | ||
|
a72ab331dc | ||
|
fa126de97f | ||
|
ca2452edb6 |
@@ -87,7 +87,7 @@ yarn start
|
||||
> [!TIP]
|
||||
> Make sure you've already downloaded the simulator on which you want to launch the app.
|
||||
|
||||
## [Expo](https://github.com/TheWidlarzGroup/react-native-video/tree/master/examples/expo)
|
||||
## [Expo](https://github.com/TheWidlarzGroup/react-native-video/tree/master/examples/bare)
|
||||
|
||||
### Configuration
|
||||
|
||||
|
52
examples/basic/package.json
Normal file
52
examples/basic/package.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "VideoPlayer",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"web": "expo start --web",
|
||||
"android": "expo run:android",
|
||||
"ios": "expo run:ios",
|
||||
"windows": "react-native run-windows",
|
||||
"start": "expo start",
|
||||
"test": "jest",
|
||||
"lint": "eslint .",
|
||||
"pod-install": "cd ios && pod install && cd ..",
|
||||
"pod-install:newarch": "cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install && cd .."
|
||||
},
|
||||
"dependencies": {
|
||||
"@expo/metro-runtime": "~3.2.1",
|
||||
"@react-native-picker/picker": "2.7.5",
|
||||
"expo": "^51.0.32",
|
||||
"expo-asset": "~10.0.10",
|
||||
"expo-image": "^1.12.15",
|
||||
"expo-navigation-bar": "~3.0.7",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.74.5",
|
||||
"react-dom": "18.2.0",
|
||||
"react-native-web": "~0.19.10",
|
||||
"react-native-windows": "0.74.19"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.0",
|
||||
"@babel/preset-env": "^7.22.10",
|
||||
"@babel/runtime": "^7.22.10",
|
||||
"@react-native/babel-preset": "0.74.85",
|
||||
"@react-native/eslint-config": "0.74.85",
|
||||
"@react-native/metro-config": "0.74.85",
|
||||
"@react-native/typescript-config": "0.74.85",
|
||||
"@types/react": "~18.2.79",
|
||||
"@types/react-test-renderer": "^18.0.0",
|
||||
"babel-jest": "^29.6.3",
|
||||
"babel-plugin-module-resolver": "5.0.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^29.6.3",
|
||||
"prettier": "^2.8.8",
|
||||
"typescript": "~5.3.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/react": "^18.0.24"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
4
examples/basic/src/index.js
Normal file
4
examples/basic/src/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import {registerRootComponent} from 'expo';
|
||||
import VideoPlayer from './VideoPlayer';
|
||||
|
||||
registerRootComponent(VideoPlayer);
|
9711
examples/basic/yarn.lock
Normal file
9711
examples/basic/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -32,9 +32,12 @@
|
||||
"react-native": "0.73.2",
|
||||
"react-native-windows": "^0.61.0-0",
|
||||
"release-it": "^16.2.1",
|
||||
"typescript": "5.1.6"
|
||||
"typescript": "5.1.6",
|
||||
"patch-package": "^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"shaka-player": "^4.11.7"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"react-native": "*"
|
||||
|
39
patches/shaka-player+4.11.7.patch
Normal file
39
patches/shaka-player+4.11.7.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
diff --git a/node_modules/shaka-player/dist/shaka-player.compiled.d.ts b/node_modules/shaka-player/dist/shaka-player.compiled.d.ts
|
||||
index 19c0930..cc0a3fd 100644
|
||||
--- a/node_modules/shaka-player/dist/shaka-player.compiled.d.ts
|
||||
+++ b/node_modules/shaka-player/dist/shaka-player.compiled.d.ts
|
||||
@@ -5117,3 +5117,5 @@ declare namespace shaka.extern {
|
||||
declare namespace shaka.extern {
|
||||
type TransmuxerPlugin = ( ) => shaka.extern.Transmuxer ;
|
||||
}
|
||||
+
|
||||
+export default shaka;
|
||||
diff --git a/node_modules/shaka-player/dist/shaka-player.ui.d.ts b/node_modules/shaka-player/dist/shaka-player.ui.d.ts
|
||||
index 1618ca0..a6076c6 100644
|
||||
--- a/node_modules/shaka-player/dist/shaka-player.ui.d.ts
|
||||
+++ b/node_modules/shaka-player/dist/shaka-player.ui.d.ts
|
||||
@@ -5830,3 +5830,5 @@ declare namespace shaka.extern {
|
||||
declare namespace shaka.extern {
|
||||
type UIVolumeBarColors = { base : string , level : string } ;
|
||||
}
|
||||
+
|
||||
+export default shaka;
|
||||
diff --git a/node_modules/shaka-player/index.d.ts b/node_modules/shaka-player/index.d.ts
|
||||
new file mode 100644
|
||||
index 0000000..3ebfd96
|
||||
--- /dev/null
|
||||
+++ b/node_modules/shaka-player/index.d.ts
|
||||
@@ -0,0 +1,2 @@
|
||||
+/// <reference path="./dist/shaka-player.compiled.d.ts" />
|
||||
+/// <reference path="./dist/shaka-player.ui.d.ts" />
|
||||
\ No newline at end of file
|
||||
diff --git a/node_modules/shaka-player/ui.d.ts b/node_modules/shaka-player/ui.d.ts
|
||||
new file mode 100644
|
||||
index 0000000..84a3be0
|
||||
--- /dev/null
|
||||
+++ b/node_modules/shaka-player/ui.d.ts
|
||||
@@ -0,0 +1,3 @@
|
||||
+import shaka from 'shaka-player/dist/shaka-player.ui'
|
||||
+export * from 'shaka-player/dist/shaka-player.ui'
|
||||
+export default shaka;
|
||||
\ No newline at end of file
|
@@ -46,7 +46,7 @@ import {
|
||||
resolveAssetSourceForVideo,
|
||||
} from './utils';
|
||||
import NativeVideoManager from './specs/NativeVideoManager';
|
||||
import {ViewType, CmcdMode, VideoRef} from './types';
|
||||
import {type VideoSaveData, ViewType, CmcdMode, VideoRef} from './types';
|
||||
import type {
|
||||
OnLoadData,
|
||||
OnTextTracksData,
|
||||
|
Reference in New Issue
Block a user