Skip to content

Commit 401fa48

Browse files
authored
chore: bump to 1.2.0 (#24)
1 parent 83d96e4 commit 401fa48

5 files changed

Lines changed: 28 additions & 21 deletions

File tree

ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ PODS:
12121212
- ReactCommon/turbomodule/core
12131213
- react-native-orientation-locker (1.7.0):
12141214
- React-Core
1215-
- react-native-vesper-sdk (1.1.0):
1215+
- react-native-vesper-sdk (1.2.0):
12161216
- DoubleConversion
12171217
- glog
12181218
- hermes-engine
@@ -1232,7 +1232,7 @@ PODS:
12321232
- ReactCodegen
12331233
- ReactCommon/turbomodule/bridging
12341234
- ReactCommon/turbomodule/core
1235-
- VesperSDK (= 1.2.4)
1235+
- VesperSDK (= 1.2.5)
12361236
- Yoga
12371237
- React-nativeconfig (0.77.0)
12381238
- React-NativeModulesApple (0.77.0):
@@ -1524,7 +1524,7 @@ PODS:
15241524
- React-perflogger (= 0.77.0)
15251525
- React-utils (= 0.77.0)
15261526
- SocketRocket (0.7.1)
1527-
- VesperSDK (1.2.4)
1527+
- VesperSDK (1.2.5)
15281528
- Yoga (0.0.0)
15291529

15301530
DEPENDENCIES:
@@ -1781,7 +1781,7 @@ SPEC CHECKSUMS:
17811781
React-Mapbuffer: 6993c785c22a170c02489bc78ed207814cbd700f
17821782
React-microtasksnativemodule: 19230cd0933df6f6dc1336c9a9edc382d62638ae
17831783
react-native-orientation-locker: 5819fd23ca89cbac0d736fb4314745f62716d517
1784-
react-native-vesper-sdk: 99557cc0e0309aac805c6edbfc287028bf56acc9
1784+
react-native-vesper-sdk: ccda990ec3c4cbc35504de3325aa704b038c7361
17851785
React-nativeconfig: cd0fbb40987a9658c24dab5812c14e5522a64929
17861786
React-NativeModulesApple: 45187d13c68d47250a7416b18ff082c7cc07bff7
17871787
React-perflogger: 15a7bcb6c46eae8a981f7add8c9f4172e2372324
@@ -1812,7 +1812,7 @@ SPEC CHECKSUMS:
18121812
ReactCodegen: 1baa534318b19e95fb0f02db0a1ae1e3c271944d
18131813
ReactCommon: 6014af4276bb2debc350e2620ef1bd856b4d981c
18141814
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
1815-
VesperSDK: a95c0eec5b0ad1daa98e533bafa37c79b309d0a2
1815+
VesperSDK: 2d17eafea6cacdd44c41651416cce4160e90cacb
18161816
Yoga: c0d8564af14a858f962607cd7306539cb2ace926
18171817

18181818
PODFILE CHECKSUM: cebf8470db47f270846e814bffb45dbe3d1b694e

ios/RnVesperSdkExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
479479
CLANG_ENABLE_MODULES = YES;
480480
CURRENT_PROJECT_VERSION = 1;
481-
DEVELOPMENT_TEAM = S2TGULJLWU;
481+
DEVELOPMENT_TEAM = PY4CZ36YFN;
482482
ENABLE_BITCODE = NO;
483483
INFOPLIST_FILE = RnVesperSdkExample/Info.plist;
484484
LD_RUNPATH_SEARCH_PATHS = (
@@ -507,7 +507,7 @@
507507
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
508508
CLANG_ENABLE_MODULES = YES;
509509
CURRENT_PROJECT_VERSION = 1;
510-
DEVELOPMENT_TEAM = S2TGULJLWU;
510+
DEVELOPMENT_TEAM = PY4CZ36YFN;
511511
INFOPLIST_FILE = RnVesperSdkExample/Info.plist;
512512
LD_RUNPATH_SEARCH_PATHS = (
513513
"$(inherited)",

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "jest"
1212
},
1313
"dependencies": {
14-
"@dicetechnology/react-native-vesper-sdk": "1.1.0",
14+
"@dicetechnology/react-native-vesper-sdk": "1.2.0",
1515
"react": "18.3.1",
1616
"react-native": "0.77.0",
1717
"react-native-orientation-locker": "1.7.0"

src/components/Player.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Orientation from 'react-native-orientation-locker';
55
import { CONFIG } from "../constants/CONFIG";
66

77
import { OrientationType } from 'react-native-orientation-locker';
8-
import type { ErrorData, FullScreenButtonTapData, PlayerStateChangedData } from '@dicetechnology/react-native-vesper-sdk';
8+
import type { ErrorData, FullScreenButtonTapData, PlaybackPositionChangedData, PlayerStateChangedData } from '@dicetechnology/react-native-vesper-sdk';
99

1010
export function Player() {
1111
const playerRef = useRef<PlayerView>(null);
@@ -62,6 +62,10 @@ export function Player() {
6262
setIsPipActive(false);
6363
};
6464

65+
const handlePlaybackPositionChangedEvent = (data: PlaybackPositionChangedData) => {
66+
console.info(`Event: ${JSON.stringify(data)}`);
67+
};
68+
6569
return (
6670
<View style={isFullscreen ? styles.fullscreenContainer : styles.container}>
6771
{!isFullscreen && !isPipActive &&
@@ -87,7 +91,7 @@ export function Player() {
8791
onPress={() => {
8892
const source: ResolvableSource = { id: videoId, isLive: isLive };
8993
console.info('Loading:', source);
90-
playerRef.current?.load({source: source});
94+
playerRef.current?.load({source: source, autoPlay: true});
9195
}}
9296
/>
9397
</View>
@@ -102,7 +106,8 @@ export function Player() {
102106
onHttpErrorEvent={handleHttpErrorEvent}
103107
onEnterPipEvent={handleEnterPipEvent}
104108
onExitPipEvent={handleExitPipEvent}
105-
isFullscreenData={{ isFullscreen: isFullscreen }}
109+
onPlaybackPositionChangedEvent={handlePlaybackPositionChangedEvent}
110+
config={{toggles: { isFullscreen: isFullscreen, isCloseButtonHidden: false }}}
106111
/>
107112
{!isFullscreen && !isPipActive &&
108113
<View>

0 commit comments

Comments
 (0)