vdocipher-rn-bridge 1.20.5 → 1.20.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VdoPlayerView.tsx +0 -8
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/vdocipher/rnbridge/VdoDownloadModule.java +8 -4
- package/ios/RCTVdoPlayerUIView.swift +9 -0
- package/ios/VdocipherRnBridgeViewManager.m +1 -0
- package/ios/VdocipherRnBridgeViewManager.swift +1 -1
- package/package.json +1 -1
- package/react-native-vdocipher-rn-bridge.podspec +1 -1
package/VdoPlayerView.tsx
CHANGED
|
@@ -127,10 +127,6 @@ class VdoPlayerView extends Component<MyProps, MyState> {
|
|
|
127
127
|
* Works only with player with native controls
|
|
128
128
|
*/
|
|
129
129
|
enterFullscreenV2 = () => {
|
|
130
|
-
if (Platform.OS == "ios" ) {
|
|
131
|
-
console.warn("Method not supported for iOS");
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
130
|
if (this._vdoPlayerView && !(this.props.showNativeControls === false)) {
|
|
135
131
|
this._vdoPlayerView.enterFullscreenV2();
|
|
136
132
|
}
|
|
@@ -159,10 +155,6 @@ class VdoPlayerView extends Component<MyProps, MyState> {
|
|
|
159
155
|
* Works only with player with native controls
|
|
160
156
|
*/
|
|
161
157
|
exitFullscreenV2 = () => {
|
|
162
|
-
if (Platform.OS == "ios" ) {
|
|
163
|
-
console.warn("Method not supported for iOS");
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
158
|
if (this._vdoPlayerView && !(this.props.showNativeControls === false)) {
|
|
167
159
|
this._vdoPlayerView.exitFullscreenV2();
|
|
168
160
|
}
|
package/android/build.gradle
CHANGED
|
@@ -18,8 +18,8 @@ apply plugin: 'com.android.library'
|
|
|
18
18
|
// TODO read from package.json
|
|
19
19
|
// "releaseVersionName" must be the same as "version" in package.json
|
|
20
20
|
// "releaseVersionCode" must increment by 1 with every release
|
|
21
|
-
def releaseVersionName = "1.20.
|
|
22
|
-
def releaseVersionCode =
|
|
21
|
+
def releaseVersionName = "1.20.7"
|
|
22
|
+
def releaseVersionCode = 39
|
|
23
23
|
|
|
24
24
|
android {
|
|
25
25
|
compileSdkVersion 33
|
|
@@ -86,5 +86,5 @@ repositories {
|
|
|
86
86
|
dependencies {
|
|
87
87
|
compileOnly 'com.facebook.react:react-native:+'
|
|
88
88
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
89
|
-
implementation 'com.vdocipher.aegis:vdocipher-android:1.26.
|
|
89
|
+
implementation 'com.vdocipher.aegis:vdocipher-android:1.26.9'
|
|
90
90
|
}
|
|
@@ -278,10 +278,14 @@ public class VdoDownloadModule extends ReactContextBaseJavaModule implements Vdo
|
|
|
278
278
|
VdoDownloadManager vdoDownloadManager = VdoDownloadManager.getInstance(getReactApplicationContext());
|
|
279
279
|
vdoDownloadManager.query(query, statusList -> {
|
|
280
280
|
Log.i(TAG, statusList.size() + " results found");
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
if (statusList.size() > 0) {
|
|
282
|
+
boolean isExpired = statusList.get(0).isExpired(getReactApplicationContext());
|
|
283
|
+
successCallback.invoke(
|
|
284
|
+
isExpired
|
|
285
|
+
);
|
|
286
|
+
} else {
|
|
287
|
+
errorCallback.invoke(null, "Video not found");
|
|
288
|
+
}
|
|
285
289
|
});
|
|
286
290
|
} catch (RuntimeException e) {
|
|
287
291
|
Log.e(TAG, "error fetching expiry: " + Log.getStackTraceString(e));
|
|
@@ -79,4 +79,13 @@ class RCTVdoPlayerUIView: VdoCipherRNView {
|
|
|
79
79
|
activityView = nil
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
@objc func setFullscreen(_ val: Bool) {
|
|
84
|
+
let playerViewController = VdoCipher.getVdoPlayerViewController()
|
|
85
|
+
if val == true {
|
|
86
|
+
playerViewController.enterFullscreen()
|
|
87
|
+
} else {
|
|
88
|
+
playerViewController.exitFullscreen()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
82
91
|
}
|
|
@@ -29,6 +29,7 @@ RCT_EXPORT_VIEW_PROPERTY(captionLanguage, NSDictionary *)
|
|
|
29
29
|
RCT_EXPORT_VIEW_PROPERTY(disableCaptions, int)
|
|
30
30
|
RCT_EXPORT_VIEW_PROPERTY(videoQuality, NSDictionary *)
|
|
31
31
|
RCT_EXPORT_VIEW_PROPERTY(adaptiveVideo, BOOL)
|
|
32
|
+
RCT_EXPORT_VIEW_PROPERTY(fullscreen, BOOL)
|
|
32
33
|
|
|
33
34
|
- (VdoCipherRNView *)view
|
|
34
35
|
{
|
|
@@ -5,7 +5,7 @@ import VdoFramework
|
|
|
5
5
|
@objc(VdocipherRnBridge)
|
|
6
6
|
class VdocipherRnBridge: RCTViewManager {
|
|
7
7
|
|
|
8
|
-
static let vdocipherRnBridgeVersionString = "1.20.
|
|
8
|
+
static let vdocipherRnBridgeVersionString = "1.20.7"
|
|
9
9
|
|
|
10
10
|
@objc override static func requiresMainQueueSetup() -> Bool {
|
|
11
11
|
return true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vdocipher-rn-bridge",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.7",
|
|
4
4
|
"description": "React native bridge library that delegates to vdocipher native android SDK",
|
|
5
5
|
"homepage": "https://www.vdocipher.com/docs/mobile/react-native/getting-started/",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "VdoFramework", "2.
|
|
20
|
+
s.dependency "VdoFramework", "2.6.0"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|