Skip to content

Commit

Permalink
npm:1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lzj committed May 13, 2020
1 parent 4c7b1c1 commit 08121f1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ dependencies {
compileOnly 'com.facebook.react:react-native:+'
compileOnly files('src/main/assets')

api "com.jimi.jimivideoplayer:JimiVideoPlayer:1.4.7"
api "com.jimi.jimivideoplayer:JimiVideoPlayer:1.4.9"
}

Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ public void isRecording(Promise promise) {
@ReactMethod
public void getRecordingDuration(Promise promise) {
if (gJMVideoStreamPlayer != null) {
promise.resolve(gJMVideoStreamPlayer.getRecordingRuration());
int duration = (int)gJMVideoStreamPlayer.getRecordingRuration();
promise.resolve(duration);
} else {
promise.resolve(0);
}
Expand Down
13 changes: 11 additions & 2 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,17 @@ export default class App extends Component<Props> {
<TouchableOpacity style={styles.btn} onPress={() => { this.clickedReStart() }}>
<Text style={styles.baseStyle}>ReStart</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.btn} onPress={() => { this.clickedGetDuration() }}>
<Text style={styles.baseStyle}>Duration</Text>
</TouchableOpacity>
</View>
</View>
);
}

clickedInitSDK() {
// JMRTMPPlayerManager.initialize("cd15d1aba85346128811ae17fc2a2378", "a7866ef45d594ea988554fe633fa987e", "983135884798102")
JMRTMPPlayerManager.initialize("69dcc204c82e4861a7a763c6bb3f4b96", "fcb0f7e8ec9e4ed89d632240f4e1b8b9", "357730090535536")
JMRTMPPlayerManager.initialize("cd15d1aba85346128811ae17fc2a2378", "a7866ef45d594ea988554fe633fa987e", "983135884798102")
// JMRTMPPlayerManager.initialize("69dcc204c82e4861a7a763c6bb3f4b96", "fcb0f7e8ec9e4ed89d632240f4e1b8b9", "357730090535536")
}

clickedReleaseSDK() {
Expand Down Expand Up @@ -193,6 +196,12 @@ export default class App extends Component<Props> {
clickedReStart() {
JMRTMPPlayerManager.reStart();
}

clickedGetDuration() {
JMRTMPPlayerManager.getRecordingDuration().then(data => {
console.log(data);
});
}
}

const styles = StyleSheet.create({
Expand Down
18 changes: 12 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ PODS:
- DoubleConversion
- glog
- glog (0.3.5)
- JimiVideoPlayer (1.4.6)
- JimiVideoPlayer (1.4.9)
- React (0.58.6):
- React/Core (= 0.58.6)
- react-native-rtmp-player-jm (1.1.6):
- react-native-rtmp-player-jm (1.1.8):
- JimiVideoPlayer
- React
- React/Core (0.58.6):
Expand All @@ -21,16 +21,22 @@ PODS:
- React/jsiexecutor
- React/cxxreact (0.58.6):
- boost-for-react-native (= 1.63.0)
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React/jsinspector
- React/DevSupport (0.58.6):
- React/Core
- React/RCTWebSocket
- React/fishhook (0.58.6)
- React/jsi (0.58.6):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React/jsiexecutor (0.58.6):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React/cxxreact
- React/jsi
- React/jsinspector (0.58.6)
Expand Down Expand Up @@ -95,12 +101,12 @@ SPEC CHECKSUMS:
DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd
Folly: de497beb10f102453a1afa9edbf8cf8a251890de
glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d
JimiVideoPlayer: 27df8af8a087307b724dae9321a413772e152d7a
React: 130b87b2d5e2baac646954282cab87be986d98fc
react-native-rtmp-player-jm: 299c9d9ad71fa431b6ec38dc51e41aed4c521633
JimiVideoPlayer: b81815d62c25be5eb9dbdc55fc8e8adf5bbf2900
React: f85504c211ebbb63cfa0512572e124b185a94de2
react-native-rtmp-player-jm: 1fde5854a6090d9a0a6adb96539e136a5febee51
RNFS: c9bbde46b0d59619f8e7b735991c60e0f73d22c1
yoga: 32d7ef1081951e9a35a4c72a7be797598b138a48

PODFILE CHECKSUM: d3a51f5973489d00996ecef0a970b00c08d76b83

COCOAPODS: 1.9.0
COCOAPODS: 1.9.1
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react": "16.6.3",
"react-native": "0.58.6",
"react-native-fs": "2.13.3",
"react-native-rtmp-player-jm": "^1.1.8"
"react-native-rtmp-player-jm": "^1.1.9"
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
Expand Down
2 changes: 1 addition & 1 deletion react-native-rtmp-player-jm.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "react-native-rtmp-player-jm"
s.version = "1.1.8"
s.version = "1.2.0"
s.summary = "Jimi RTMP Video Player SDK for React Native"

s.description = <<-DESC
Expand Down

0 comments on commit 08121f1

Please sign in to comment.