@takeoffmedia/react-native-penthera 0.2.63 → 0.2.65
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/src/main/java/com/takeoffmediareactnativepenthera/PentheraModule.kt +14 -4
- package/android/src/main/java/com/takeoffmediareactnativepenthera/virtuoso/OfflineVideoEngine.kt +92 -63
- package/ios/Penthera.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Penthera.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Penthera.xcodeproj/project.xcworkspace/xcuserdata/joseguerreroot.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Penthera.xcodeproj/xcuserdata/joseguerreroot.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +104 -0
- package/ios/Penthera.xcodeproj/xcuserdata/joseguerreroot.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/nativeModules/index.js +3 -2
- package/lib/commonjs/nativeModules/index.js.map +1 -1
- package/lib/module/nativeModules/index.js +3 -2
- package/lib/module/nativeModules/index.js.map +1 -1
- package/lib/typescript/nativeModules/index.d.ts +1 -1
- package/lib/typescript/nativeModules/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/nativeModules/index.ts +9 -2
|
@@ -8,7 +8,12 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
|
8
8
|
import com.facebook.react.bridge.ReactMethod
|
|
9
9
|
import com.facebook.react.bridge.Promise
|
|
10
10
|
import com.facebook.react.bridge.ReadableArray
|
|
11
|
+
import com.facebook.react.bridge.UiThreadUtil.runOnUiThread
|
|
11
12
|
import com.takeoffmediareactnativepenthera.virtuoso.OfflineVideoEngine
|
|
13
|
+
import kotlinx.coroutines.DelicateCoroutinesApi
|
|
14
|
+
import kotlinx.coroutines.GlobalScope
|
|
15
|
+
import kotlinx.coroutines.launch
|
|
16
|
+
import com.facebook.react.uimanager.UIManagerModule
|
|
12
17
|
|
|
13
18
|
|
|
14
19
|
class PentheraModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
@@ -23,7 +28,8 @@ class PentheraModule(reactContext: ReactApplicationContext) : ReactContextBaseJa
|
|
|
23
28
|
|
|
24
29
|
EventEmitter.sharedInstance.registerEventEmitter(this)
|
|
25
30
|
}
|
|
26
|
-
|
|
31
|
+
private fun uiManager(): UIManagerModule? =
|
|
32
|
+
reactContext.getNativeModule(UIManagerModule::class.java)
|
|
27
33
|
// Example method
|
|
28
34
|
// See https://reactnative.dev/docs/native-modules-android
|
|
29
35
|
@ReactMethod
|
|
@@ -55,10 +61,14 @@ class PentheraModule(reactContext: ReactApplicationContext) : ReactContextBaseJa
|
|
|
55
61
|
promise.resolve(result)
|
|
56
62
|
}
|
|
57
63
|
|
|
64
|
+
|
|
58
65
|
@ReactMethod
|
|
59
|
-
fun loadBitmovinSourceManager(assetId: String, nativeId: String, startOffset: Double?, promise: Promise) {
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
fun loadBitmovinSourceManager(assetId: String, nativeId: String, startOffset: Double?, ancillaryFiles: String, promise: Promise) {
|
|
67
|
+
uiManager()?.addUIBlock {
|
|
68
|
+
val bitmovinSourceItem =
|
|
69
|
+
offlineVideoEngine.loadBitmovinSourceManager(assetId, nativeId, startOffset, ancillaryFiles, promise)
|
|
70
|
+
promise.resolve(bitmovinSourceItem)
|
|
71
|
+
}
|
|
62
72
|
}
|
|
63
73
|
@ReactMethod
|
|
64
74
|
fun startAppStateListener() {
|
package/android/src/main/java/com/takeoffmediareactnativepenthera/virtuoso/OfflineVideoEngine.kt
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
package com.takeoffmediareactnativepenthera.virtuoso
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import android.annotation.SuppressLint
|
|
4
4
|
import android.app.Activity
|
|
5
5
|
import android.content.Context
|
|
6
6
|
import android.util.Log
|
|
7
|
+
import com.bitmovin.player.api.media.subtitle.SubtitleTrack
|
|
7
8
|
import com.bitmovin.player.reactnative.PlayerModule
|
|
8
9
|
import com.bitmovin.player.reactnative.converter.JsonConverter
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
11
12
|
import com.google.gson.Gson
|
|
12
13
|
import com.penthera.common.Common.AuthenticationStatus
|
|
@@ -28,16 +29,20 @@ import com.facebook.react.uimanager.UIManagerModule
|
|
|
28
29
|
import com.facebook.react.bridge.Promise
|
|
29
30
|
import com.facebook.react.bridge.ReadableArray
|
|
30
31
|
import com.penthera.virtuososdk.client.AncillaryFile
|
|
32
|
+
import okhttp3.OkHttpClient
|
|
33
|
+
import okhttp3.Request
|
|
31
34
|
import org.json.JSONArray
|
|
32
35
|
import org.json.JSONObject
|
|
36
|
+
import java.io.IOException
|
|
37
|
+
import java.net.HttpURLConnection
|
|
33
38
|
import java.text.SimpleDateFormat
|
|
34
39
|
import java.util.Calendar
|
|
35
|
-
|
|
40
|
+
|
|
36
41
|
class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
37
|
-
|
|
42
|
+
|
|
38
43
|
lateinit var virtuoso : Virtuoso
|
|
39
44
|
private lateinit var queueObserver: AssetQueueObserver
|
|
40
|
-
|
|
45
|
+
|
|
41
46
|
var asset: IAsset? = null
|
|
42
47
|
var assetId: MutableList<String> = mutableListOf()
|
|
43
48
|
private val gson = Gson()
|
|
@@ -46,32 +51,33 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
46
51
|
var valueBackPlaneUrl: String = ""
|
|
47
52
|
var valuePublicKey: String = ""
|
|
48
53
|
var valuePrivateKey: String = ""
|
|
49
|
-
|
|
54
|
+
private val client = OkHttpClient()
|
|
55
|
+
|
|
50
56
|
private val enginePauseObserver: Observers.IEngineObserver = object : EngineObserver() {
|
|
51
57
|
override fun engineStatusChanged(status: Int) {
|
|
52
58
|
Log.e("MiModulo", "<<<<<<<<<<status $status>>>>>>>>>>>>")
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
|
-
|
|
61
|
+
|
|
56
62
|
private fun getInstanceVirtuoso(): Virtuoso {
|
|
57
63
|
virtuoso = Virtuoso(context)
|
|
58
64
|
queueObserver = AssetQueueObserver(this, virtuoso)
|
|
59
65
|
onResume()
|
|
60
66
|
return virtuoso
|
|
61
67
|
}
|
|
62
|
-
|
|
68
|
+
|
|
63
69
|
fun onResume() {
|
|
64
70
|
virtuoso.onResume()
|
|
65
71
|
virtuoso.addObserver(queueObserver)
|
|
66
72
|
virtuoso.addObserver(enginePauseObserver)
|
|
67
73
|
}
|
|
68
|
-
|
|
74
|
+
|
|
69
75
|
fun onPause() {
|
|
70
76
|
virtuoso.onPause()
|
|
71
77
|
virtuoso.removeObserver(queueObserver)
|
|
72
78
|
virtuoso.removeObserver(enginePauseObserver)
|
|
73
79
|
}
|
|
74
|
-
|
|
80
|
+
|
|
75
81
|
fun setup(
|
|
76
82
|
userId: String = valueUserId,
|
|
77
83
|
backplaneUrl: String = valueBackPlaneUrl,
|
|
@@ -84,9 +90,9 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
84
90
|
valueBackPlaneUrl = backplaneUrl
|
|
85
91
|
valuePrivateKey = privateKey
|
|
86
92
|
valuePublicKey = publicKey
|
|
87
|
-
|
|
93
|
+
|
|
88
94
|
val nameDevice = android.os.Build.MODEL
|
|
89
|
-
|
|
95
|
+
|
|
90
96
|
vir.startup(
|
|
91
97
|
URL(valueBackPlaneUrl),
|
|
92
98
|
valueUserId,
|
|
@@ -104,9 +110,9 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
104
110
|
).let {
|
|
105
111
|
promise?.resolve("Penthera initialization successfully")
|
|
106
112
|
}
|
|
107
|
-
|
|
113
|
+
|
|
108
114
|
}
|
|
109
|
-
|
|
115
|
+
|
|
110
116
|
fun downloadAsset(newItem: String) {
|
|
111
117
|
setup()
|
|
112
118
|
val data = JSONObject(newItem)
|
|
@@ -134,7 +140,7 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
134
140
|
URL(url)
|
|
135
141
|
)
|
|
136
142
|
)
|
|
137
|
-
|
|
143
|
+
|
|
138
144
|
val subtitles = JSONArray(item["subtitles"] as String)
|
|
139
145
|
for (i in 0 until subtitles.length()) {
|
|
140
146
|
val subtitle = subtitles.getJSONObject(i)
|
|
@@ -150,7 +156,7 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
150
156
|
)
|
|
151
157
|
)
|
|
152
158
|
}
|
|
153
|
-
|
|
159
|
+
|
|
154
160
|
val params = MPDAssetBuilder().apply {
|
|
155
161
|
assetId(item["id"].toString())
|
|
156
162
|
manifestUrl(URL(url))
|
|
@@ -161,10 +167,10 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
161
167
|
setClientSideAdSupport(true)
|
|
162
168
|
withAncillaryFiles(fileList)
|
|
163
169
|
}.build()
|
|
164
|
-
|
|
170
|
+
|
|
165
171
|
virtuoso.assetManager.createMPDSegmentedAssetAsync(params)
|
|
166
172
|
}
|
|
167
|
-
|
|
173
|
+
|
|
168
174
|
fun getDownloads(): String? {
|
|
169
175
|
val completedList = mutableListOf<MutableMap<String, Any>>()
|
|
170
176
|
val cursor = virtuoso.assetManager?.cursor
|
|
@@ -174,7 +180,7 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
174
180
|
return gson.toJson(completedList)
|
|
175
181
|
}
|
|
176
182
|
val columnNames = cursor?.columnNames
|
|
177
|
-
|
|
183
|
+
|
|
178
184
|
while (cursor?.moveToNext() == true && columnNames != null) {
|
|
179
185
|
val dataMap = mutableMapOf<String, Any>()
|
|
180
186
|
var eap = ""
|
|
@@ -223,29 +229,29 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
223
229
|
put("effectiveExpiryDate", if (value == "0") eadFormated else eapFormated)
|
|
224
230
|
}
|
|
225
231
|
}
|
|
226
|
-
|
|
232
|
+
|
|
227
233
|
}
|
|
228
234
|
}
|
|
229
235
|
dataMap["isPaused"] = false
|
|
230
236
|
completedList.add(dataMap)
|
|
231
237
|
}
|
|
232
238
|
cursor?.close()
|
|
233
|
-
|
|
239
|
+
|
|
234
240
|
return gson.toJson(completedList)
|
|
235
241
|
}
|
|
236
|
-
|
|
242
|
+
|
|
237
243
|
private fun dateToString(seconds: String): String {
|
|
238
244
|
val secondsLong = seconds.toLong()
|
|
239
245
|
val calendar = Calendar.getInstance()
|
|
240
246
|
calendar.add(Calendar.SECOND, secondsLong.toInt())
|
|
241
|
-
|
|
247
|
+
|
|
242
248
|
val dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
243
249
|
return dateFormat.format(calendar.time)
|
|
244
250
|
}
|
|
245
|
-
|
|
251
|
+
|
|
246
252
|
class AssetParseObserver(activity: Context) : ISegmentedAssetFromParserObserver {
|
|
247
253
|
private val mActivity: Context = activity
|
|
248
|
-
|
|
254
|
+
|
|
249
255
|
@SuppressLint("ShowToast")
|
|
250
256
|
override fun complete(asset: ISegmentedAsset?, error: Int, addedToQueue: Boolean) {
|
|
251
257
|
// Show a process when the asset to parsed and added to queue
|
|
@@ -260,17 +266,17 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
260
266
|
// }
|
|
261
267
|
}
|
|
262
268
|
}
|
|
263
|
-
|
|
264
|
-
|
|
269
|
+
|
|
270
|
+
|
|
265
271
|
fun deleteMany(assetIds: ReadableArray, promise: Promise) {
|
|
266
272
|
val assetManager = virtuoso.assetManager
|
|
267
273
|
val result = Arguments.createMap()
|
|
268
|
-
|
|
274
|
+
|
|
269
275
|
for (i in 0 until assetIds.size()) {
|
|
270
276
|
val idValue = assetIds.getString(i)
|
|
271
277
|
val asset = assetManager.getByAssetId(idValue)
|
|
272
278
|
.firstOrNull() as? IAsset
|
|
273
|
-
|
|
279
|
+
|
|
274
280
|
if (asset != null) {
|
|
275
281
|
assetManager.delete(asset)
|
|
276
282
|
result.putBoolean(idValue, true)
|
|
@@ -280,72 +286,95 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
|
|
|
280
286
|
assetId.remove(idValue)
|
|
281
287
|
}
|
|
282
288
|
}
|
|
283
|
-
|
|
289
|
+
|
|
284
290
|
promise.resolve(result);
|
|
285
291
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
fun getByAssetId(assetId: String): String? {
|
|
289
295
|
//load asset if it has already been downloaded
|
|
290
|
-
val list: MutableList<IIdentifier>? =
|
|
291
|
-
|
|
296
|
+
val list: MutableList<IIdentifier>? = getInstanceVirtuoso().assetManager.getByAssetId(assetId)
|
|
297
|
+
|
|
292
298
|
list?.let {
|
|
293
299
|
if (it.isNotEmpty()) {
|
|
294
300
|
asset = list[0] as VirtuosoSegmentedFile
|
|
295
|
-
|
|
301
|
+
|
|
302
|
+
// This a workaound to works ancillary files
|
|
303
|
+
val offlineUrl = asset?.playbackURL
|
|
304
|
+
val request = Request.Builder()
|
|
305
|
+
.url(offlineUrl.toString())
|
|
306
|
+
.build()
|
|
307
|
+
client.newCall(request).execute().use { response ->
|
|
308
|
+
if (!response.isSuccessful) throw IOException("Unexpected code $response")
|
|
309
|
+
}
|
|
310
|
+
|
|
296
311
|
val keyValueMap = HashMap<String, Any>()
|
|
297
|
-
keyValueMap["offlineUrl"] = offlineUrl
|
|
312
|
+
keyValueMap["offlineUrl"] = offlineUrl.toString()
|
|
298
313
|
keyValueMap["metadata"] = asset?.metadata.toString()
|
|
299
|
-
|
|
314
|
+
|
|
315
|
+
val ancillaryFiles = (asset as ISegmentedAsset).getAncillaryFiles(context)
|
|
316
|
+
|
|
317
|
+
//HERE THE ASSET MANIFEST IS REQUESTED
|
|
318
|
+
keyValueMap["ancillary"] = ancillaryFiles
|
|
300
319
|
return gson.toJson(keyValueMap)
|
|
301
320
|
}
|
|
302
321
|
}
|
|
303
|
-
|
|
322
|
+
return null
|
|
304
323
|
}
|
|
305
|
-
|
|
324
|
+
|
|
306
325
|
fun updateUI() {}
|
|
307
|
-
|
|
308
|
-
fun loadBitmovinSourceManager(assetId: String, nativeId: String, startOffset: Double
|
|
309
|
-
|
|
310
|
-
|
|
326
|
+
|
|
327
|
+
fun loadBitmovinSourceManager(assetId: String, nativeId: String, startOffset: Double?, ancillaries: String , promise: Promise) {
|
|
328
|
+
|
|
329
|
+
getInstanceVirtuoso().assetManager?.getByAssetId(assetId)?.firstOrNull()?.let { asset ->
|
|
330
|
+
|
|
311
331
|
val sourceManager = BitmovinSourceManager(context, asset as ISegmentedAsset)
|
|
312
332
|
val sourceItem = sourceManager.bitmovinSourceItem
|
|
313
333
|
val playerModule = context.getNativeModule(PlayerModule::class.java)
|
|
314
334
|
if (playerModule != null && sourceItem != null) {
|
|
315
|
-
|
|
335
|
+
|
|
336
|
+
var player = playerModule.getPlayer(nativeId)
|
|
337
|
+
while(player == null) {
|
|
338
|
+
Thread.sleep(100)
|
|
339
|
+
player = playerModule.getPlayer(nativeId) as Nothing?
|
|
340
|
+
}
|
|
341
|
+
|
|
316
342
|
if (player != null) {
|
|
317
343
|
val metadata = JSONObject(asset.metadata)
|
|
318
344
|
val subtitles = JSONArray(metadata["subtitles"] as String)
|
|
319
|
-
val ancillaryFiles = (
|
|
345
|
+
val ancillaryFiles = JSONArray(ancillaries)
|
|
320
346
|
for (i in 0 until subtitles.length()) {
|
|
321
347
|
val subtitle = subtitles.getJSONObject(i)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
JsonConverter.toSubtitleTrack(subtitleMap)?.let {
|
|
331
|
-
sourceItem.addSubtitleTrack(it)
|
|
348
|
+
|
|
349
|
+
var url: String = ""
|
|
350
|
+
|
|
351
|
+
for (j in 0 until ancillaryFiles.length()) {
|
|
352
|
+
val ancillary = ancillaryFiles.getJSONObject(j)
|
|
353
|
+
if(ancillary.getString("description") == subtitle.getString("language")) {
|
|
354
|
+
url = ancillary.getString("playbackUrl")
|
|
355
|
+
}
|
|
332
356
|
}
|
|
357
|
+
val language: String = subtitle.getString("language")
|
|
358
|
+
val label: String = subtitle.getString("label")
|
|
359
|
+
val format = "vtt"
|
|
360
|
+
sourceItem.addSubtitleTrack(SubtitleTrack(url, language, label, format))
|
|
361
|
+
|
|
333
362
|
}
|
|
334
|
-
|
|
363
|
+
|
|
335
364
|
if(startOffset != null) {
|
|
336
365
|
sourceItem.options.startOffset = startOffset
|
|
337
366
|
}
|
|
338
|
-
|
|
367
|
+
|
|
339
368
|
player.load(sourceItem)
|
|
340
|
-
|
|
369
|
+
promise.resolve(true)
|
|
341
370
|
}
|
|
342
371
|
}
|
|
343
372
|
}
|
|
344
|
-
|
|
373
|
+
promise.reject("Error", "Error loading asset")
|
|
345
374
|
}
|
|
346
|
-
|
|
375
|
+
|
|
347
376
|
private fun uiManager(): UIManagerModule? =
|
|
348
377
|
context.getNativeModule(UIManagerModule::class.java)
|
|
349
|
-
|
|
350
|
-
|
|
378
|
+
|
|
379
|
+
|
|
351
380
|
}
|
|
Binary file
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Bucket
|
|
3
|
+
uuid = "3AE98629-7421-4561-B12C-C06B8B6A3023"
|
|
4
|
+
type = "1"
|
|
5
|
+
version = "2.0">
|
|
6
|
+
<Breakpoints>
|
|
7
|
+
<BreakpointProxy
|
|
8
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
9
|
+
<BreakpointContent
|
|
10
|
+
uuid = "A5D166B0-3C57-4F4D-A845-BDB81498DA0F"
|
|
11
|
+
shouldBeEnabled = "No"
|
|
12
|
+
ignoreCount = "0"
|
|
13
|
+
continueAfterRunningActions = "No"
|
|
14
|
+
filePath = "Penthera.swift"
|
|
15
|
+
startingColumnNumber = "9223372036854775807"
|
|
16
|
+
endingColumnNumber = "9223372036854775807"
|
|
17
|
+
startingLineNumber = "18"
|
|
18
|
+
endingLineNumber = "18"
|
|
19
|
+
landmarkName = "Penthera"
|
|
20
|
+
landmarkType = "3">
|
|
21
|
+
</BreakpointContent>
|
|
22
|
+
</BreakpointProxy>
|
|
23
|
+
<BreakpointProxy
|
|
24
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
25
|
+
<BreakpointContent
|
|
26
|
+
uuid = "5D7AE47B-D5FC-4468-A75B-C414F3F8A58C"
|
|
27
|
+
shouldBeEnabled = "No"
|
|
28
|
+
ignoreCount = "0"
|
|
29
|
+
continueAfterRunningActions = "No"
|
|
30
|
+
filePath = "Penthera.swift"
|
|
31
|
+
startingColumnNumber = "9223372036854775807"
|
|
32
|
+
endingColumnNumber = "9223372036854775807"
|
|
33
|
+
startingLineNumber = "25"
|
|
34
|
+
endingLineNumber = "25"
|
|
35
|
+
landmarkName = "updateStatusInfo()"
|
|
36
|
+
landmarkType = "7">
|
|
37
|
+
</BreakpointContent>
|
|
38
|
+
</BreakpointProxy>
|
|
39
|
+
<BreakpointProxy
|
|
40
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
41
|
+
<BreakpointContent
|
|
42
|
+
uuid = "E3C50B30-46CF-4D56-8C49-C257C70E0ACC"
|
|
43
|
+
shouldBeEnabled = "No"
|
|
44
|
+
ignoreCount = "0"
|
|
45
|
+
continueAfterRunningActions = "No"
|
|
46
|
+
filePath = "Penthera.swift"
|
|
47
|
+
startingColumnNumber = "9223372036854775807"
|
|
48
|
+
endingColumnNumber = "9223372036854775807"
|
|
49
|
+
startingLineNumber = "26"
|
|
50
|
+
endingLineNumber = "26"
|
|
51
|
+
landmarkName = "updateStatusInfo()"
|
|
52
|
+
landmarkType = "7">
|
|
53
|
+
</BreakpointContent>
|
|
54
|
+
</BreakpointProxy>
|
|
55
|
+
<BreakpointProxy
|
|
56
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
57
|
+
<BreakpointContent
|
|
58
|
+
uuid = "75EF43BF-56FF-4727-B372-E1A0EBC02C61"
|
|
59
|
+
shouldBeEnabled = "Yes"
|
|
60
|
+
ignoreCount = "0"
|
|
61
|
+
continueAfterRunningActions = "No"
|
|
62
|
+
filePath = "Penthera.swift"
|
|
63
|
+
startingColumnNumber = "9223372036854775807"
|
|
64
|
+
endingColumnNumber = "9223372036854775807"
|
|
65
|
+
startingLineNumber = "101"
|
|
66
|
+
endingLineNumber = "101"
|
|
67
|
+
landmarkName = "initializeSdk(user:backplaneUrl:publicKey:privateKey:resolve:reject:)"
|
|
68
|
+
landmarkType = "7">
|
|
69
|
+
</BreakpointContent>
|
|
70
|
+
</BreakpointProxy>
|
|
71
|
+
<BreakpointProxy
|
|
72
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
73
|
+
<BreakpointContent
|
|
74
|
+
uuid = "EF36B51B-4FC2-4989-A791-180E3212EFE3"
|
|
75
|
+
shouldBeEnabled = "Yes"
|
|
76
|
+
ignoreCount = "0"
|
|
77
|
+
continueAfterRunningActions = "No"
|
|
78
|
+
filePath = "Penthera.swift"
|
|
79
|
+
startingColumnNumber = "9223372036854775807"
|
|
80
|
+
endingColumnNumber = "9223372036854775807"
|
|
81
|
+
startingLineNumber = "149"
|
|
82
|
+
endingLineNumber = "149"
|
|
83
|
+
landmarkName = "getDownloadedAsset(assetID:)"
|
|
84
|
+
landmarkType = "7">
|
|
85
|
+
</BreakpointContent>
|
|
86
|
+
</BreakpointProxy>
|
|
87
|
+
<BreakpointProxy
|
|
88
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
89
|
+
<BreakpointContent
|
|
90
|
+
uuid = "C467C00E-2428-4D24-843A-E7CDF28CB553"
|
|
91
|
+
shouldBeEnabled = "Yes"
|
|
92
|
+
ignoreCount = "0"
|
|
93
|
+
continueAfterRunningActions = "No"
|
|
94
|
+
filePath = "Penthera.swift"
|
|
95
|
+
startingColumnNumber = "9223372036854775807"
|
|
96
|
+
endingColumnNumber = "9223372036854775807"
|
|
97
|
+
startingLineNumber = "148"
|
|
98
|
+
endingLineNumber = "148"
|
|
99
|
+
landmarkName = "getDownloadedAsset(assetID:)"
|
|
100
|
+
landmarkType = "7">
|
|
101
|
+
</BreakpointContent>
|
|
102
|
+
</BreakpointProxy>
|
|
103
|
+
</Breakpoints>
|
|
104
|
+
</Bucket>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Penthera.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -37,6 +37,7 @@ async function getDownloads(blank) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function download(blank) {
|
|
40
|
+
console.log('NativeModule -> executing download function');
|
|
40
41
|
return Penthera.download(blank);
|
|
41
42
|
}
|
|
42
43
|
function deleteAsset(assetID) {
|
|
@@ -58,8 +59,8 @@ async function playAsset(assetID) {
|
|
|
58
59
|
function getByAssetId(assetID) {
|
|
59
60
|
return Penthera.getByAssetId(assetID);
|
|
60
61
|
}
|
|
61
|
-
function loadBitmovinSourceManager(assetID, nativeId, startOffset) {
|
|
62
|
-
return Penthera.loadBitmovinSourceManager(assetID, nativeId, startOffset);
|
|
62
|
+
function loadBitmovinSourceManager(assetID, nativeId, startOffset, ancillaryFiles) {
|
|
63
|
+
return Penthera.loadBitmovinSourceManager(assetID, nativeId, startOffset, ancillaryFiles);
|
|
63
64
|
}
|
|
64
65
|
function multiply(a, b) {
|
|
65
66
|
return Penthera.multiply(a, b);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","Penthera","NativeModules","Proxy","get","Error","initialize","user","backplaneUrl","publicKey","privateKey","initializeSdk","getDownloads","blank","response","responseData","JSON","parse","download","deleteAsset","assetID","delete","playAsset","url","license","certificate","id","getByAssetId","loadBitmovinSourceManager","nativeId","startOffset","multiply","a","b","pauseDownload","deleteMany","assetIDs","configParameters"],"sourceRoot":"../../../src","sources":["nativeModules/index.ts"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,MAAMC,aAAa,GAChB,8FAA6F,GAC9FC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGC,0BAAa,CAACD,QAAQ,GACnCC,0BAAa,CAACD,QAAQ,GACtB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEE,SAASU,UAAUA,CACxBC,IAAY,EACZC,YAAoB,EACpBC,SAAiB,EACjBC,UAAkB,EACD;EACjB,OAAOT,QAAQ,CAACU,aAAa,CAACJ,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,CAAC;AAC1E;AAEO,eAAeE,YAAYA,CAChCC,KAAa,EACe;EAC5B,IAAI;IACF,MAAMC,QAAQ,GAAG,MAAMb,QAAQ,CAACW,YAAY,CAACC,KAAK,CAAC;IACnD,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;IACzC,OAAOC,YAAY;EACrB,CAAC,CAAC,MAAM;IACN,OAAO,EAAE;EACX;AACF;AAEO,SAASG,QAAQA,CAACL,KAAa,EAAmB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","Penthera","NativeModules","Proxy","get","Error","initialize","user","backplaneUrl","publicKey","privateKey","initializeSdk","getDownloads","blank","response","responseData","JSON","parse","download","console","log","deleteAsset","assetID","delete","playAsset","url","license","certificate","id","getByAssetId","loadBitmovinSourceManager","nativeId","startOffset","ancillaryFiles","multiply","a","b","pauseDownload","deleteMany","assetIDs","configParameters"],"sourceRoot":"../../../src","sources":["nativeModules/index.ts"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,MAAMC,aAAa,GAChB,8FAA6F,GAC9FC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGC,0BAAa,CAACD,QAAQ,GACnCC,0BAAa,CAACD,QAAQ,GACtB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEE,SAASU,UAAUA,CACxBC,IAAY,EACZC,YAAoB,EACpBC,SAAiB,EACjBC,UAAkB,EACD;EACjB,OAAOT,QAAQ,CAACU,aAAa,CAACJ,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,CAAC;AAC1E;AAEO,eAAeE,YAAYA,CAChCC,KAAa,EACe;EAC5B,IAAI;IACF,MAAMC,QAAQ,GAAG,MAAMb,QAAQ,CAACW,YAAY,CAACC,KAAK,CAAC;IACnD,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;IACzC,OAAOC,YAAY;EACrB,CAAC,CAAC,MAAM;IACN,OAAO,EAAE;EACX;AACF;AAEO,SAASG,QAAQA,CAACL,KAAa,EAAmB;EACvDM,OAAO,CAACC,GAAG,CAAC,6CAA6C,CAAC;EAC1D,OAAOnB,QAAQ,CAACiB,QAAQ,CAACL,KAAK,CAAC;AACjC;AAEO,SAASQ,WAAWA,CAACC,OAAe,EAAmB;EAC5D,OAAOrB,QAAQ,CAACsB,MAAM,CAACD,OAAO,CAAC;AACjC;AAEO,eAAeE,SAASA,CAC7BF,OAAe,EAC4B;EAC3C,IAAI;IACF,MAAMR,QAAQ,GAAG,MAAMb,QAAQ,CAACuB,SAAS,CAACF,OAAO,CAAC;IAClD,OAAON,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;EAC7B,CAAC,CAAC,MAAM;IACN,OAAO;MACLW,GAAG,EAAE,EAAE;MACPC,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,EAAE;MACfC,EAAE,EAAE;IACN,CAAC;EACH;AACF;AAEO,SAASC,YAAYA,CAACP,OAAe,EAAmB;EAC7D,OAAOrB,QAAQ,CAAC4B,YAAY,CAACP,OAAO,CAAC;AACvC;AAEO,SAASQ,yBAAyBA,CACvCR,OAAe,EACfS,QAAgB,EAChBC,WAAoB,EACpBC,cAAuB,EACL;EAClB,OAAOhC,QAAQ,CAAC6B,yBAAyB,CACvCR,OAAO,EACPS,QAAQ,EACRC,WAAW,EACXC,cAAc,CACf;AACH;AAEO,SAASC,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOnC,QAAQ,CAACiC,QAAQ,CAACC,CAAC,EAAEC,CAAC,CAAC;AAChC;AAEO,SAASC,aAAaA,CAACf,OAAe,EAAmB;EAC9D,OAAOrB,QAAQ,CAACoC,aAAa,CAACf,OAAO,CAAC;AACxC;AAEO,SAASgB,UAAUA,CACxBC,QAAkB,EACgB;EAClC,OAAOtC,QAAQ,CAACqC,UAAU,CAACC,QAAQ,CAAC;AACtC;AAEO,SAASC,gBAAgBA,CAAC3B,KAAa,EAAmB;EAC/D,OAAOZ,QAAQ,CAACuC,gBAAgB,CAAC3B,KAAK,CAAC;AACzC"}
|
|
@@ -21,6 +21,7 @@ export async function getDownloads(blank) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
export function download(blank) {
|
|
24
|
+
console.log('NativeModule -> executing download function');
|
|
24
25
|
return Penthera.download(blank);
|
|
25
26
|
}
|
|
26
27
|
export function deleteAsset(assetID) {
|
|
@@ -42,8 +43,8 @@ export async function playAsset(assetID) {
|
|
|
42
43
|
export function getByAssetId(assetID) {
|
|
43
44
|
return Penthera.getByAssetId(assetID);
|
|
44
45
|
}
|
|
45
|
-
export function loadBitmovinSourceManager(assetID, nativeId, startOffset) {
|
|
46
|
-
return Penthera.loadBitmovinSourceManager(assetID, nativeId, startOffset);
|
|
46
|
+
export function loadBitmovinSourceManager(assetID, nativeId, startOffset, ancillaryFiles) {
|
|
47
|
+
return Penthera.loadBitmovinSourceManager(assetID, nativeId, startOffset, ancillaryFiles);
|
|
47
48
|
}
|
|
48
49
|
export function multiply(a, b) {
|
|
49
50
|
return Penthera.multiply(a, b);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Penthera","Proxy","get","Error","initialize","user","backplaneUrl","publicKey","privateKey","initializeSdk","getDownloads","blank","response","responseData","JSON","parse","download","deleteAsset","assetID","delete","playAsset","url","license","certificate","id","getByAssetId","loadBitmovinSourceManager","nativeId","startOffset","multiply","a","b","pauseDownload","deleteMany","assetIDs","configParameters"],"sourceRoot":"../../../src","sources":["nativeModules/index.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAGtD,MAAMC,aAAa,GAChB,8FAA6F,GAC9FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGN,aAAa,CAACM,QAAQ,GACnCN,aAAa,CAACM,QAAQ,GACtB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,OAAO,SAASQ,UAAUA,CACxBC,IAAY,EACZC,YAAoB,EACpBC,SAAiB,EACjBC,UAAkB,EACD;EACjB,OAAOR,QAAQ,CAACS,aAAa,CAACJ,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,CAAC;AAC1E;AAEA,OAAO,eAAeE,YAAYA,CAChCC,KAAa,EACe;EAC5B,IAAI;IACF,MAAMC,QAAQ,GAAG,MAAMZ,QAAQ,CAACU,YAAY,CAACC,KAAK,CAAC;IACnD,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;IACzC,OAAOC,YAAY;EACrB,CAAC,CAAC,MAAM;IACN,OAAO,EAAE;EACX;AACF;AAEA,OAAO,SAASG,QAAQA,CAACL,KAAa,EAAmB;
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Penthera","Proxy","get","Error","initialize","user","backplaneUrl","publicKey","privateKey","initializeSdk","getDownloads","blank","response","responseData","JSON","parse","download","console","log","deleteAsset","assetID","delete","playAsset","url","license","certificate","id","getByAssetId","loadBitmovinSourceManager","nativeId","startOffset","ancillaryFiles","multiply","a","b","pauseDownload","deleteMany","assetIDs","configParameters"],"sourceRoot":"../../../src","sources":["nativeModules/index.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAGtD,MAAMC,aAAa,GAChB,8FAA6F,GAC9FD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGN,aAAa,CAACM,QAAQ,GACnCN,aAAa,CAACM,QAAQ,GACtB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,OAAO,SAASQ,UAAUA,CACxBC,IAAY,EACZC,YAAoB,EACpBC,SAAiB,EACjBC,UAAkB,EACD;EACjB,OAAOR,QAAQ,CAACS,aAAa,CAACJ,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,CAAC;AAC1E;AAEA,OAAO,eAAeE,YAAYA,CAChCC,KAAa,EACe;EAC5B,IAAI;IACF,MAAMC,QAAQ,GAAG,MAAMZ,QAAQ,CAACU,YAAY,CAACC,KAAK,CAAC;IACnD,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;IACzC,OAAOC,YAAY;EACrB,CAAC,CAAC,MAAM;IACN,OAAO,EAAE;EACX;AACF;AAEA,OAAO,SAASG,QAAQA,CAACL,KAAa,EAAmB;EACvDM,OAAO,CAACC,GAAG,CAAC,6CAA6C,CAAC;EAC1D,OAAOlB,QAAQ,CAACgB,QAAQ,CAACL,KAAK,CAAC;AACjC;AAEA,OAAO,SAASQ,WAAWA,CAACC,OAAe,EAAmB;EAC5D,OAAOpB,QAAQ,CAACqB,MAAM,CAACD,OAAO,CAAC;AACjC;AAEA,OAAO,eAAeE,SAASA,CAC7BF,OAAe,EAC4B;EAC3C,IAAI;IACF,MAAMR,QAAQ,GAAG,MAAMZ,QAAQ,CAACsB,SAAS,CAACF,OAAO,CAAC;IAClD,OAAON,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;EAC7B,CAAC,CAAC,MAAM;IACN,OAAO;MACLW,GAAG,EAAE,EAAE;MACPC,OAAO,EAAE,EAAE;MACXC,WAAW,EAAE,EAAE;MACfC,EAAE,EAAE;IACN,CAAC;EACH;AACF;AAEA,OAAO,SAASC,YAAYA,CAACP,OAAe,EAAmB;EAC7D,OAAOpB,QAAQ,CAAC2B,YAAY,CAACP,OAAO,CAAC;AACvC;AAEA,OAAO,SAASQ,yBAAyBA,CACvCR,OAAe,EACfS,QAAgB,EAChBC,WAAoB,EACpBC,cAAuB,EACL;EAClB,OAAO/B,QAAQ,CAAC4B,yBAAyB,CACvCR,OAAO,EACPS,QAAQ,EACRC,WAAW,EACXC,cAAc,CACf;AACH;AAEA,OAAO,SAASC,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOlC,QAAQ,CAACgC,QAAQ,CAACC,CAAC,EAAEC,CAAC,CAAC;AAChC;AAEA,OAAO,SAASC,aAAaA,CAACf,OAAe,EAAmB;EAC9D,OAAOpB,QAAQ,CAACmC,aAAa,CAACf,OAAO,CAAC;AACxC;AAEA,OAAO,SAASgB,UAAUA,CACxBC,QAAkB,EACgB;EAClC,OAAOrC,QAAQ,CAACoC,UAAU,CAACC,QAAQ,CAAC;AACtC;AAEA,OAAO,SAASC,gBAAgBA,CAAC3B,KAAa,EAAmB;EAC/D,OAAOX,QAAQ,CAACsC,gBAAgB,CAAC3B,KAAK,CAAC;AACzC"}
|
|
@@ -5,7 +5,7 @@ export declare function download(blank: string): Promise<string>;
|
|
|
5
5
|
export declare function deleteAsset(assetID: string): Promise<string>;
|
|
6
6
|
export declare function playAsset<ResponseType>(assetID: string): Promise<ResponseType | InterfaceDataPlay>;
|
|
7
7
|
export declare function getByAssetId(assetID: string): Promise<string>;
|
|
8
|
-
export declare function loadBitmovinSourceManager(assetID: string, nativeId: string, startOffset?: number): Promise<boolean>;
|
|
8
|
+
export declare function loadBitmovinSourceManager(assetID: string, nativeId: string, startOffset?: number, ancillaryFiles?: string): Promise<boolean>;
|
|
9
9
|
export declare function multiply(a: number, b: number): Promise<number>;
|
|
10
10
|
export declare function pauseDownload(assetID: string): Promise<string>;
|
|
11
11
|
export declare function deleteMany(assetIDs: string[]): Promise<Record<string, boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nativeModules/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAmB5C,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,wBAAsB,YAAY,CAAC,YAAY,EAC7C,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,YAAY,GAAG,EAAE,CAAC,CAQ5B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nativeModules/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAmB5C,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,wBAAsB,YAAY,CAAC,YAAY,EAC7C,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,YAAY,GAAG,EAAE,CAAC,CAQ5B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGvD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE5D;AAED,wBAAsB,SAAS,CAAC,YAAY,EAC1C,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,YAAY,GAAG,iBAAiB,CAAC,CAY3C;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE7D;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAElC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE/D"}
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export async function getDownloads<ResponseType>(
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export function download(blank: string): Promise<string> {
|
|
43
|
+
console.log('NativeModule -> executing download function');
|
|
43
44
|
return Penthera.download(blank);
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -70,9 +71,15 @@ export function getByAssetId(assetID: string): Promise<string> {
|
|
|
70
71
|
export function loadBitmovinSourceManager(
|
|
71
72
|
assetID: string,
|
|
72
73
|
nativeId: string,
|
|
73
|
-
startOffset?: number
|
|
74
|
+
startOffset?: number,
|
|
75
|
+
ancillaryFiles?: string
|
|
74
76
|
): Promise<boolean> {
|
|
75
|
-
return Penthera.loadBitmovinSourceManager(
|
|
77
|
+
return Penthera.loadBitmovinSourceManager(
|
|
78
|
+
assetID,
|
|
79
|
+
nativeId,
|
|
80
|
+
startOffset,
|
|
81
|
+
ancillaryFiles
|
|
82
|
+
);
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
export function multiply(a: number, b: number): Promise<number> {
|