vdocipher-rn-bridge 1.17.1 → 1.17.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/android/build.gradle +3 -3
- package/downloads.ts +0 -4
- package/ios/TrackSelection.swift +0 -4
- package/ios/VdoCipherRNView.swift +13 -18
- package/ios/VdoDownload.swift +32 -7
- package/ios/VdoEventEmitter.swift +0 -9
- package/ios/VdocipherRnBridgeViewManager.swift +1 -2
- package/package.json +2 -2
- package/react-native-vdocipher-rn-bridge.podspec +1 -1
- package/CHANGELOG.md +0 -156
- package/android/src/.DS_Store +0 -0
- package/android/src/main/.DS_Store +0 -0
- package/android/src/main/java/com/vdocipher/.DS_Store +0 -0
- package/ios/.DS_Store +0 -0
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.17.
|
|
22
|
-
def releaseVersionCode =
|
|
21
|
+
def releaseVersionName = "1.17.2"
|
|
22
|
+
def releaseVersionCode = 23
|
|
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.
|
|
89
|
+
implementation 'com.vdocipher.aegis:vdocipher-android:1.23.0'
|
|
90
90
|
}
|
package/downloads.ts
CHANGED
|
@@ -14,10 +14,6 @@ const { VdoDownload } = NativeModules;
|
|
|
14
14
|
|
|
15
15
|
const getDownloadOptions = (optionParams: VdoTypes.OfflineOptionParams) => {
|
|
16
16
|
|
|
17
|
-
if (optionParams.customPlayerId != null && Platform.OS == "ios") {
|
|
18
|
-
console.warn("customPlayerId will not be used for ios, instead default Custom Player config will be used");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
17
|
return new Promise(function(resolve, reject) {
|
|
22
18
|
VdoDownload.getDownloadOptions(
|
|
23
19
|
optionParams,
|
package/ios/TrackSelection.swift
CHANGED
|
@@ -36,7 +36,6 @@ class TrackSelection: NSObject {
|
|
|
36
36
|
static var captionLanguagesMap: [[String: Any]]?
|
|
37
37
|
|
|
38
38
|
@objc func getCaptionLanguages(_ callback: RCTResponseSenderBlock) {
|
|
39
|
-
// print("========= TrackSelection getCaptionLanguages called")
|
|
40
39
|
guard let captionLanguagesMap = TrackSelection.captionLanguagesMap else {
|
|
41
40
|
callback(nil)
|
|
42
41
|
return
|
|
@@ -45,19 +44,16 @@ class TrackSelection: NSObject {
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
@objc func getSelectedCaptionLanguage(_ callback: RCTResponseSenderBlock) {
|
|
48
|
-
// print("========= TrackSelection getSelectedCaptionLanguage called")
|
|
49
47
|
guard let selectedCaption = TrackSelection.asset?.getCurrentEnabledCaption(),
|
|
50
48
|
let name = selectedCaption.captionName,
|
|
51
49
|
let selectedCaptionMap = TrackSelection.captionLanguagesMap?.first(where: {$0["name"] as? String == name}) else {
|
|
52
50
|
callback([])
|
|
53
51
|
return
|
|
54
52
|
}
|
|
55
|
-
// print("Selected Caption Map is \(selectedCaptionMap)")
|
|
56
53
|
callback([selectedCaptionMap])
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
@objc func getDuration(_ callback: RCTResponseSenderBlock) {
|
|
60
|
-
// print("========= TrackSelection getDuration called")
|
|
61
57
|
guard let duration = TrackSelection.asset?.duration else {return}
|
|
62
58
|
callback([["duration": duration]])
|
|
63
59
|
}
|
|
@@ -14,6 +14,7 @@ class VdoCipherRNView: UIView {
|
|
|
14
14
|
@objc var player: AVPlayer?
|
|
15
15
|
@objc var asset: VdoAsset?
|
|
16
16
|
|
|
17
|
+
private var preferredCaptionsLanguage: String?
|
|
17
18
|
private var playWhenReady: Bool = true
|
|
18
19
|
private var progressTimer: Timer?
|
|
19
20
|
private var isLoaded = false
|
|
@@ -50,7 +51,6 @@ class VdoCipherRNView: UIView {
|
|
|
50
51
|
guard newSuperview != nil else {
|
|
51
52
|
return
|
|
52
53
|
}
|
|
53
|
-
// print("added to a superView \(newSuperview) reactViewController is \(self.reactViewController())")
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
override func didMoveToSuperview() {
|
|
@@ -60,9 +60,7 @@ class VdoCipherRNView: UIView {
|
|
|
60
60
|
self.removeObservers()
|
|
61
61
|
player?.replaceCurrentItem(with: nil)
|
|
62
62
|
player = nil
|
|
63
|
-
}
|
|
64
|
-
// print("did move to a superView, reactViewController is \(self.reactViewController())")
|
|
65
|
-
} */
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
func addObserversToPlayer()
|
|
@@ -103,7 +101,6 @@ class VdoCipherRNView: UIView {
|
|
|
103
101
|
|
|
104
102
|
private func sendPlayerProgress() {
|
|
105
103
|
let currentTime = Int(self.player?.currentItem?.currentTime().seconds.rounded( .down) ?? 0.0 ) * 1000
|
|
106
|
-
// print("Current time send as event emitter is \(currentTime)")
|
|
107
104
|
if currentTime > 0 {
|
|
108
105
|
EventEmitter.sharedInstance.dispatch(name: .EVENT_PROGRESS, params: [Keys.EVENT_PROP_CURRENT_TIME.rawValue : currentTime])
|
|
109
106
|
}
|
|
@@ -148,8 +145,12 @@ class VdoCipherRNView: UIView {
|
|
|
148
145
|
self.sendErrorEventWithDescription(errorDescription)
|
|
149
146
|
return
|
|
150
147
|
}
|
|
148
|
+
var params = embedInfo
|
|
149
|
+
if let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(mediaId) {
|
|
150
|
+
params["customPlayerId"] = customPlayerId
|
|
151
|
+
}
|
|
151
152
|
self.playbackType = .offline
|
|
152
|
-
self.initiatePlayback(withInfo:
|
|
153
|
+
self.initiatePlayback(withInfo: params, videoId: mediaId)
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
func parseOnlineCredentials(fromInfo embedInfo: [String: Any]) {
|
|
@@ -187,11 +188,7 @@ class VdoCipherRNView: UIView {
|
|
|
187
188
|
}
|
|
188
189
|
self.asset = asset
|
|
189
190
|
TrackSelection.asset = asset
|
|
190
|
-
|
|
191
|
-
DispatchQueue.main.async {
|
|
192
|
-
_ = self.setCaptionLanguage(lanCode: preferredCaptionsLanguage)
|
|
193
|
-
}
|
|
194
|
-
}
|
|
191
|
+
self.preferredCaptionsLanguage = preferredCaptionsLanguage
|
|
195
192
|
if let onlineCredentials = onlineCredentials {
|
|
196
193
|
asset.playOnline(otp: onlineCredentials.otp, playbackInfo: onlineCredentials.playbackInfo)
|
|
197
194
|
} else {
|
|
@@ -214,6 +211,11 @@ class VdoCipherRNView: UIView {
|
|
|
214
211
|
|
|
215
212
|
@objc func playerReadyToPlay() {
|
|
216
213
|
self.playerState = .ready
|
|
214
|
+
if self.preferredCaptionsLanguage?.isEmpty == false {
|
|
215
|
+
DispatchQueue.main.async {
|
|
216
|
+
_ = self.setCaptionLanguage(lanCode: self.preferredCaptionsLanguage)
|
|
217
|
+
}
|
|
218
|
+
}
|
|
217
219
|
if self.playWhenReady == true {
|
|
218
220
|
self.player?.rate = targetPlaybackSpeed
|
|
219
221
|
} else {
|
|
@@ -222,15 +224,12 @@ class VdoCipherRNView: UIView {
|
|
|
222
224
|
}
|
|
223
225
|
|
|
224
226
|
@objc func setEmbedInfo(_ embedInfo: [String: Any]) {
|
|
225
|
-
// print("Embed Info is \(embedInfo)")
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
@objc func setResizeMode(_ resizeMode: String) {
|
|
229
|
-
// print("Resize Mode called with value == \(resizeMode)")
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
@objc func setPlayWhenReady(_ playWhenReady: Bool) {
|
|
233
|
-
// print("playWhenReady called with value == \(playWhenReady)")
|
|
234
233
|
self.playWhenReady = playWhenReady
|
|
235
234
|
if playWhenReady == true {
|
|
236
235
|
if targetPlaybackSpeed == 0 {
|
|
@@ -247,20 +246,17 @@ class VdoCipherRNView: UIView {
|
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
@objc func setPlaybackSpeed(_ speed: Float) {
|
|
250
|
-
// print("playbackSpeed called with value == \(speed)")
|
|
251
249
|
self.targetPlaybackSpeed = speed
|
|
252
250
|
self.player?.rate = speed
|
|
253
251
|
EventEmitter.sharedInstance.dispatch(name: .EVENT_PLAYBACK_SPEED_CHANGED, params: [Keys.EVENT_PROP_PLAYBACK_SPEED.rawValue : speed])
|
|
254
252
|
}
|
|
255
253
|
|
|
256
254
|
@objc func setSeek(_ seekTime: Int) {
|
|
257
|
-
// print("seek called with value == \(seekTime)")
|
|
258
255
|
self.player?.seek(to: CMTime(value: CMTimeValue(seekTime), timescale: 1000))
|
|
259
256
|
|
|
260
257
|
}
|
|
261
258
|
|
|
262
259
|
@objc func setCaptionLanguage(_ caption: [String: Any]) {
|
|
263
|
-
// print("========= TrackSelection setCaptionLanguage called")
|
|
264
260
|
guard let asset = TrackSelection.asset,
|
|
265
261
|
let captions = asset.captions,
|
|
266
262
|
let selectedCaptionName = caption["name"] as? String,
|
|
@@ -276,7 +272,6 @@ class VdoCipherRNView: UIView {
|
|
|
276
272
|
}
|
|
277
273
|
|
|
278
274
|
@objc func setDisableCaptions(_ val: Int) {
|
|
279
|
-
// print("========= TrackSelection disableCaptions called")
|
|
280
275
|
if (TrackSelection.asset?.setCaption(nil) == true) {
|
|
281
276
|
EventEmitter.sharedInstance.dispatch(name: .EVENT_TRACKS_CHANGED, params: [Keys.EVENT_PROP_AVAILABLE_TRACKS.rawValue : TrackSelection.captionLanguagesMap ?? []])
|
|
282
277
|
}
|
package/ios/VdoDownload.swift
CHANGED
|
@@ -169,7 +169,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
169
169
|
|
|
170
170
|
return
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
let customPlayerId = optionParams["customPlayerId"] as? String
|
|
173
|
+
VdoAsset.createAsset(videoId: parsed.videoId, playerId: customPlayerId, onLoad: { asset, err in
|
|
173
174
|
guard let asset = asset else {
|
|
174
175
|
if let error = err {
|
|
175
176
|
errorCallback([[Error_Keys.EVENT_PROP_ERROR_CODE.rawValue: error.code,
|
|
@@ -214,6 +215,7 @@ class VdoDownload: RCTEventEmitter {
|
|
|
214
215
|
Error_Keys.EVENT_PROP_ERROR_MSG.rawValue: "Unknown error occured"]])
|
|
215
216
|
return
|
|
216
217
|
}
|
|
218
|
+
VdoDownload.saveCustomPlayerIdForMediaId(asset.videoId, playerId: optionParams["customPlayerId"] as? String)
|
|
217
219
|
if let selections = requestOptions["selections"] as? [Int],
|
|
218
220
|
let index = selections.first,
|
|
219
221
|
asset.getVideoQualities().count > index {
|
|
@@ -229,7 +231,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
229
231
|
|
|
230
232
|
@objc func stop(_ mediaIds: [String], errorCallback: @escaping RCTResponseSenderBlock, successCallback: @escaping RCTResponseSenderBlock) {
|
|
231
233
|
for mediaId in mediaIds {
|
|
232
|
-
|
|
234
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(mediaId)
|
|
235
|
+
VdoAsset.createAsset(videoId: mediaId, playerId: customPlayerId) { asset, error in
|
|
233
236
|
if let asset = asset {
|
|
234
237
|
asset.pauseDownload()
|
|
235
238
|
}
|
|
@@ -240,7 +243,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
240
243
|
|
|
241
244
|
@objc func resume(_ mediaIds: [String], errorCallback: @escaping RCTResponseSenderBlock, successCallback: @escaping RCTResponseSenderBlock) {
|
|
242
245
|
for mediaId in mediaIds {
|
|
243
|
-
|
|
246
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(mediaId)
|
|
247
|
+
VdoAsset.createAsset(videoId: mediaId, playerId: customPlayerId) { asset, error in
|
|
244
248
|
if let asset = asset {
|
|
245
249
|
asset.resumeDownload()
|
|
246
250
|
}
|
|
@@ -252,7 +256,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
252
256
|
|
|
253
257
|
@objc func remove(_ mediaIds: [String], errorCallback: @escaping RCTResponseSenderBlock, successCallback: @escaping RCTResponseSenderBlock ) {
|
|
254
258
|
for mediaId in mediaIds {
|
|
255
|
-
|
|
259
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(mediaId)
|
|
260
|
+
VdoAsset.createAsset(videoId: mediaId, playerId: customPlayerId) { asset, error in
|
|
256
261
|
if let asset = asset {
|
|
257
262
|
if asset.downloadState == .downloading || asset.downloadState == .paused {
|
|
258
263
|
asset.cancelDownload()
|
|
@@ -301,7 +306,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
301
306
|
DownloadEventEmitter.sharedInstance.dispatch(name: .EVENT_CHANGED, params: ["mediaId": asset.videoId, "downloadStatus": self.createVdoAssetMap(with: asset)])
|
|
302
307
|
}
|
|
303
308
|
} else {
|
|
304
|
-
|
|
309
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(videoId)
|
|
310
|
+
VdoAsset.createAsset(videoId: videoId, playerId: customPlayerId) { asset, _ in
|
|
305
311
|
guard let asset = asset else { return }
|
|
306
312
|
if newState == .downloaded {
|
|
307
313
|
DownloadEventEmitter.sharedInstance.dispatch(name: .EVENT_COMPLETED, params: ["mediaId": asset.videoId, "downloadStatus": self.createVdoAssetMap(with: asset)])
|
|
@@ -325,7 +331,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
325
331
|
asset.percentDownload = percentDownload
|
|
326
332
|
DownloadEventEmitter.sharedInstance.dispatch(name: .EVENT_CHANGED, params: ["mediaId": asset.videoId, "downloadStatus": self.createVdoAssetMap(with: asset)])
|
|
327
333
|
} else {
|
|
328
|
-
|
|
334
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(videoId)
|
|
335
|
+
VdoAsset.createAsset(videoId: videoId, playerId: customPlayerId) { asset, _ in
|
|
329
336
|
guard let asset = asset else { return }
|
|
330
337
|
asset.percentDownload = percentDownload
|
|
331
338
|
DownloadEventEmitter.sharedInstance.dispatch(name: .EVENT_CHANGED, params: ["mediaId": asset.videoId, "downloadStatus": self.createVdoAssetMap(with: asset)])
|
|
@@ -344,7 +351,8 @@ class VdoDownload: RCTEventEmitter {
|
|
|
344
351
|
assetMap["reason"] = code
|
|
345
352
|
DownloadEventEmitter.sharedInstance.dispatch(name: .EVENT_FAILED, params: ["mediaId": asset.videoId, "downloadStatus": assetMap])
|
|
346
353
|
} else {
|
|
347
|
-
|
|
354
|
+
let customPlayerId = VdoDownload.getCustomPlayerIdForMediaId(videoId)
|
|
355
|
+
VdoAsset.createAsset(videoId: videoId, playerId: customPlayerId) { asset, _ in
|
|
348
356
|
guard let asset = asset else { return }
|
|
349
357
|
var assetMap = self.createVdoAssetMap(with: asset)
|
|
350
358
|
assetMap["reasonDescription"] = message
|
|
@@ -450,4 +458,21 @@ class VdoDownload: RCTEventEmitter {
|
|
|
450
458
|
return "pending"
|
|
451
459
|
}
|
|
452
460
|
}
|
|
461
|
+
|
|
462
|
+
static func saveCustomPlayerIdForMediaId(_ mediaId: String, playerId: String?) {
|
|
463
|
+
let userDefaults: UserDefaults? = UserDefaults.init(suiteName: "com.vdocipher.ios.VdoFramework")
|
|
464
|
+
var downloadedMediaIdPlayerIdMap = userDefaults?.value(forKey: "downloadedMediaIdPlayerIdMap") as? [String: String] ?? [String: String] ()
|
|
465
|
+
if let playerId = playerId {
|
|
466
|
+
downloadedMediaIdPlayerIdMap[mediaId] = playerId
|
|
467
|
+
} else {
|
|
468
|
+
downloadedMediaIdPlayerIdMap.removeValue(forKey: mediaId)
|
|
469
|
+
}
|
|
470
|
+
userDefaults?.set(downloadedMediaIdPlayerIdMap, forKey: "downloadedMediaIdPlayerIdMap")
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
static func getCustomPlayerIdForMediaId(_ mediaId: String) -> String? {
|
|
474
|
+
let userDefaults: UserDefaults? = UserDefaults.init(suiteName: "com.vdocipher.ios.VdoFramework")
|
|
475
|
+
let downloadedMediaIdPlayerIdMap = userDefaults?.value(forKey: "downloadedMediaIdPlayerIdMap") as? [String: String] ?? [String: String] ()
|
|
476
|
+
return downloadedMediaIdPlayerIdMap[mediaId]
|
|
477
|
+
}
|
|
453
478
|
}
|
|
@@ -33,7 +33,6 @@ class EventEmitter {
|
|
|
33
33
|
if let p = params {
|
|
34
34
|
data["nativeEvent"] = p
|
|
35
35
|
}
|
|
36
|
-
// print("event data sent is \(data)")
|
|
37
36
|
EventEmitter.eventEmitter.sendEvent(withName: name.rawValue, body: data)
|
|
38
37
|
}
|
|
39
38
|
}
|
|
@@ -109,7 +108,6 @@ class VdoEventEmitter: RCTEventEmitter {
|
|
|
109
108
|
|
|
110
109
|
override init() {
|
|
111
110
|
super.init()
|
|
112
|
-
// print("\(type(of: self))).\(#function)")
|
|
113
111
|
EventEmitter.sharedInstance.registerEventEmitter(eventEmitter: self)
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -119,39 +117,32 @@ class VdoEventEmitter: RCTEventEmitter {
|
|
|
119
117
|
///
|
|
120
118
|
/// - Returns: all supported events
|
|
121
119
|
@objc open override func supportedEvents() -> [String] {
|
|
122
|
-
// print("\(type(of: self))).\(#function)")
|
|
123
120
|
return EventEmitter.sharedInstance.allEvents
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
@objc open override func startObserving() {
|
|
127
124
|
super.startObserving()
|
|
128
125
|
hasListener = true
|
|
129
|
-
// print("\(type(of: self))).\(#function)")
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
@objc open override func stopObserving() {
|
|
133
129
|
super.stopObserving()
|
|
134
130
|
hasListener = false
|
|
135
|
-
// print("\(type(of: self))).\(#function)")
|
|
136
131
|
}
|
|
137
132
|
|
|
138
133
|
open override class func requiresMainQueueSetup() -> Bool {
|
|
139
|
-
// print("\(type(of: self))).\(#function)")
|
|
140
134
|
return true
|
|
141
135
|
}
|
|
142
136
|
|
|
143
137
|
open override func addListener(_ eventName: String!) {
|
|
144
138
|
super.addListener(eventName)
|
|
145
|
-
// print("\(type(of: self))).\(#function) eventName: \(eventName)")
|
|
146
139
|
}
|
|
147
140
|
|
|
148
141
|
open override func removeListeners(_ count: Double) {
|
|
149
142
|
super.removeListeners(count)
|
|
150
|
-
// print("\(type(of: self))).\(#function) count: \(count)")
|
|
151
143
|
}
|
|
152
144
|
|
|
153
145
|
open override func invalidate() {
|
|
154
146
|
super.invalidate()
|
|
155
|
-
// print("\(type(of: self))).\(#function)")
|
|
156
147
|
}
|
|
157
148
|
}
|
|
@@ -5,7 +5,7 @@ import VdoFramework
|
|
|
5
5
|
@objc(VdocipherRnBridge)
|
|
6
6
|
class VdocipherRnBridge: RCTViewManager {
|
|
7
7
|
|
|
8
|
-
static let vdocipherRnBridgeVersionString = "1.17.
|
|
8
|
+
static let vdocipherRnBridgeVersionString = "1.17.2"
|
|
9
9
|
|
|
10
10
|
@objc override static func requiresMainQueueSetup() -> Bool {
|
|
11
11
|
return true
|
|
@@ -14,7 +14,6 @@ class VdocipherRnBridge: RCTViewManager {
|
|
|
14
14
|
private var playerViewController: AVPlayerViewController?
|
|
15
15
|
|
|
16
16
|
@objc func startVideoScreen(_ embedInfo: [String: Any], setPictureInPictureSupport: Bool) {
|
|
17
|
-
// print("REACT LOG ===== start Video Screen Function called from React side.... \(embedInfo)")
|
|
18
17
|
let userDefaults: UserDefaults? = UserDefaults.init(suiteName: "com.vdocipher.ios.rn.VdoFramework")
|
|
19
18
|
userDefaults?.set(["name": "react-native", "version": VdocipherRnBridge.vdocipherRnBridgeVersionString], forKey: "rnToolkitInfo")
|
|
20
19
|
DispatchQueue.main.async {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vdocipher-rn-bridge",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.2",
|
|
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": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "",
|
|
13
13
|
"license": "",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react-native": "0.68 - 0.
|
|
15
|
+
"react-native": "0.68 - 0.72.4"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"deprecated-react-native-prop-types": "^2.3.0",
|
|
@@ -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.5.1"
|
|
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
|
package/CHANGELOG.md
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
## Changelog
|
|
2
|
-
### 1.17.1
|
|
3
|
-
* Added support for offline downloads in iOS
|
|
4
|
-
|
|
5
|
-
### 1.17.0
|
|
6
|
-
* Added support for iOS with native iOS sdk version as 2.4.3
|
|
7
|
-
* Updated VdoCipher Android SDK dependency to 1.22.1.
|
|
8
|
-
* Added option to pause and resume downloads.
|
|
9
|
-
* Bug fixes:
|
|
10
|
-
* minHeight getting overridden by sdk.
|
|
11
|
-
* NullPointerException when downloading using invalid params.
|
|
12
|
-
* IllegalStateException when opening new screen from player screen and coming back.
|
|
13
|
-
* NullPointerException on some devices when going fullscreen by using prop method in PlayerUI.
|
|
14
|
-
* ForegroundServiceStartNotAllowedException coming in Android 12 and above.
|
|
15
|
-
|
|
16
|
-
### 1.16.0
|
|
17
|
-
* Updated VdoCipher Android SDK dependency to 1.21.0.
|
|
18
|
-
* Added support for `windowLayoutInDisplayCutoutMode` with inbuilt player UI.
|
|
19
|
-
* Improved feedback of double tap to skip forward and backward.
|
|
20
|
-
* Fullscreen Changes for Player UI:
|
|
21
|
-
* Fixed auto rotate lock while going into fullscreen mode.
|
|
22
|
-
* Implemented fullscreen behavior based on aspect ratio:
|
|
23
|
-
* Vertical videos will go fullscreen in portrait mode.
|
|
24
|
-
* Horizontal videos will go fullscreen in landscape mode.
|
|
25
|
-
* Deprecated `enterFullscreen` and `exitFullscreen` APIs.
|
|
26
|
-
* Added `enterFullscreenV2` and `exitFullscreenV2` APIs with aspect ratio-based fullscreen rotation.
|
|
27
|
-
* Fullscreen Changes for Player with Custom Controls:
|
|
28
|
-
* Deprecated `enterFullscreen` and `exitFullscreen` APIs.
|
|
29
|
-
* Removed the option to go back to portrait mode when the back button is pressed while in fullscreen mode.
|
|
30
|
-
* Fullscreen-related changes need to be performed manually.
|
|
31
|
-
|
|
32
|
-
### 1.15.0
|
|
33
|
-
* Updated VdoCipher android sdk dependency to 1.19.6
|
|
34
|
-
* Added PlayerUI for fullscreen player
|
|
35
|
-
* Added PIP support for fullscreen player
|
|
36
|
-
* Added range for react-native peer dependency
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### 1.14.0
|
|
40
|
-
* Added `getPlaybackPropertiesV2` method to get totalPlayed and totalCovered properties
|
|
41
|
-
* Added track selection APIs for Player UI
|
|
42
|
-
|
|
43
|
-
### 1.13.2
|
|
44
|
-
* Updated VdoCipher android sdk dependency to 1.19.4
|
|
45
|
-
* Updated playerConfig to customPlayer Id
|
|
46
|
-
* Added customPlayerId for Downloads
|
|
47
|
-
* Bug fix
|
|
48
|
-
|
|
49
|
-
### 1.13.1
|
|
50
|
-
* Added resizeMode attribute in style prop
|
|
51
|
-
|
|
52
|
-
### 1.13.0
|
|
53
|
-
* Updated VdoCipher android sdk dependency to 1.19.3
|
|
54
|
-
* Added support for setting aspect ratio and resize mode
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### 1.12.3
|
|
58
|
-
* Adding typescript support
|
|
59
|
-
|
|
60
|
-
### 1.12.2
|
|
61
|
-
* Bug fix
|
|
62
|
-
|
|
63
|
-
### 1.12.1
|
|
64
|
-
* Adding support of pip in separate activity
|
|
65
|
-
|
|
66
|
-
### 1.12.0
|
|
67
|
-
* Updated VdoCipher android sdk dependency to 1.19.1
|
|
68
|
-
* Added track selection APIs
|
|
69
|
-
|
|
70
|
-
### 1.11.0
|
|
71
|
-
* Updated VdoCipher android sdk dependency to 1.19.0
|
|
72
|
-
|
|
73
|
-
### 1.10.2
|
|
74
|
-
* Updated VdoCipher android sdk dependency to 1.18.2
|
|
75
|
-
* Updated compileSdkVersion to 33 and targetSdkVersion to 32
|
|
76
|
-
|
|
77
|
-
### 1.10.1
|
|
78
|
-
* Updated VdoCipher android sdk dependency to 1.18.1
|
|
79
|
-
* Updated player with built-in controls to use Player-UI provided by native sdk
|
|
80
|
-
- The controls on this player can be managed using video dashboard
|
|
81
|
-
- All the controls like save offline, caption search, pip, etc which are present in Player-UI will be available in this player
|
|
82
|
-
- Player-UI is supported on tv only when using react-native-tvos library
|
|
83
|
-
* Added support for PIP
|
|
84
|
-
* Added support for setting preferred captions language
|
|
85
|
-
* Added support for safetynet
|
|
86
|
-
* Updated download implementation to use download feature provided by exoplayer
|
|
87
|
-
* Added support for react-native version 0.70
|
|
88
|
-
* Bug fixes
|
|
89
|
-
|
|
90
|
-
### 1.9.2
|
|
91
|
-
* Migrating from jcenter to mavenCentral
|
|
92
|
-
|
|
93
|
-
### 1.9.1
|
|
94
|
-
* Bug Fixes
|
|
95
|
-
|
|
96
|
-
### 1.9.0
|
|
97
|
-
* Added support for auto resume
|
|
98
|
-
* Bug fixes
|
|
99
|
-
|
|
100
|
-
### 1.8.1
|
|
101
|
-
* Update VdoCipher android sdk dependency to 1.10.1
|
|
102
|
-
|
|
103
|
-
### 1.8.0
|
|
104
|
-
* Update VdoCipher android sdk dependency to 1.10.0
|
|
105
|
-
* Fixed release build errors
|
|
106
|
-
* Bug fixes
|
|
107
|
-
|
|
108
|
-
### 1.7.3
|
|
109
|
-
* Update VdoCipher android sdk dependency to 1.8.1
|
|
110
|
-
* Added adb debugging restrictions opt-in
|
|
111
|
-
|
|
112
|
-
### 1.7.2
|
|
113
|
-
* Update VdoCipher android sdk dependency to 1.7.3
|
|
114
|
-
* Fixed error message for OTP related errors which cannot be re-tried with same embedInfo
|
|
115
|
-
* Bug fixes
|
|
116
|
-
|
|
117
|
-
### 1.7.1
|
|
118
|
-
* Update VdoCipher android sdk dependency to 1.7.1
|
|
119
|
-
* Bug fixes
|
|
120
|
-
|
|
121
|
-
### 1.7.0
|
|
122
|
-
* Add api to obtain additional playback properties
|
|
123
|
-
* Update VdoCipher android sdk dependency to 1.5.1
|
|
124
|
-
|
|
125
|
-
### 1.6.0
|
|
126
|
-
* Add support to force lowest or highest supported bitrate, cap video bitrate, set buffering goal
|
|
127
|
-
* Add playback speed api
|
|
128
|
-
* Update VdoCipher android sdk dependency to 1.4.0
|
|
129
|
-
|
|
130
|
-
### 1.5.3
|
|
131
|
-
* Fix startVideoScreen implementation to support embedInfo for offline playback
|
|
132
|
-
|
|
133
|
-
### 1.5.2
|
|
134
|
-
* Update VdoCipher android sdk dependency to 1.3.3
|
|
135
|
-
* Bug fixes
|
|
136
|
-
|
|
137
|
-
### 1.5.1
|
|
138
|
-
* Add downloads api
|
|
139
|
-
* Update native controls to show quality toggle button
|
|
140
|
-
* Update VdoCipher android sdk dependency to 1.3.2
|
|
141
|
-
|
|
142
|
-
### 1.4.0
|
|
143
|
-
* Add JS fullscreen api
|
|
144
|
-
* Update VdoCipher android sdk dependency to 1.3.1
|
|
145
|
-
|
|
146
|
-
### 1.3.2
|
|
147
|
-
* Enable fullscreen controls in native embedded controls
|
|
148
|
-
|
|
149
|
-
### 1.3.1
|
|
150
|
-
* Fix android manifest merger bug
|
|
151
|
-
* Update VdoCipher android sdk dependency to 1.2.1
|
|
152
|
-
|
|
153
|
-
### 1.3.0
|
|
154
|
-
* Fix video launch in standalone android activity
|
|
155
|
-
* Keep screen on when video is active
|
|
156
|
-
* Upgrade react-native to 0.61.4
|
package/android/src/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/.DS_Store
DELETED
|
Binary file
|