vdocipher-rn-bridge 1.10.1 → 1.10.2
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/CHANGELOG.md +4 -0
- package/README.md +26 -7
- package/android/build.gradle +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
### 1.10.2
|
|
3
|
+
* Updated VdoCipher android sdk dependency to 1.18.2
|
|
4
|
+
* Updated compileSdkVersion to 33 and targetSdkVersion to 32
|
|
5
|
+
|
|
2
6
|
### 1.10.1
|
|
3
7
|
* Updated VdoCipher android sdk dependency to 1.18.1
|
|
4
8
|
* Updated player with built-in controls to use Player-UI provided by native sdk
|
package/README.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## Note:
|
|
6
6
|
|
|
7
|
-
1.
|
|
8
|
-
using it in your application
|
|
9
|
-
2. IOS is not supported. Only Android support available. IOS support will be
|
|
7
|
+
1. IOS is not supported. Only Android support available. IOS support will be
|
|
10
8
|
added in future.
|
|
11
|
-
|
|
9
|
+
2. Currently, it is not possible to get any events or callbacks from Android
|
|
12
10
|
player activity. The video will open in a new _native_ activity outside of
|
|
13
11
|
the react native setup. Back button will take the user from the player
|
|
14
12
|
activity to home activity.
|
|
@@ -77,6 +75,8 @@ development machine, and run the example app:
|
|
|
77
75
|
|
|
78
76
|
## Usage
|
|
79
77
|
|
|
78
|
+
For detailed usage of the library, refer the link [here.](https://www.vdocipher.com/docs/mobile/react-native/getting-started)
|
|
79
|
+
|
|
80
80
|
### Launch a video in a fullscreen player
|
|
81
81
|
|
|
82
82
|
```javascript
|
|
@@ -124,9 +124,11 @@ const embedInfo = {otp: 'some-otp', playbackInfo: 'some-playbackInfo'};
|
|
|
124
124
|
* [onEnterFullscreen](#onenterfullscreen)
|
|
125
125
|
* [onExitFullscreen](#onexitfullscreen)
|
|
126
126
|
* [onPlaybackProperties](#onplaybackproperties)
|
|
127
|
+
* [onPictureInPictureModeChanged](#onPictureInPictureModeChanged)
|
|
127
128
|
|
|
128
129
|
### VdoPlayerView methods
|
|
129
130
|
|
|
131
|
+
* [seek](#seek)
|
|
130
132
|
* [enterFullscreen](#enterfullscreen)
|
|
131
133
|
* [exitFullscreen](#exitfullscreen)
|
|
132
134
|
* [getPlaybackProperties](#getplaybackproperties)
|
|
@@ -139,11 +141,15 @@ Property | Type | Description
|
|
|
139
141
|
--- | --- | ---
|
|
140
142
|
otp | string | a valid otp
|
|
141
143
|
playbackInfo | string | a valid playbackInfo
|
|
142
|
-
forceLowestBitrate | boolean | whether to force lowest bitrate; default false
|
|
143
|
-
forceHighestSupportedBitrate | boolean | whether to force highest supported bitrate; default false
|
|
144
|
+
forceLowestBitrate | boolean | whether to force lowest bitrate; default: `false`
|
|
145
|
+
forceHighestSupportedBitrate | boolean | whether to force highest supported bitrate; default: `false`
|
|
144
146
|
maxVideoBitrateKbps | number | maximum allowed video bitrate in kbps
|
|
145
147
|
bufferingGoalMs | number | buffering goal in milliseconds, NOT recommended to change this value for most use cases; cannot be set to a value less than 15000
|
|
146
|
-
enableAutoResume | boolean | whether to auto resume from last saved position
|
|
148
|
+
enableAutoResume | boolean | whether to auto resume from last saved position or play from the beginning, default: `false`.
|
|
149
|
+
safetyNetApiKey | string | safetynet api key to be used for safetynet verification
|
|
150
|
+
preferredCaptionsLanguage | string | language code for the preferred captions language
|
|
151
|
+
playerConfig | string | player configuration id from dashboard to be used for player
|
|
152
|
+
setPictureInPictureSupport | boolean | whether to enable picture in picture support, default: `false`.
|
|
147
153
|
|
|
148
154
|
#### showNativeControls
|
|
149
155
|
|
|
@@ -305,6 +311,15 @@ Callback function invoked when the player exits fullscreen.
|
|
|
305
311
|
#### onPlaybackProperties
|
|
306
312
|
Callback function invoked when additional playback properties are requested using the `getPlaybackProperties` method.
|
|
307
313
|
|
|
314
|
+
#### onPictureInPictureModeChanged
|
|
315
|
+
Callback function invoked to handle UI when the player enters or exits pip mode
|
|
316
|
+
|
|
317
|
+
Payload:
|
|
318
|
+
|
|
319
|
+
Property | Type | Description
|
|
320
|
+
--- | --- | ---
|
|
321
|
+
isInPictureInPictureMode | boolean | is player in pip mode
|
|
322
|
+
|
|
308
323
|
### Methods
|
|
309
324
|
|
|
310
325
|
Methods operate on a ref to the VdoPlayerView element. You can create a ref like this:
|
|
@@ -312,6 +327,10 @@ Methods operate on a ref to the VdoPlayerView element. You can create a ref like
|
|
|
312
327
|
<VdoPlayerView ref={player => this._player = player}
|
|
313
328
|
```
|
|
314
329
|
|
|
330
|
+
#### seek
|
|
331
|
+
`seek(seekTargetMs)`
|
|
332
|
+
Set the seek target in milli seconds
|
|
333
|
+
|
|
315
334
|
#### enterFullscreen
|
|
316
335
|
`enterFullscreen()`
|
|
317
336
|
|
package/android/build.gradle
CHANGED
|
@@ -18,15 +18,15 @@ 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.10.
|
|
22
|
-
def releaseVersionCode =
|
|
21
|
+
def releaseVersionName = "1.10.2"
|
|
22
|
+
def releaseVersionCode = 9
|
|
23
23
|
|
|
24
24
|
android {
|
|
25
|
-
compileSdkVersion
|
|
25
|
+
compileSdkVersion 33
|
|
26
26
|
|
|
27
27
|
defaultConfig {
|
|
28
28
|
minSdkVersion 18
|
|
29
|
-
targetSdkVersion
|
|
29
|
+
targetSdkVersion 32
|
|
30
30
|
|
|
31
31
|
// Generate BuildConfig fields for library version info
|
|
32
32
|
buildConfigField "int", "VDO_VERSION_CODE", "${releaseVersionCode}"
|
|
@@ -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.18.
|
|
89
|
+
implementation 'com.vdocipher.aegis:vdocipher-android:1.18.2'
|
|
90
90
|
}
|
package/package.json
CHANGED