diff --git a/App.tsx b/App.tsx index 0d40acf..404858a 100644 --- a/App.tsx +++ b/App.tsx @@ -343,7 +343,7 @@ const About = () => { - Current Version: 1.0.11 + Current Version: 1.0.12 ); diff --git a/app.json b/app.json index dfc5fb9..ff8ae3c 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "Stream Companion App", "slug": "streamcompanionCrossPlatform", - "version": "1.0.11", + "version": "1.0.12", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "light", @@ -27,7 +27,7 @@ "blockedPermissions": [ "android.permission.READ_EXTERNAL_STORAGE,android.permission.SYSTEM_ALERT_WINDOW,android.permission.VIBRATE,android.permission.WRITE_EXTERNAL_STORAGE" ], - "versionCode": 11 + "versionCode": 12 }, "web": { "favicon": "./assets/favicon.png" diff --git a/kick/kickvideo/RNVideoVideo.tsx b/kick/kickvideo/RNVideoVideo.tsx index ffdd4af..3539342 100644 --- a/kick/kickvideo/RNVideoVideo.tsx +++ b/kick/kickvideo/RNVideoVideo.tsx @@ -31,6 +31,7 @@ const RNVideoVideo = forwardRef((props, ref) => { // console.log('resumeTime', resumeTimeInt); // videoRef.current.seek(resumeTimeInt); // } + console.log('resumeTime', resumeTime, 'uuid', uuid); if (resumeTime && uuid) { // get data from async storage let resumeStr = ''; @@ -42,8 +43,15 @@ const RNVideoVideo = forwardRef((props, ref) => { if (resumeStr) { const resumeTimeInt = parseInt(resumeStr); - if (videoRef.current) { - videoRef.current.seek(resumeTimeInt); + try { + // @ts-ignore + if (ref && ref.current) { + console.log('seeking to', resumeTimeInt); + // @ts-ignore + ref.current.seek(resumeTimeInt); + } + } catch (e) { + console.error('Error seeking to resumeTimeInt', e); } } } @@ -91,6 +99,7 @@ const RNVideoVideo = forwardRef((props, ref) => { // forwardRewind onProgress={onProgress} onLoad={handleLoad} + // onLoad={dohandleLoad} focusable={true} // onProgress={handleProgress} /> diff --git a/package-lock.json b/package-lock.json index 92505e6..45b5005 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@expo/webpack-config": "~19.0.1", "@noriginmedia/norigin-spatial-navigation": "^2.1.0", "@react-native-async-storage/async-storage": "1.21.0", - "@react-native-tvos/config-tv": "github:raymon-io/config-tv", + "@react-native-tvos/config-tv": "^0.0.7", "@react-navigation/native": "^6.1.9", "@react-navigation/stack": "^6.3.20", "expo": "~50.0.6", @@ -5731,14 +5731,14 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/@react-native-tvos/config-tv": { - "version": "0.0.4", - "resolved": "git+ssh://git@github.com/raymon-io/config-tv.git#051f77f8fb628f6cad3b31c3e812ca0a99840e8b", - "license": "MIT", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@react-native-tvos/config-tv/-/config-tv-0.0.7.tgz", + "integrity": "sha512-W4UFkqzv7c7UllQ6ZoK1Rds4e59fNANasMzLs0vaC8Qr8LjzrVbMmDWv1mKQCW97Yx5KM0lfjGMEkoxfO9KCTQ==", "dependencies": { "getenv": "^1.0.0" }, "peerDependencies": { - "expo": "^50.0.0-preview.3" + "expo": "^50.0.6" } }, "node_modules/@react-native/assets-registry": { diff --git a/package.json b/package.json index 66aed37..8a72b7a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@expo/webpack-config": "~19.0.1", "@noriginmedia/norigin-spatial-navigation": "^2.1.0", "@react-native-async-storage/async-storage": "1.21.0", - "@react-native-tvos/config-tv": "github:raymon-io/config-tv", + "@react-native-tvos/config-tv": "^0.0.7", "@react-navigation/native": "^6.1.9", "@react-navigation/stack": "^6.3.20", "expo": "~50.0.6",