Skip to content

Commit

Permalink
1.0.12 fixed video resume time and updated config plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
raymon-io committed Mar 13, 2024
1 parent b5e543d commit e26b566
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ const About = () => {

</TouchableOpacity>

<Text style={{ color: 'white', fontSize: 18 }}>Current Version: 1.0.11</Text>
<Text style={{ color: 'white', fontSize: 18 }}>Current Version: 1.0.12</Text>

</View>
);
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
13 changes: 11 additions & 2 deletions kick/kickvideo/RNVideoVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const RNVideoVideo = forwardRef<VideoRef, RNVideoVideoProps>((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 = '';
Expand All @@ -42,8 +43,15 @@ const RNVideoVideo = forwardRef<VideoRef, RNVideoVideoProps>((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);
}
}
}
Expand Down Expand Up @@ -91,6 +99,7 @@ const RNVideoVideo = forwardRef<VideoRef, RNVideoVideoProps>((props, ref) => {
// forwardRewind
onProgress={onProgress}
onLoad={handleLoad}
// onLoad={dohandleLoad}
focusable={true}
// onProgress={handleProgress}
/>
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e26b566

Please sign in to comment.