bitmovin-player-react-native 1.19.0 → 1.20.1
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 +22 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerView.kt +43 -6
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerViewManager.kt +2 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/ui/RNPictureInPictureHandler.kt +81 -1
- package/build/components/PlayerView/events.d.ts +0 -4
- package/build/components/PlayerView/events.d.ts.map +1 -1
- package/build/components/PlayerView/events.js.map +1 -1
- package/build/components/PlayerView/nativeEvents.d.ts +0 -4
- package/build/components/PlayerView/nativeEvents.d.ts.map +1 -1
- package/build/components/PlayerView/nativeEvents.js.map +1 -1
- package/build/events.d.ts +2 -2
- package/build/events.js.map +1 -1
- package/ios/RNBitmovinPlayer.podspec +1 -1
- package/package.json +2 -2
- package/plugin/build/withBitmovinIosConfig.js +3 -2
- package/plugin/src/withBitmovinIosConfig.ts +4 -2
- package/src/components/PlayerView/events.ts +0 -4
- package/src/components/PlayerView/nativeEvents.ts +0 -4
- package/src/events.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.20.1] - 2026-06-12
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Android: Fix known limitation of `PictureInPictureEntered` and `PictureInPictureExited` events on Android <15
|
|
8
|
+
|
|
9
|
+
## [1.20.0] - 2026-05-29
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Android: `PictureInPictureEntered` and `PictureInPictureExited` player events
|
|
14
|
+
- Known Limitation: On Android <15 the `PictureInPictureEntered` and `PictureInPictureExited` events are called before the `AppState` changed callback is called
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Update Bitmovin's native Android SDK version to `3.154.0+jason`
|
|
19
|
+
- Update Bitmovin's native iOS SDK version to `3.114.1`
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- iOS: Expo config plugin no longer drops `NSLocalNetworkUsageDescription` from `Info.plist` when `features.googleCastSDK.ios` is configured as an object without an explicit `localNetworkUsageDescription`. The default description is now applied as a fallback, restoring local-network access required for Cast device discovery
|
|
24
|
+
|
|
3
25
|
## [1.19.0] - 2026-05-08
|
|
4
26
|
|
|
5
27
|
### Added
|
package/android/build.gradle
CHANGED
|
@@ -108,6 +108,6 @@ dependencies {
|
|
|
108
108
|
|
|
109
109
|
// Bitmovin
|
|
110
110
|
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
|
|
111
|
-
implementation 'com.bitmovin.player:player:3.
|
|
112
|
-
implementation 'com.bitmovin.player:player-media-session:3.
|
|
111
|
+
implementation 'com.bitmovin.player:player:3.154.0+jason'
|
|
112
|
+
implementation 'com.bitmovin.player:player-media-session:3.154.0+jason'
|
|
113
113
|
}
|
|
@@ -110,7 +110,9 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
110
110
|
private val onBmpFullscreenExit by EventDispatcher()
|
|
111
111
|
private val onBmpPictureInPictureAvailabilityChanged by EventDispatcher()
|
|
112
112
|
private val onBmpPictureInPictureEnter by EventDispatcher()
|
|
113
|
+
private val onBmpPictureInPictureEntered by EventDispatcher()
|
|
113
114
|
private val onBmpPictureInPictureExit by EventDispatcher()
|
|
115
|
+
private val onBmpPictureInPictureExited by EventDispatcher()
|
|
114
116
|
|
|
115
117
|
private var pictureInPictureConfig: PictureInPictureConfig = PictureInPictureConfig()
|
|
116
118
|
|
|
@@ -326,9 +328,16 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
326
328
|
val isPictureInPictureEnabled = isPictureInPictureEnabledOnPlayer || pictureInPictureConfig.isEnabled
|
|
327
329
|
pictureInPictureHandler = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && isPictureInPictureEnabled) {
|
|
328
330
|
RNPictureInPictureHandler(
|
|
329
|
-
currentActivity,
|
|
330
|
-
player,
|
|
331
|
-
pictureInPictureConfig,
|
|
331
|
+
activity = currentActivity,
|
|
332
|
+
player = player,
|
|
333
|
+
pictureInPictureConfig = pictureInPictureConfig,
|
|
334
|
+
onPictureInPictureExited = {
|
|
335
|
+
// It is safe to call this function with `newConfig = null`
|
|
336
|
+
playerView?.onPictureInPictureModeChanged(
|
|
337
|
+
isInPictureInPictureMode = false,
|
|
338
|
+
newConfig = null,
|
|
339
|
+
)
|
|
340
|
+
},
|
|
332
341
|
)
|
|
333
342
|
} else {
|
|
334
343
|
null
|
|
@@ -432,8 +441,6 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
432
441
|
) {
|
|
433
442
|
val playerView = playerView ?: return
|
|
434
443
|
|
|
435
|
-
playerView.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
|
436
|
-
|
|
437
444
|
if (isInPictureInPictureMode) {
|
|
438
445
|
if (!playerView.isPictureInPicture) {
|
|
439
446
|
playerView.enterPictureInPicture()
|
|
@@ -442,12 +449,25 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
442
449
|
if (!reparentHelper.isActive) {
|
|
443
450
|
reparentHelper.reparent()
|
|
444
451
|
}
|
|
452
|
+
|
|
453
|
+
// We must "delay" the onPictureInPictureModeChanged callback via posting a runnable.
|
|
454
|
+
// This will force the callback to be called at the end of the current pending UI transactions.
|
|
455
|
+
// This is necessary as the `PlayerView.onPictureInPictureModeChanged` call will immediately send a
|
|
456
|
+
// PiP-transition ended event.
|
|
457
|
+
post {
|
|
458
|
+
playerView.onPictureInPictureModeChanged(true, newConfig)
|
|
459
|
+
}
|
|
445
460
|
} else {
|
|
446
461
|
if (playerView.isPictureInPicture) {
|
|
447
462
|
playerView.exitPictureInPicture()
|
|
448
463
|
}
|
|
449
464
|
|
|
450
465
|
reparentHelper.tryRestore()
|
|
466
|
+
|
|
467
|
+
// No need to call playerView.onPictureInPictureModeChanged,
|
|
468
|
+
// as this is done via the RNPictureInPictureHandler callback.
|
|
469
|
+
// The PiP-exit handling is different compared to PiP-enter, due to the nature of PiP handling:
|
|
470
|
+
// Enter via `activity.enterPictureInPictureMode`, Exit via `activity.startActivity(restoreIntent)`.
|
|
451
471
|
}
|
|
452
472
|
}
|
|
453
473
|
|
|
@@ -470,9 +490,15 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
470
490
|
playerView.on(PlayerEvent.PictureInPictureEnter::class) {
|
|
471
491
|
onBmpPictureInPictureEnter(it.toJson())
|
|
472
492
|
}
|
|
493
|
+
playerView.on(PlayerEvent.PictureInPictureEntered::class) {
|
|
494
|
+
onBmpPictureInPictureEntered(it.toJson())
|
|
495
|
+
}
|
|
473
496
|
playerView.on(PlayerEvent.PictureInPictureExit::class) {
|
|
474
497
|
onBmpPictureInPictureExit(it.toJson())
|
|
475
498
|
}
|
|
499
|
+
playerView.on(PlayerEvent.PictureInPictureExited::class) {
|
|
500
|
+
onBmpPictureInPictureExited(it.toJson())
|
|
501
|
+
}
|
|
476
502
|
}
|
|
477
503
|
|
|
478
504
|
@Suppress("UNCHECKED_CAST")
|
|
@@ -630,7 +656,18 @@ class RNPlayerView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
630
656
|
if (isEnabled && pictureInPictureHandler == null) {
|
|
631
657
|
val currentActivity = appContext.activityProvider?.currentActivity ?: return
|
|
632
658
|
val player = playerView?.player ?: return
|
|
633
|
-
pictureInPictureHandler = RNPictureInPictureHandler(
|
|
659
|
+
pictureInPictureHandler = RNPictureInPictureHandler(
|
|
660
|
+
activity = currentActivity,
|
|
661
|
+
player = player,
|
|
662
|
+
pictureInPictureConfig = pictureInPictureConfig,
|
|
663
|
+
onPictureInPictureExited = {
|
|
664
|
+
// It is safe to call this function with `newConfig = null`
|
|
665
|
+
playerView?.onPictureInPictureModeChanged(
|
|
666
|
+
isInPictureInPictureMode = false,
|
|
667
|
+
newConfig = null,
|
|
668
|
+
)
|
|
669
|
+
},
|
|
670
|
+
)
|
|
634
671
|
playerView?.setPictureInPictureHandler(pictureInPictureHandler)
|
|
635
672
|
} else if (!isEnabled && pictureInPictureHandler != null) {
|
|
636
673
|
pictureInPictureHandler?.dispose()
|
|
@@ -133,7 +133,9 @@ class RNPlayerViewManager : Module() {
|
|
|
133
133
|
"onBmpVideoDownloadQualityChanged",
|
|
134
134
|
"onBmpPictureInPictureAvailabilityChanged",
|
|
135
135
|
"onBmpPictureInPictureEnter",
|
|
136
|
+
"onBmpPictureInPictureEntered",
|
|
136
137
|
"onBmpPictureInPictureExit",
|
|
138
|
+
"onBmpPictureInPictureExited",
|
|
137
139
|
"onBmpAdBreakFinished",
|
|
138
140
|
"onBmpAdBreakStarted",
|
|
139
141
|
"onBmpAdClicked",
|
package/android/src/main/java/com/bitmovin/player/reactnative/ui/RNPictureInPictureHandler.kt
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
package com.bitmovin.player.reactnative.ui
|
|
2
2
|
|
|
3
3
|
import android.app.Activity
|
|
4
|
+
import android.app.Application
|
|
4
5
|
import android.app.PictureInPictureParams
|
|
5
6
|
import android.os.Build
|
|
7
|
+
import android.os.Bundle
|
|
6
8
|
import android.util.Log
|
|
7
9
|
import android.util.Rational
|
|
8
10
|
import androidx.annotation.RequiresApi
|
|
@@ -10,8 +12,8 @@ import com.bitmovin.player.api.Player
|
|
|
10
12
|
import com.bitmovin.player.api.event.PlayerEvent
|
|
11
13
|
import com.bitmovin.player.api.event.on
|
|
12
14
|
import com.bitmovin.player.reactnative.PictureInPictureAction
|
|
13
|
-
import com.bitmovin.player.ui.DefaultPictureInPictureHandler
|
|
14
15
|
import com.bitmovin.player.reactnative.PictureInPictureConfig
|
|
16
|
+
import com.bitmovin.player.ui.DefaultPictureInPictureHandler
|
|
15
17
|
|
|
16
18
|
private const val TAG = "RNPiPHandler"
|
|
17
19
|
|
|
@@ -20,6 +22,7 @@ class RNPictureInPictureHandler(
|
|
|
20
22
|
private val activity: Activity,
|
|
21
23
|
private val player: Player,
|
|
22
24
|
private val pictureInPictureConfig: PictureInPictureConfig,
|
|
25
|
+
private val onPictureInPictureExited: () -> Unit = {},
|
|
23
26
|
) : DefaultPictureInPictureHandler(activity, player) {
|
|
24
27
|
private val pictureInPictureActionHandler = DefaultPictureInPictureActionHandler(
|
|
25
28
|
activity,
|
|
@@ -57,6 +60,8 @@ class RNPictureInPictureHandler(
|
|
|
57
60
|
updatePictureInPictureParams()
|
|
58
61
|
}
|
|
59
62
|
|
|
63
|
+
private var pipTransactionEndedCallback: PipTransactionEndedActivityLifecycleCallback? = null
|
|
64
|
+
|
|
60
65
|
init {
|
|
61
66
|
playerIsPlaying = player.isPlaying
|
|
62
67
|
subscribeToPlayerPlaybackEvents()
|
|
@@ -107,6 +112,10 @@ class RNPictureInPictureHandler(
|
|
|
107
112
|
return
|
|
108
113
|
}
|
|
109
114
|
|
|
115
|
+
val callback = PipTransactionEndedActivityLifecycleCallback()
|
|
116
|
+
activity.application.registerActivityLifecycleCallbacks(callback)
|
|
117
|
+
pipTransactionEndedCallback = callback
|
|
118
|
+
|
|
110
119
|
activity.enterPictureInPictureMode(buildPictureInPictureParams())
|
|
111
120
|
_isPictureInPicture = true
|
|
112
121
|
}
|
|
@@ -144,6 +153,77 @@ class RNPictureInPictureHandler(
|
|
|
144
153
|
.build(),
|
|
145
154
|
)
|
|
146
155
|
}
|
|
156
|
+
pipTransactionEndedCallback?.let { callback ->
|
|
157
|
+
activity.application.unregisterActivityLifecycleCallbacks(callback)
|
|
158
|
+
}
|
|
159
|
+
pipTransactionEndedCallback = null
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
private inner class PipTransactionEndedActivityLifecycleCallback : Application.ActivityLifecycleCallbacks {
|
|
163
|
+
private var callbackReceived = false
|
|
164
|
+
|
|
165
|
+
private fun unregisterCallback(activity: Activity) {
|
|
166
|
+
activity.application.unregisterActivityLifecycleCallbacks(this)
|
|
167
|
+
if (pipTransactionEndedCallback == this) {
|
|
168
|
+
pipTransactionEndedCallback = null
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
|
|
173
|
+
// no-op
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
override fun onActivityDestroyed(activity: Activity) {
|
|
177
|
+
// no-op
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
override fun onActivityPaused(activity: Activity) {
|
|
181
|
+
// no-op
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
override fun onActivityResumed(activity: Activity) {
|
|
185
|
+
// Called when the PiP mode is exited via restoring to the "normal" activity
|
|
186
|
+
if (activity != this@RNPictureInPictureHandler.activity) {
|
|
187
|
+
return
|
|
188
|
+
}
|
|
189
|
+
if (callbackReceived) {
|
|
190
|
+
return
|
|
191
|
+
}
|
|
192
|
+
callbackReceived = true
|
|
193
|
+
try {
|
|
194
|
+
if (!isPictureInPicture) {
|
|
195
|
+
onPictureInPictureExited()
|
|
196
|
+
}
|
|
197
|
+
} finally {
|
|
198
|
+
unregisterCallback(activity)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {
|
|
203
|
+
// no-op
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
override fun onActivityStarted(activity: Activity) {
|
|
207
|
+
// no-op
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
override fun onActivityStopped(activity: Activity) {
|
|
211
|
+
// Called when the PiP mode is exited via closing the PiP window
|
|
212
|
+
if (activity != this@RNPictureInPictureHandler.activity) {
|
|
213
|
+
return
|
|
214
|
+
}
|
|
215
|
+
if (callbackReceived) {
|
|
216
|
+
return
|
|
217
|
+
}
|
|
218
|
+
callbackReceived = true
|
|
219
|
+
// No need to check the `isPictureInPicture` value, as `onActivityStopped` is called
|
|
220
|
+
// when the activity gets destroyed from PiP mode
|
|
221
|
+
try {
|
|
222
|
+
onPictureInPictureExited()
|
|
223
|
+
} finally {
|
|
224
|
+
unregisterCallback(activity)
|
|
225
|
+
}
|
|
226
|
+
}
|
|
147
227
|
}
|
|
148
228
|
}
|
|
149
229
|
|
|
@@ -175,8 +175,6 @@ export type PlayerViewEvents = {
|
|
|
175
175
|
onPictureInPictureEnter?: (event: PictureInPictureEnterEvent) => void;
|
|
176
176
|
/**
|
|
177
177
|
* Event emitted when the player entered Picture in Picture mode.
|
|
178
|
-
*
|
|
179
|
-
* @platform iOS
|
|
180
178
|
*/
|
|
181
179
|
onPictureInPictureEntered?: (event: PictureInPictureEnteredEvent) => void;
|
|
182
180
|
/**
|
|
@@ -185,8 +183,6 @@ export type PlayerViewEvents = {
|
|
|
185
183
|
onPictureInPictureExit?: (event: PictureInPictureExitEvent) => void;
|
|
186
184
|
/**
|
|
187
185
|
* Event emitted when the player exited Picture in Picture mode.
|
|
188
|
-
*
|
|
189
|
-
* @platform iOS
|
|
190
186
|
*/
|
|
191
187
|
onPictureInPictureExited?: (event: PictureInPictureExitedEvent) => void;
|
|
192
188
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/components/PlayerView/events.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,KAAK,EACL,sBAAsB,EACtB,uBAAuB,EACvB,oBAA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CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C;;OAEG;IACH,6BAA6B,CAAC,EAAE,CAC9B,KAAK,EAAE,gCAAgC,KACpC,IAAI,CAAC;IACV;;OAEG;IACH,6BAA6B,CAAC,EAAE,CAC9B,KAAK,EAAE,gCAAgC,KACpC,IAAI,CAAC;IACV;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;CAC3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/components/PlayerView/events.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AdBreakFinishedEvent,\n AdBreakStartedEvent,\n AdClickedEvent,\n AdErrorEvent,\n AdFinishedEvent,\n AdManifestLoadedEvent,\n AdManifestLoadEvent,\n AdQuartileEvent,\n AdScheduledEvent,\n AdSkippedEvent,\n AdStartedEvent,\n CastAvailableEvent,\n CastPausedEvent,\n CastPlaybackFinishedEvent,\n CastPlayingEvent,\n CastStartedEvent,\n CastStartEvent,\n CastStoppedEvent,\n CastTimeUpdatedEvent,\n CastWaitingForDeviceEvent,\n DestroyEvent,\n Event,\n FullscreenEnabledEvent,\n FullscreenDisabledEvent,\n FullscreenEnterEvent,\n FullscreenExitEvent,\n MutedEvent,\n PausedEvent,\n PictureInPictureAvailabilityChangedEvent,\n PictureInPictureEnterEvent,\n PictureInPictureEnteredEvent,\n PictureInPictureExitEvent,\n PictureInPictureExitedEvent,\n PlaybackFinishedEvent,\n PlayerActiveEvent,\n PlayerErrorEvent,\n PlayerWarningEvent,\n PlayEvent,\n PlayingEvent,\n ReadyEvent,\n SeekedEvent,\n SeekEvent,\n TimeShiftEvent,\n TimeShiftedEvent,\n StallStartedEvent,\n StallEndedEvent,\n SourceErrorEvent,\n SourceLoadedEvent,\n SourceLoadEvent,\n SourceUnloadedEvent,\n SourceWarningEvent,\n AudioAddedEvent,\n AudioChangedEvent,\n AudioRemovedEvent,\n SubtitleAddedEvent,\n SubtitleChangedEvent,\n SubtitleRemovedEvent,\n TimeChangedEvent,\n UnmutedEvent,\n VideoPlaybackQualityChangedEvent,\n DownloadFinishedEvent,\n VideoDownloadQualityChangedEvent,\n PlaybackSpeedChangedEvent,\n CueEnterEvent,\n CueExitEvent,\n MetadataParsedEvent,\n MetadataEvent,\n FairplayLicenseAcquiredEvent,\n} from '../../events';\n\n/**\n * Event props for `PlayerView`.\n *\n * Note the events of `PlayerView` are simply a proxy over\n * the events from `NativePlayerView` just removing RN's bubbling data.\n */\nexport type PlayerViewEvents = {\n /**\n * Event emitted when an ad break has finished.\n */\n onAdBreakFinished?: (event: AdBreakFinishedEvent) => void;\n /**\n * Event emitted when an ad break has started.\n */\n onAdBreakStarted?: (event: AdBreakStartedEvent) => void;\n /**\n * Event emitted when an ad has been clicked.\n */\n onAdClicked?: (event: AdClickedEvent) => void;\n /**\n * Event emitted when an ad error has occurred.\n */\n onAdError?: (event: AdErrorEvent) => void;\n /**\n * Event emitted when an ad has finished.\n */\n onAdFinished?: (event: AdFinishedEvent) => void;\n /**\n * Event emitted when an ad manifest starts loading.\n */\n onAdManifestLoad?: (event: AdManifestLoadEvent) => void;\n /**\n * Event emitted when an ad manifest has been loaded.\n */\n onAdManifestLoaded?: (event: AdManifestLoadedEvent) => void;\n /**\n * Event emitted when an ad quartile has been reached.\n */\n onAdQuartile?: (event: AdQuartileEvent) => void;\n /**\n * Event emitted when an ad has been scheduled.\n */\n onAdScheduled?: (event: AdScheduledEvent) => void;\n /**\n * Event emitted when an ad has been skipped.\n */\n onAdSkipped?: (event: AdSkippedEvent) => void;\n /**\n * Event emitted when an ad has started.\n */\n onAdStarted?: (event: AdStartedEvent) => void;\n /**\n * Event emitted when casting to a cast-compatible device is available.\n *\n * @platform iOS, Android\n */\n onCastAvailable?: (event: CastAvailableEvent) => void;\n /**\n * Event emitted when the playback on a cast-compatible device was paused.\n *\n * @platform iOS, Android\n */\n onCastPaused?: (event: CastPausedEvent) => void;\n /**\n * Event emitted when the playback on a cast-compatible device has finished.\n *\n * @platform iOS, Android\n */\n onCastPlaybackFinished?: (event: CastPlaybackFinishedEvent) => void;\n /**\n * Event emitted when playback on a cast-compatible device has started.\n *\n * @platform iOS, Android\n */\n onCastPlaying?: (event: CastPlayingEvent) => void;\n /**\n * Event emitted when the cast app is launched successfully.\n *\n * @platform iOS, Android\n */\n onCastStarted?: (event: CastStartedEvent) => void;\n /**\n * Event emitted when casting is initiated, but the user still needs to choose which device should be used.\n *\n * @platform iOS, Android\n */\n onCastStart?: (event: CastStartEvent) => void;\n /**\n * Event emitted when casting to a cast-compatible device is stopped.\n *\n * @platform iOS, Android\n */\n onCastStopped?: (event: CastStoppedEvent) => void;\n /**\n * Event emitted when the time update from the currently used cast-compatible device is received.\n *\n * @platform iOS, Android\n */\n onCastTimeUpdated?: (event: CastTimeUpdatedEvent) => void;\n /**\n * Event emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n *\n * @platform iOS, Android\n */\n onCastWaitingForDevice?: (event: CastWaitingForDeviceEvent) => void;\n /**\n * Event emitted when a subtitle entry transitions into the active status.\n */\n onCueEnter?: (event: CueEnterEvent) => void;\n /**\n * Event emitted when an active subtitle entry transitions into the inactive status.\n */\n onCueExit?: (event: CueExitEvent) => void;\n /**\n * Event emitted when the player is destroyed.\n */\n onDestroy?: (event: DestroyEvent) => void;\n /**\n * Emitted when a download was finished.\n */\n onDownloadFinished?: (event: DownloadFinishedEvent) => void;\n /**\n * All events emitted by the player.\n */\n onEvent?: (event: Event) => void;\n /**\n * Event emitted when fullscreen mode has been enabled.\n *\n * @platform iOS, Android\n */\n onFullscreenEnabled?: (event: FullscreenEnabledEvent) => void;\n /**\n * Event emitted when fullscreen mode has been disabled.\n *\n * @platform iOS, Android\n */\n onFullscreenDisabled?: (event: FullscreenDisabledEvent) => void;\n /**\n * Event emitted when fullscreen mode has been entered.\n *\n * @platform iOS, Android\n */\n onFullscreenEnter?: (event: FullscreenEnterEvent) => void;\n /**\n * Event emitted when fullscreen mode has been exited.\n *\n * @platform iOS, Android\n */\n onFullscreenExit?: (event: FullscreenExitEvent) => void;\n /**\n * Emitted when metadata is encountered during playback.\n */\n onMetadata?: (event: MetadataEvent) => void;\n /**\n * Emitted when metadata is first seen and parsed.\n */\n onMetadataParsed?: (event: MetadataParsedEvent) => void;\n /**\n * Event emitted when the player has been muted.\n */\n onMuted?: (event: MutedEvent) => void;\n /**\n * Event emitted when the player has been paused.\n */\n onPaused?: (event: PausedEvent) => void;\n /**\n * Event mitted when the availability of the Picture in Picture mode changed.\n */\n onPictureInPictureAvailabilityChanged?: (\n event: PictureInPictureAvailabilityChangedEvent\n ) => void;\n /**\n * Event emitted when the player enters Picture in Picture mode.\n */\n onPictureInPictureEnter?: (event: PictureInPictureEnterEvent) => void;\n /**\n * Event emitted when the player entered Picture in Picture mode.\n *\n * @platform iOS\n */\n onPictureInPictureEntered?: (event: PictureInPictureEnteredEvent) => void;\n /**\n * Event emitted when the player exits Picture in Picture mode.\n */\n onPictureInPictureExit?: (event: PictureInPictureExitEvent) => void;\n /**\n * Event emitted when the player exited Picture in Picture mode.\n *\n * @platform iOS\n */\n onPictureInPictureExited?: (event: PictureInPictureExitedEvent) => void;\n /**\n * Event emitted when the player received an intention to start/resume playback.\n */\n onPlay?: (event: PlayEvent) => void;\n /**\n * Event emitted when the playback of the current media has finished.\n */\n onPlaybackFinished?: (event: PlaybackFinishedEvent) => void;\n /**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\n onPlaybackSpeedChanged?: (event: PlaybackSpeedChangedEvent) => void;\n /**\n * Event emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\n onPlayerActive?: (event: PlayerActiveEvent) => void;\n /**\n * Event Emitted when a player error occurred.\n */\n onPlayerError?: (event: PlayerErrorEvent) => void;\n /**\n * Event emitted when a player warning occurred.\n */\n onPlayerWarning?: (event: PlayerWarningEvent) => void;\n /**\n * Emitted when playback has started.\n */\n onPlaying?: (event: PlayingEvent) => void;\n /**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\n onReady?: (event: ReadyEvent) => void;\n /**\n * Event emitted when the player is about to seek to a new position.\n * Only applies to VoD streams.\n */\n onSeek?: (event: SeekEvent) => void;\n /**\n * Event emitted when seeking has finished and data to continue playback is available.\n * Only applies to VoD streams.\n */\n onSeeked?: (event: SeekedEvent) => void;\n /**\n * Event mitted when the player starts time shifting.\n * Only applies to live streams.\n */\n onTimeShift?: (event: TimeShiftEvent) => void;\n /**\n * Event emitted when time shifting has finished and data is available to continue playback.\n * Only applies to live streams.\n */\n onTimeShifted?: (event: TimeShiftedEvent) => void;\n /**\n * Event emitted when the player begins to stall and to buffer due to an empty buffer.\n */\n onStallStarted?: (event: StallStartedEvent) => void;\n /**\n * Event emitted when the player ends stalling, due to enough data in the buffer.\n */\n onStallEnded?: (event: StallEndedEvent) => void;\n /**\n * Event emitted when a source error occurred.\n */\n onSourceError?: (event: SourceErrorEvent) => void;\n /**\n * Event emitted when a new source loading has started.\n */\n onSourceLoad?: (event: SourceLoadEvent) => void;\n /**\n * Event emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * `ReadyEvent` indicates the player is ready for immediate playback.\n */\n onSourceLoaded?: (event: SourceLoadedEvent) => void;\n /**\n * Event emitted when the current source has been unloaded.\n */\n onSourceUnloaded?: (event: SourceUnloadedEvent) => void;\n /**\n * Event emitted when a source warning occurred.\n */\n onSourceWarning?: (event: SourceWarningEvent) => void;\n /**\n * Event emitted when a new audio track is added to the player.\n */\n onAudioAdded?: (event: AudioAddedEvent) => void;\n /**\n * Event emitted when the player's selected audio track has changed.\n */\n onAudioChanged?: (event: AudioChangedEvent) => void;\n /**\n * Event emitted when an audio track is removed from the player.\n */\n onAudioRemoved?: (event: AudioRemovedEvent) => void;\n /**\n * Event emitted when a new subtitle track is added to the player.\n */\n onSubtitleAdded?: (event: SubtitleAddedEvent) => void;\n /**\n * Event emitted when the player's selected subtitle track has changed.\n */\n onSubtitleChanged?: (event: SubtitleChangedEvent) => void;\n /**\n * Event emitted when a subtitle track is removed from the player.\n */\n onSubtitleRemoved?: (event: SubtitleRemovedEvent) => void;\n /**\n * Event emitted when the current playback time has changed.\n */\n onTimeChanged?: (event: TimeChangedEvent) => void;\n /**\n * Emitted when the player is unmuted.\n */\n onUnmuted?: (event: UnmutedEvent) => void;\n /**\n * Emitted when current video download quality has changed.\n */\n onVideoDownloadQualityChanged?: (\n event: VideoDownloadQualityChangedEvent\n ) => void;\n /**\n * Emitted when the current video playback quality has changed.\n */\n onVideoPlaybackQualityChanged?: (\n event: VideoPlaybackQualityChangedEvent\n ) => void;\n /**\n * Emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\n onFairplayLicenseAcquired?: (event: FairplayLicenseAcquiredEvent) => void;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/components/PlayerView/events.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AdBreakFinishedEvent,\n AdBreakStartedEvent,\n AdClickedEvent,\n AdErrorEvent,\n AdFinishedEvent,\n AdManifestLoadedEvent,\n AdManifestLoadEvent,\n AdQuartileEvent,\n AdScheduledEvent,\n AdSkippedEvent,\n AdStartedEvent,\n CastAvailableEvent,\n CastPausedEvent,\n CastPlaybackFinishedEvent,\n CastPlayingEvent,\n CastStartedEvent,\n CastStartEvent,\n CastStoppedEvent,\n CastTimeUpdatedEvent,\n CastWaitingForDeviceEvent,\n DestroyEvent,\n Event,\n FullscreenEnabledEvent,\n FullscreenDisabledEvent,\n FullscreenEnterEvent,\n FullscreenExitEvent,\n MutedEvent,\n PausedEvent,\n PictureInPictureAvailabilityChangedEvent,\n PictureInPictureEnterEvent,\n PictureInPictureEnteredEvent,\n PictureInPictureExitEvent,\n PictureInPictureExitedEvent,\n PlaybackFinishedEvent,\n PlayerActiveEvent,\n PlayerErrorEvent,\n PlayerWarningEvent,\n PlayEvent,\n PlayingEvent,\n ReadyEvent,\n SeekedEvent,\n SeekEvent,\n TimeShiftEvent,\n TimeShiftedEvent,\n StallStartedEvent,\n StallEndedEvent,\n SourceErrorEvent,\n SourceLoadedEvent,\n SourceLoadEvent,\n SourceUnloadedEvent,\n SourceWarningEvent,\n AudioAddedEvent,\n AudioChangedEvent,\n AudioRemovedEvent,\n SubtitleAddedEvent,\n SubtitleChangedEvent,\n SubtitleRemovedEvent,\n TimeChangedEvent,\n UnmutedEvent,\n VideoPlaybackQualityChangedEvent,\n DownloadFinishedEvent,\n VideoDownloadQualityChangedEvent,\n PlaybackSpeedChangedEvent,\n CueEnterEvent,\n CueExitEvent,\n MetadataParsedEvent,\n MetadataEvent,\n FairplayLicenseAcquiredEvent,\n} from '../../events';\n\n/**\n * Event props for `PlayerView`.\n *\n * Note the events of `PlayerView` are simply a proxy over\n * the events from `NativePlayerView` just removing RN's bubbling data.\n */\nexport type PlayerViewEvents = {\n /**\n * Event emitted when an ad break has finished.\n */\n onAdBreakFinished?: (event: AdBreakFinishedEvent) => void;\n /**\n * Event emitted when an ad break has started.\n */\n onAdBreakStarted?: (event: AdBreakStartedEvent) => void;\n /**\n * Event emitted when an ad has been clicked.\n */\n onAdClicked?: (event: AdClickedEvent) => void;\n /**\n * Event emitted when an ad error has occurred.\n */\n onAdError?: (event: AdErrorEvent) => void;\n /**\n * Event emitted when an ad has finished.\n */\n onAdFinished?: (event: AdFinishedEvent) => void;\n /**\n * Event emitted when an ad manifest starts loading.\n */\n onAdManifestLoad?: (event: AdManifestLoadEvent) => void;\n /**\n * Event emitted when an ad manifest has been loaded.\n */\n onAdManifestLoaded?: (event: AdManifestLoadedEvent) => void;\n /**\n * Event emitted when an ad quartile has been reached.\n */\n onAdQuartile?: (event: AdQuartileEvent) => void;\n /**\n * Event emitted when an ad has been scheduled.\n */\n onAdScheduled?: (event: AdScheduledEvent) => void;\n /**\n * Event emitted when an ad has been skipped.\n */\n onAdSkipped?: (event: AdSkippedEvent) => void;\n /**\n * Event emitted when an ad has started.\n */\n onAdStarted?: (event: AdStartedEvent) => void;\n /**\n * Event emitted when casting to a cast-compatible device is available.\n *\n * @platform iOS, Android\n */\n onCastAvailable?: (event: CastAvailableEvent) => void;\n /**\n * Event emitted when the playback on a cast-compatible device was paused.\n *\n * @platform iOS, Android\n */\n onCastPaused?: (event: CastPausedEvent) => void;\n /**\n * Event emitted when the playback on a cast-compatible device has finished.\n *\n * @platform iOS, Android\n */\n onCastPlaybackFinished?: (event: CastPlaybackFinishedEvent) => void;\n /**\n * Event emitted when playback on a cast-compatible device has started.\n *\n * @platform iOS, Android\n */\n onCastPlaying?: (event: CastPlayingEvent) => void;\n /**\n * Event emitted when the cast app is launched successfully.\n *\n * @platform iOS, Android\n */\n onCastStarted?: (event: CastStartedEvent) => void;\n /**\n * Event emitted when casting is initiated, but the user still needs to choose which device should be used.\n *\n * @platform iOS, Android\n */\n onCastStart?: (event: CastStartEvent) => void;\n /**\n * Event emitted when casting to a cast-compatible device is stopped.\n *\n * @platform iOS, Android\n */\n onCastStopped?: (event: CastStoppedEvent) => void;\n /**\n * Event emitted when the time update from the currently used cast-compatible device is received.\n *\n * @platform iOS, Android\n */\n onCastTimeUpdated?: (event: CastTimeUpdatedEvent) => void;\n /**\n * Event emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n *\n * @platform iOS, Android\n */\n onCastWaitingForDevice?: (event: CastWaitingForDeviceEvent) => void;\n /**\n * Event emitted when a subtitle entry transitions into the active status.\n */\n onCueEnter?: (event: CueEnterEvent) => void;\n /**\n * Event emitted when an active subtitle entry transitions into the inactive status.\n */\n onCueExit?: (event: CueExitEvent) => void;\n /**\n * Event emitted when the player is destroyed.\n */\n onDestroy?: (event: DestroyEvent) => void;\n /**\n * Emitted when a download was finished.\n */\n onDownloadFinished?: (event: DownloadFinishedEvent) => void;\n /**\n * All events emitted by the player.\n */\n onEvent?: (event: Event) => void;\n /**\n * Event emitted when fullscreen mode has been enabled.\n *\n * @platform iOS, Android\n */\n onFullscreenEnabled?: (event: FullscreenEnabledEvent) => void;\n /**\n * Event emitted when fullscreen mode has been disabled.\n *\n * @platform iOS, Android\n */\n onFullscreenDisabled?: (event: FullscreenDisabledEvent) => void;\n /**\n * Event emitted when fullscreen mode has been entered.\n *\n * @platform iOS, Android\n */\n onFullscreenEnter?: (event: FullscreenEnterEvent) => void;\n /**\n * Event emitted when fullscreen mode has been exited.\n *\n * @platform iOS, Android\n */\n onFullscreenExit?: (event: FullscreenExitEvent) => void;\n /**\n * Emitted when metadata is encountered during playback.\n */\n onMetadata?: (event: MetadataEvent) => void;\n /**\n * Emitted when metadata is first seen and parsed.\n */\n onMetadataParsed?: (event: MetadataParsedEvent) => void;\n /**\n * Event emitted when the player has been muted.\n */\n onMuted?: (event: MutedEvent) => void;\n /**\n * Event emitted when the player has been paused.\n */\n onPaused?: (event: PausedEvent) => void;\n /**\n * Event mitted when the availability of the Picture in Picture mode changed.\n */\n onPictureInPictureAvailabilityChanged?: (\n event: PictureInPictureAvailabilityChangedEvent\n ) => void;\n /**\n * Event emitted when the player enters Picture in Picture mode.\n */\n onPictureInPictureEnter?: (event: PictureInPictureEnterEvent) => void;\n /**\n * Event emitted when the player entered Picture in Picture mode.\n */\n onPictureInPictureEntered?: (event: PictureInPictureEnteredEvent) => void;\n /**\n * Event emitted when the player exits Picture in Picture mode.\n */\n onPictureInPictureExit?: (event: PictureInPictureExitEvent) => void;\n /**\n * Event emitted when the player exited Picture in Picture mode.\n */\n onPictureInPictureExited?: (event: PictureInPictureExitedEvent) => void;\n /**\n * Event emitted when the player received an intention to start/resume playback.\n */\n onPlay?: (event: PlayEvent) => void;\n /**\n * Event emitted when the playback of the current media has finished.\n */\n onPlaybackFinished?: (event: PlaybackFinishedEvent) => void;\n /**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\n onPlaybackSpeedChanged?: (event: PlaybackSpeedChangedEvent) => void;\n /**\n * Event emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\n onPlayerActive?: (event: PlayerActiveEvent) => void;\n /**\n * Event Emitted when a player error occurred.\n */\n onPlayerError?: (event: PlayerErrorEvent) => void;\n /**\n * Event emitted when a player warning occurred.\n */\n onPlayerWarning?: (event: PlayerWarningEvent) => void;\n /**\n * Emitted when playback has started.\n */\n onPlaying?: (event: PlayingEvent) => void;\n /**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\n onReady?: (event: ReadyEvent) => void;\n /**\n * Event emitted when the player is about to seek to a new position.\n * Only applies to VoD streams.\n */\n onSeek?: (event: SeekEvent) => void;\n /**\n * Event emitted when seeking has finished and data to continue playback is available.\n * Only applies to VoD streams.\n */\n onSeeked?: (event: SeekedEvent) => void;\n /**\n * Event mitted when the player starts time shifting.\n * Only applies to live streams.\n */\n onTimeShift?: (event: TimeShiftEvent) => void;\n /**\n * Event emitted when time shifting has finished and data is available to continue playback.\n * Only applies to live streams.\n */\n onTimeShifted?: (event: TimeShiftedEvent) => void;\n /**\n * Event emitted when the player begins to stall and to buffer due to an empty buffer.\n */\n onStallStarted?: (event: StallStartedEvent) => void;\n /**\n * Event emitted when the player ends stalling, due to enough data in the buffer.\n */\n onStallEnded?: (event: StallEndedEvent) => void;\n /**\n * Event emitted when a source error occurred.\n */\n onSourceError?: (event: SourceErrorEvent) => void;\n /**\n * Event emitted when a new source loading has started.\n */\n onSourceLoad?: (event: SourceLoadEvent) => void;\n /**\n * Event emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * `ReadyEvent` indicates the player is ready for immediate playback.\n */\n onSourceLoaded?: (event: SourceLoadedEvent) => void;\n /**\n * Event emitted when the current source has been unloaded.\n */\n onSourceUnloaded?: (event: SourceUnloadedEvent) => void;\n /**\n * Event emitted when a source warning occurred.\n */\n onSourceWarning?: (event: SourceWarningEvent) => void;\n /**\n * Event emitted when a new audio track is added to the player.\n */\n onAudioAdded?: (event: AudioAddedEvent) => void;\n /**\n * Event emitted when the player's selected audio track has changed.\n */\n onAudioChanged?: (event: AudioChangedEvent) => void;\n /**\n * Event emitted when an audio track is removed from the player.\n */\n onAudioRemoved?: (event: AudioRemovedEvent) => void;\n /**\n * Event emitted when a new subtitle track is added to the player.\n */\n onSubtitleAdded?: (event: SubtitleAddedEvent) => void;\n /**\n * Event emitted when the player's selected subtitle track has changed.\n */\n onSubtitleChanged?: (event: SubtitleChangedEvent) => void;\n /**\n * Event emitted when a subtitle track is removed from the player.\n */\n onSubtitleRemoved?: (event: SubtitleRemovedEvent) => void;\n /**\n * Event emitted when the current playback time has changed.\n */\n onTimeChanged?: (event: TimeChangedEvent) => void;\n /**\n * Emitted when the player is unmuted.\n */\n onUnmuted?: (event: UnmutedEvent) => void;\n /**\n * Emitted when current video download quality has changed.\n */\n onVideoDownloadQualityChanged?: (\n event: VideoDownloadQualityChangedEvent\n ) => void;\n /**\n * Emitted when the current video playback quality has changed.\n */\n onVideoPlaybackQualityChanged?: (\n event: VideoPlaybackQualityChangedEvent\n ) => void;\n /**\n * Emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\n onFairplayLicenseAcquired?: (event: FairplayLicenseAcquiredEvent) => void;\n};\n"]}
|
|
@@ -246,8 +246,6 @@ export type NativePlayerViewEvents = {
|
|
|
246
246
|
}) => void;
|
|
247
247
|
/**
|
|
248
248
|
* Event emitted when the player entered Picture in Picture mode.
|
|
249
|
-
*
|
|
250
|
-
* @platform iOS
|
|
251
249
|
*/
|
|
252
250
|
onBmpPictureInPictureEntered?: (event: {
|
|
253
251
|
nativeEvent: PictureInPictureEnteredEvent;
|
|
@@ -260,8 +258,6 @@ export type NativePlayerViewEvents = {
|
|
|
260
258
|
}) => void;
|
|
261
259
|
/**
|
|
262
260
|
* Event emitted when the player exited Picture in Picture mode.
|
|
263
|
-
*
|
|
264
|
-
* @platform iOS
|
|
265
261
|
*/
|
|
266
262
|
onBmpPictureInPictureExited?: (event: {
|
|
267
263
|
nativeEvent: PictureInPictureExitedEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeEvents.d.ts","sourceRoot":"","sources":["../../../src/components/PlayerView/nativeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,KAAK,EACL,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,wCAAwC,EACxC,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,gCAAgC,EAChC,qBAAqB,EACrB,gCAAgC,EAChC,yBAAyB,EACzB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EA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ACjD,WAAW,EAAE,wCAAwC,CAAC;KACvD,KAAK,IAAI,CAAC;IACX;;OAEG;IACH,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE;QACnC,WAAW,EAAE,0BAA0B,CAAC;KACzC,KAAK,IAAI,CAAC;IACX
|
|
1
|
+
{"version":3,"file":"nativeEvents.d.ts","sourceRoot":"","sources":["../../../src/components/PlayerView/nativeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,KAAK,EACL,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,wCAAwC,EACxC,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,gCAAgC,EAChC,qBAAqB,EACrB,gCAAgC,EAChC,yBAAyB,EACzB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,M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gCAAgC,CAAC;KAC/C,KAAK,IAAI,CAAC;IACX;;OAEG;IACH,gCAAgC,CAAC,EAAE,CAAC,KAAK,EAAE;QACzC,WAAW,EAAE,gCAAgC,CAAC;KAC/C,KAAK,IAAI,CAAC;IACX;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE;QACrC,WAAW,EAAE,4BAA4B,CAAC;KAC3C,KAAK,IAAI,CAAC;CACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeEvents.js","sourceRoot":"","sources":["../../../src/components/PlayerView/nativeEvents.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AdBreakFinishedEvent,\n AdBreakStartedEvent,\n AdClickedEvent,\n AdErrorEvent,\n AdFinishedEvent,\n AdManifestLoadedEvent,\n AdManifestLoadEvent,\n AdQuartileEvent,\n AdScheduledEvent,\n AdSkippedEvent,\n AdStartedEvent,\n CastAvailableEvent,\n CastPausedEvent,\n CastPlaybackFinishedEvent,\n CastPlayingEvent,\n CastStartedEvent,\n CastStartEvent,\n CastStoppedEvent,\n CastTimeUpdatedEvent,\n CastWaitingForDeviceEvent,\n DestroyEvent,\n Event,\n FullscreenEnabledEvent,\n FullscreenDisabledEvent,\n FullscreenEnterEvent,\n FullscreenExitEvent,\n MutedEvent,\n PausedEvent,\n PictureInPictureAvailabilityChangedEvent,\n PictureInPictureEnterEvent,\n PictureInPictureEnteredEvent,\n PictureInPictureExitEvent,\n PictureInPictureExitedEvent,\n PlaybackFinishedEvent,\n PlayerActiveEvent,\n PlayerErrorEvent,\n PlayerWarningEvent,\n PlayEvent,\n PlayingEvent,\n ReadyEvent,\n SeekedEvent,\n SeekEvent,\n TimeShiftEvent,\n TimeShiftedEvent,\n StallStartedEvent,\n StallEndedEvent,\n SourceErrorEvent,\n SourceLoadedEvent,\n SourceLoadEvent,\n SourceUnloadedEvent,\n SourceWarningEvent,\n AudioAddedEvent,\n AudioChangedEvent,\n AudioRemovedEvent,\n SubtitleAddedEvent,\n SubtitleChangedEvent,\n SubtitleRemovedEvent,\n TimeChangedEvent,\n UnmutedEvent,\n VideoPlaybackQualityChangedEvent,\n DownloadFinishedEvent,\n VideoDownloadQualityChangedEvent,\n PlaybackSpeedChangedEvent,\n CueEnterEvent,\n CueExitEvent,\n MetadataEvent,\n MetadataParsedEvent,\n FairplayLicenseAcquiredEvent,\n} from '../../events';\n\n/**\n * Event props for `NativePlayerView`.\n */\nexport type NativePlayerViewEvents = {\n /**\n * Event emitted when an ad break has finished.\n */\n onBmpAdBreakFinished?: (event: { nativeEvent: AdBreakFinishedEvent }) => void;\n /**\n * Event emitted when an ad break has started.\n */\n onBmpAdBreakStarted?: (event: { nativeEvent: AdBreakStartedEvent }) => void;\n /**\n * Event emitted when an ad has been clicked.\n */\n onBmpAdClicked?: (event: { nativeEvent: AdClickedEvent }) => void;\n /**\n * Event emitted when an ad error has occurred.\n */\n onBmpAdError?: (event: { nativeEvent: AdErrorEvent }) => void;\n /**\n * Event emitted when an ad has finished.\n */\n onBmpAdFinished?: (event: { nativeEvent: AdFinishedEvent }) => void;\n /**\n * Event emitted when an ad manifest starts loading.\n */\n onBmpAdManifestLoad?: (event: { nativeEvent: AdManifestLoadEvent }) => void;\n /**\n * Event emitted when an ad manifest has been loaded.\n */\n onBmpAdManifestLoaded?: (event: {\n nativeEvent: AdManifestLoadedEvent;\n }) => void;\n /**\n * Event emitted when an ad quartile has been reached.\n */\n onBmpAdQuartile?: (event: { nativeEvent: AdQuartileEvent }) => void;\n /**\n * Event emitted when an ad has been scheduled.\n */\n onBmpAdScheduled?: (event: { nativeEvent: AdScheduledEvent }) => void;\n /**\n * Event emitted when an ad has been skipped.\n */\n onBmpAdSkipped?: (event: { nativeEvent: AdSkippedEvent }) => void;\n /**\n * Event emitted when an ad has started.\n */\n onBmpAdStarted?: (event: { nativeEvent: AdStartedEvent }) => void;\n /**\n * Event emitted when casting to a cast-compatible device is available.\n *\n * @platform iOS, Android\n */\n onBmpCastAvailable?: (event: { nativeEvent: CastAvailableEvent }) => void;\n /**\n * Event emitted when the playback on a cast-compatible device was paused.\n *\n * @platform iOS, Android\n */\n onBmpCastPaused?: (event: { nativeEvent: CastPausedEvent }) => void;\n /**\n * Event emitted when the playback on a cast-compatible device has finished.\n *\n * @platform iOS, Android\n */\n onBmpCastPlaybackFinished?: (event: {\n nativeEvent: CastPlaybackFinishedEvent;\n }) => void;\n /**\n * Event emitted when playback on a cast-compatible device has started.\n *\n * @platform iOS, Android\n */\n onBmpCastPlaying?: (event: { nativeEvent: CastPlayingEvent }) => void;\n /**\n * Event emitted when the cast app is launched successfully.\n *\n * @platform iOS, Android\n */\n onBmpCastStarted?: (event: { nativeEvent: CastStartedEvent }) => void;\n /**\n * Event emitted when casting is initiated, but the user still needs to choose which device should be used.\n *\n * @platform iOS, Android\n */\n onBmpCastStart?: (event: { nativeEvent: CastStartEvent }) => void;\n /**\n * Event emitted when casting to a cast-compatible device is stopped.\n *\n * @platform iOS, Android\n */\n onBmpCastStopped?: (event: { nativeEvent: CastStoppedEvent }) => void;\n /**\n * Event emitted when the time update from the currently used cast-compatible device is received.\n *\n * @platform iOS, Android\n */\n onBmpCastTimeUpdated?: (event: { nativeEvent: CastTimeUpdatedEvent }) => void;\n /**\n * Event emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n *\n * @platform iOS, Android\n */\n onBmpCastWaitingForDevice?: (event: {\n nativeEvent: CastWaitingForDeviceEvent;\n }) => void;\n /**\n * Event emitted when a subtitle entry transitions into the active status.\n */\n onBmpCueEnter?: (event: { nativeEvent: CueEnterEvent }) => void;\n /**\n * Event emitted when an active subtitle entry transitions into the inactive status.\n */\n onBmpCueExit?: (event: { nativeEvent: CueExitEvent }) => void;\n /**\n * Event emitted when the player is destroyed.\n */\n onBmpDestroy?: (event: { nativeEvent: DestroyEvent }) => void;\n /**\n * Emitted when a download was finished.\n */\n onBmpDownloadFinished?: (event: {\n nativeEvent: DownloadFinishedEvent;\n }) => void;\n /**\n * All events emitted by the player.\n */\n onBmpEvent?: (event: { nativeEvent: Event }) => void;\n /**\n * Event emitted when fullscreen mode has been enabled.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenEnabled?: (event: {\n nativeEvent: FullscreenEnabledEvent;\n }) => void;\n /**\n * Event emitted when fullscreen mode has been disabled.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenDisabled?: (event: {\n nativeEvent: FullscreenDisabledEvent;\n }) => void;\n /**\n * Event emitted when fullscreen mode has been entered.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenEnter?: (event: { nativeEvent: FullscreenEnterEvent }) => void;\n /**\n * Event emitted when fullscreen mode has been exited.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenExit?: (event: { nativeEvent: FullscreenExitEvent }) => void;\n /**\n * Event emitted when metadata is encountered during playback.\n *\n * @platform iOS, Android\n */\n onBmpMetadata?: (event: { nativeEvent: MetadataEvent }) => void;\n /**\n * Event emitted when metadata is first seen and parsed.\n *\n * @platform iOS, Android\n */\n onBmpMetadataParsed?: (event: { nativeEvent: MetadataParsedEvent }) => void;\n /**\n * Event emitted when the player has been muted.\n */\n onBmpMuted?: (event: { nativeEvent: MutedEvent }) => void;\n /**\n * Event emitted when the player has been paused.\n */\n onBmpPaused?: (event: { nativeEvent: PausedEvent }) => void;\n /**\n * Event mitted when the availability of the Picture in Picture mode changed.\n */\n onBmpPictureInPictureAvailabilityChanged?: (event: {\n nativeEvent: PictureInPictureAvailabilityChangedEvent;\n }) => void;\n /**\n * Event emitted when the player enters Picture in Picture mode.\n */\n onBmpPictureInPictureEnter?: (event: {\n nativeEvent: PictureInPictureEnterEvent;\n }) => void;\n /**\n * Event emitted when the player entered Picture in Picture mode.\n *\n * @platform iOS\n */\n onBmpPictureInPictureEntered?: (event: {\n nativeEvent: PictureInPictureEnteredEvent;\n }) => void;\n /**\n * Event emitted when the player exits Picture in Picture mode.\n */\n onBmpPictureInPictureExit?: (event: {\n nativeEvent: PictureInPictureExitEvent;\n }) => void;\n /**\n * Event emitted when the player exited Picture in Picture mode.\n *\n * @platform iOS\n */\n onBmpPictureInPictureExited?: (event: {\n nativeEvent: PictureInPictureExitedEvent;\n }) => void;\n /**\n * Event emitted when the player received an intention to start/resume playback.\n */\n onBmpPlay?: (event: { nativeEvent: PlayEvent }) => void;\n /**\n * Event emitted when the playback of the current media has finished.\n */\n onBmpPlaybackFinished?: (event: {\n nativeEvent: PlaybackFinishedEvent;\n }) => void;\n /**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\n onBmpPlaybackSpeedChanged?: (event: {\n nativeEvent: PlaybackSpeedChangedEvent;\n }) => void;\n /**\n * Event emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\n onBmpPlayerActive?: (event: { nativeEvent: PlayerActiveEvent }) => void;\n /**\n * Event Emitted when a player error occurred.\n */\n onBmpPlayerError?: (event: { nativeEvent: PlayerErrorEvent }) => void;\n /**\n * Event emitted when a player warning occurred.\n */\n onBmpPlayerWarning?: (event: { nativeEvent: PlayerWarningEvent }) => void;\n /**\n * Emitted when playback has started.\n */\n onBmpPlaying?: (event: { nativeEvent: PlayingEvent }) => void;\n /**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\n onBmpReady?: (event: { nativeEvent: ReadyEvent }) => void;\n /**\n * Event emitted when the player is about to seek to a new position.\n * Only applies to VoD streams.\n */\n onBmpSeek?: (event: { nativeEvent: SeekEvent }) => void;\n /**\n * Event emitted when seeking has finished and data to continue playback is available.\n * Only applies to VoD streams.\n */\n onBmpSeeked?: (event: { nativeEvent: SeekedEvent }) => void;\n /**\n * Event mitted when the player starts time shifting.\n * Only applies to live streams.\n */\n onBmpTimeShift?: (event: { nativeEvent: TimeShiftEvent }) => void;\n /**\n * Event emitted when time shifting has finished and data is available to continue playback.\n * Only applies to live streams.\n */\n onBmpTimeShifted?: (event: { nativeEvent: TimeShiftedEvent }) => void;\n /**\n * Event emitted when the player begins to stall and to buffer due to an empty buffer.\n */\n onBmpStallStarted?: (event: { nativeEvent: StallStartedEvent }) => void;\n /**\n * Event emitted when the player ends stalling, due to enough data in the buffer.\n */\n onBmpStallEnded?: (event: { nativeEvent: StallEndedEvent }) => void;\n /**\n * Event emitted when a source error occurred.\n */\n onBmpSourceError?: (event: { nativeEvent: SourceErrorEvent }) => void;\n /**\n * Event emitted when a new source loading has started.\n */\n onBmpSourceLoad?: (event: { nativeEvent: SourceLoadEvent }) => void;\n /**\n * Event emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * `ReadyEvent` indicates the player is ready for immediate playback.\n */\n onBmpSourceLoaded?: (event: { nativeEvent: SourceLoadedEvent }) => void;\n /**\n * Event emitted when the current source has been unloaded.\n */\n onBmpSourceUnloaded?: (event: { nativeEvent: SourceUnloadedEvent }) => void;\n /**\n * Event emitted when a source warning occurred.\n */\n onBmpSourceWarning?: (event: { nativeEvent: SourceWarningEvent }) => void;\n /**\n * Event emitted when a new audio track is added to the player.\n */\n onBmpAudioAdded?: (event: { nativeEvent: AudioAddedEvent }) => void;\n /**\n * Event emitted when the player's selected audio track has changed.\n */\n onBmpAudioChanged?: (event: { nativeEvent: AudioChangedEvent }) => void;\n /**\n * Event emitted when an audio track is removed from the player.\n */\n onBmpAudioRemoved?: (event: { nativeEvent: AudioRemovedEvent }) => void;\n /**\n * Event emitted when a new subtitle track is added to the player.\n */\n onBmpSubtitleAdded?: (event: { nativeEvent: SubtitleAddedEvent }) => void;\n /**\n * Event emitted when the player's selected subtitle track has changed.\n */\n onBmpSubtitleChanged?: (event: { nativeEvent: SubtitleChangedEvent }) => void;\n /**\n * Event emitted when a subtitle track is removed from the player.\n */\n onBmpSubtitleRemoved?: (event: { nativeEvent: SubtitleRemovedEvent }) => void;\n /**\n * Event emitted when the current playback time has changed.\n */\n onBmpTimeChanged?: (event: { nativeEvent: TimeChangedEvent }) => void;\n /**\n * Emitted when the player is unmuted.\n */\n onBmpUnmuted?: (event: { nativeEvent: UnmutedEvent }) => void;\n /**\n * Emitted when current video download quality has changed.\n */\n onBmpVideoDownloadQualityChanged?: (event: {\n nativeEvent: VideoDownloadQualityChangedEvent;\n }) => void;\n /**\n * Emitted when the current video playback quality has changed.\n */\n onBmpVideoPlaybackQualityChanged?: (event: {\n nativeEvent: VideoPlaybackQualityChangedEvent;\n }) => void;\n /**\n * Event emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\n onBmpFairplayLicenseAcquired?: (event: {\n nativeEvent: FairplayLicenseAcquiredEvent;\n }) => void;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"nativeEvents.js","sourceRoot":"","sources":["../../../src/components/PlayerView/nativeEvents.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AdBreakFinishedEvent,\n AdBreakStartedEvent,\n AdClickedEvent,\n AdErrorEvent,\n AdFinishedEvent,\n AdManifestLoadedEvent,\n AdManifestLoadEvent,\n AdQuartileEvent,\n AdScheduledEvent,\n AdSkippedEvent,\n AdStartedEvent,\n CastAvailableEvent,\n CastPausedEvent,\n CastPlaybackFinishedEvent,\n CastPlayingEvent,\n CastStartedEvent,\n CastStartEvent,\n CastStoppedEvent,\n CastTimeUpdatedEvent,\n CastWaitingForDeviceEvent,\n DestroyEvent,\n Event,\n FullscreenEnabledEvent,\n FullscreenDisabledEvent,\n FullscreenEnterEvent,\n FullscreenExitEvent,\n MutedEvent,\n PausedEvent,\n PictureInPictureAvailabilityChangedEvent,\n PictureInPictureEnterEvent,\n PictureInPictureEnteredEvent,\n PictureInPictureExitEvent,\n PictureInPictureExitedEvent,\n PlaybackFinishedEvent,\n PlayerActiveEvent,\n PlayerErrorEvent,\n PlayerWarningEvent,\n PlayEvent,\n PlayingEvent,\n ReadyEvent,\n SeekedEvent,\n SeekEvent,\n TimeShiftEvent,\n TimeShiftedEvent,\n StallStartedEvent,\n StallEndedEvent,\n SourceErrorEvent,\n SourceLoadedEvent,\n SourceLoadEvent,\n SourceUnloadedEvent,\n SourceWarningEvent,\n AudioAddedEvent,\n AudioChangedEvent,\n AudioRemovedEvent,\n SubtitleAddedEvent,\n SubtitleChangedEvent,\n SubtitleRemovedEvent,\n TimeChangedEvent,\n UnmutedEvent,\n VideoPlaybackQualityChangedEvent,\n DownloadFinishedEvent,\n VideoDownloadQualityChangedEvent,\n PlaybackSpeedChangedEvent,\n CueEnterEvent,\n CueExitEvent,\n MetadataEvent,\n MetadataParsedEvent,\n FairplayLicenseAcquiredEvent,\n} from '../../events';\n\n/**\n * Event props for `NativePlayerView`.\n */\nexport type NativePlayerViewEvents = {\n /**\n * Event emitted when an ad break has finished.\n */\n onBmpAdBreakFinished?: (event: { nativeEvent: AdBreakFinishedEvent }) => void;\n /**\n * Event emitted when an ad break has started.\n */\n onBmpAdBreakStarted?: (event: { nativeEvent: AdBreakStartedEvent }) => void;\n /**\n * Event emitted when an ad has been clicked.\n */\n onBmpAdClicked?: (event: { nativeEvent: AdClickedEvent }) => void;\n /**\n * Event emitted when an ad error has occurred.\n */\n onBmpAdError?: (event: { nativeEvent: AdErrorEvent }) => void;\n /**\n * Event emitted when an ad has finished.\n */\n onBmpAdFinished?: (event: { nativeEvent: AdFinishedEvent }) => void;\n /**\n * Event emitted when an ad manifest starts loading.\n */\n onBmpAdManifestLoad?: (event: { nativeEvent: AdManifestLoadEvent }) => void;\n /**\n * Event emitted when an ad manifest has been loaded.\n */\n onBmpAdManifestLoaded?: (event: {\n nativeEvent: AdManifestLoadedEvent;\n }) => void;\n /**\n * Event emitted when an ad quartile has been reached.\n */\n onBmpAdQuartile?: (event: { nativeEvent: AdQuartileEvent }) => void;\n /**\n * Event emitted when an ad has been scheduled.\n */\n onBmpAdScheduled?: (event: { nativeEvent: AdScheduledEvent }) => void;\n /**\n * Event emitted when an ad has been skipped.\n */\n onBmpAdSkipped?: (event: { nativeEvent: AdSkippedEvent }) => void;\n /**\n * Event emitted when an ad has started.\n */\n onBmpAdStarted?: (event: { nativeEvent: AdStartedEvent }) => void;\n /**\n * Event emitted when casting to a cast-compatible device is available.\n *\n * @platform iOS, Android\n */\n onBmpCastAvailable?: (event: { nativeEvent: CastAvailableEvent }) => void;\n /**\n * Event emitted when the playback on a cast-compatible device was paused.\n *\n * @platform iOS, Android\n */\n onBmpCastPaused?: (event: { nativeEvent: CastPausedEvent }) => void;\n /**\n * Event emitted when the playback on a cast-compatible device has finished.\n *\n * @platform iOS, Android\n */\n onBmpCastPlaybackFinished?: (event: {\n nativeEvent: CastPlaybackFinishedEvent;\n }) => void;\n /**\n * Event emitted when playback on a cast-compatible device has started.\n *\n * @platform iOS, Android\n */\n onBmpCastPlaying?: (event: { nativeEvent: CastPlayingEvent }) => void;\n /**\n * Event emitted when the cast app is launched successfully.\n *\n * @platform iOS, Android\n */\n onBmpCastStarted?: (event: { nativeEvent: CastStartedEvent }) => void;\n /**\n * Event emitted when casting is initiated, but the user still needs to choose which device should be used.\n *\n * @platform iOS, Android\n */\n onBmpCastStart?: (event: { nativeEvent: CastStartEvent }) => void;\n /**\n * Event emitted when casting to a cast-compatible device is stopped.\n *\n * @platform iOS, Android\n */\n onBmpCastStopped?: (event: { nativeEvent: CastStoppedEvent }) => void;\n /**\n * Event emitted when the time update from the currently used cast-compatible device is received.\n *\n * @platform iOS, Android\n */\n onBmpCastTimeUpdated?: (event: { nativeEvent: CastTimeUpdatedEvent }) => void;\n /**\n * Event emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n *\n * @platform iOS, Android\n */\n onBmpCastWaitingForDevice?: (event: {\n nativeEvent: CastWaitingForDeviceEvent;\n }) => void;\n /**\n * Event emitted when a subtitle entry transitions into the active status.\n */\n onBmpCueEnter?: (event: { nativeEvent: CueEnterEvent }) => void;\n /**\n * Event emitted when an active subtitle entry transitions into the inactive status.\n */\n onBmpCueExit?: (event: { nativeEvent: CueExitEvent }) => void;\n /**\n * Event emitted when the player is destroyed.\n */\n onBmpDestroy?: (event: { nativeEvent: DestroyEvent }) => void;\n /**\n * Emitted when a download was finished.\n */\n onBmpDownloadFinished?: (event: {\n nativeEvent: DownloadFinishedEvent;\n }) => void;\n /**\n * All events emitted by the player.\n */\n onBmpEvent?: (event: { nativeEvent: Event }) => void;\n /**\n * Event emitted when fullscreen mode has been enabled.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenEnabled?: (event: {\n nativeEvent: FullscreenEnabledEvent;\n }) => void;\n /**\n * Event emitted when fullscreen mode has been disabled.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenDisabled?: (event: {\n nativeEvent: FullscreenDisabledEvent;\n }) => void;\n /**\n * Event emitted when fullscreen mode has been entered.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenEnter?: (event: { nativeEvent: FullscreenEnterEvent }) => void;\n /**\n * Event emitted when fullscreen mode has been exited.\n *\n * @platform iOS, Android\n */\n onBmpFullscreenExit?: (event: { nativeEvent: FullscreenExitEvent }) => void;\n /**\n * Event emitted when metadata is encountered during playback.\n *\n * @platform iOS, Android\n */\n onBmpMetadata?: (event: { nativeEvent: MetadataEvent }) => void;\n /**\n * Event emitted when metadata is first seen and parsed.\n *\n * @platform iOS, Android\n */\n onBmpMetadataParsed?: (event: { nativeEvent: MetadataParsedEvent }) => void;\n /**\n * Event emitted when the player has been muted.\n */\n onBmpMuted?: (event: { nativeEvent: MutedEvent }) => void;\n /**\n * Event emitted when the player has been paused.\n */\n onBmpPaused?: (event: { nativeEvent: PausedEvent }) => void;\n /**\n * Event mitted when the availability of the Picture in Picture mode changed.\n */\n onBmpPictureInPictureAvailabilityChanged?: (event: {\n nativeEvent: PictureInPictureAvailabilityChangedEvent;\n }) => void;\n /**\n * Event emitted when the player enters Picture in Picture mode.\n */\n onBmpPictureInPictureEnter?: (event: {\n nativeEvent: PictureInPictureEnterEvent;\n }) => void;\n /**\n * Event emitted when the player entered Picture in Picture mode.\n */\n onBmpPictureInPictureEntered?: (event: {\n nativeEvent: PictureInPictureEnteredEvent;\n }) => void;\n /**\n * Event emitted when the player exits Picture in Picture mode.\n */\n onBmpPictureInPictureExit?: (event: {\n nativeEvent: PictureInPictureExitEvent;\n }) => void;\n /**\n * Event emitted when the player exited Picture in Picture mode.\n */\n onBmpPictureInPictureExited?: (event: {\n nativeEvent: PictureInPictureExitedEvent;\n }) => void;\n /**\n * Event emitted when the player received an intention to start/resume playback.\n */\n onBmpPlay?: (event: { nativeEvent: PlayEvent }) => void;\n /**\n * Event emitted when the playback of the current media has finished.\n */\n onBmpPlaybackFinished?: (event: {\n nativeEvent: PlaybackFinishedEvent;\n }) => void;\n /**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\n onBmpPlaybackSpeedChanged?: (event: {\n nativeEvent: PlaybackSpeedChangedEvent;\n }) => void;\n /**\n * Event emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\n onBmpPlayerActive?: (event: { nativeEvent: PlayerActiveEvent }) => void;\n /**\n * Event Emitted when a player error occurred.\n */\n onBmpPlayerError?: (event: { nativeEvent: PlayerErrorEvent }) => void;\n /**\n * Event emitted when a player warning occurred.\n */\n onBmpPlayerWarning?: (event: { nativeEvent: PlayerWarningEvent }) => void;\n /**\n * Emitted when playback has started.\n */\n onBmpPlaying?: (event: { nativeEvent: PlayingEvent }) => void;\n /**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\n onBmpReady?: (event: { nativeEvent: ReadyEvent }) => void;\n /**\n * Event emitted when the player is about to seek to a new position.\n * Only applies to VoD streams.\n */\n onBmpSeek?: (event: { nativeEvent: SeekEvent }) => void;\n /**\n * Event emitted when seeking has finished and data to continue playback is available.\n * Only applies to VoD streams.\n */\n onBmpSeeked?: (event: { nativeEvent: SeekedEvent }) => void;\n /**\n * Event mitted when the player starts time shifting.\n * Only applies to live streams.\n */\n onBmpTimeShift?: (event: { nativeEvent: TimeShiftEvent }) => void;\n /**\n * Event emitted when time shifting has finished and data is available to continue playback.\n * Only applies to live streams.\n */\n onBmpTimeShifted?: (event: { nativeEvent: TimeShiftedEvent }) => void;\n /**\n * Event emitted when the player begins to stall and to buffer due to an empty buffer.\n */\n onBmpStallStarted?: (event: { nativeEvent: StallStartedEvent }) => void;\n /**\n * Event emitted when the player ends stalling, due to enough data in the buffer.\n */\n onBmpStallEnded?: (event: { nativeEvent: StallEndedEvent }) => void;\n /**\n * Event emitted when a source error occurred.\n */\n onBmpSourceError?: (event: { nativeEvent: SourceErrorEvent }) => void;\n /**\n * Event emitted when a new source loading has started.\n */\n onBmpSourceLoad?: (event: { nativeEvent: SourceLoadEvent }) => void;\n /**\n * Event emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * `ReadyEvent` indicates the player is ready for immediate playback.\n */\n onBmpSourceLoaded?: (event: { nativeEvent: SourceLoadedEvent }) => void;\n /**\n * Event emitted when the current source has been unloaded.\n */\n onBmpSourceUnloaded?: (event: { nativeEvent: SourceUnloadedEvent }) => void;\n /**\n * Event emitted when a source warning occurred.\n */\n onBmpSourceWarning?: (event: { nativeEvent: SourceWarningEvent }) => void;\n /**\n * Event emitted when a new audio track is added to the player.\n */\n onBmpAudioAdded?: (event: { nativeEvent: AudioAddedEvent }) => void;\n /**\n * Event emitted when the player's selected audio track has changed.\n */\n onBmpAudioChanged?: (event: { nativeEvent: AudioChangedEvent }) => void;\n /**\n * Event emitted when an audio track is removed from the player.\n */\n onBmpAudioRemoved?: (event: { nativeEvent: AudioRemovedEvent }) => void;\n /**\n * Event emitted when a new subtitle track is added to the player.\n */\n onBmpSubtitleAdded?: (event: { nativeEvent: SubtitleAddedEvent }) => void;\n /**\n * Event emitted when the player's selected subtitle track has changed.\n */\n onBmpSubtitleChanged?: (event: { nativeEvent: SubtitleChangedEvent }) => void;\n /**\n * Event emitted when a subtitle track is removed from the player.\n */\n onBmpSubtitleRemoved?: (event: { nativeEvent: SubtitleRemovedEvent }) => void;\n /**\n * Event emitted when the current playback time has changed.\n */\n onBmpTimeChanged?: (event: { nativeEvent: TimeChangedEvent }) => void;\n /**\n * Emitted when the player is unmuted.\n */\n onBmpUnmuted?: (event: { nativeEvent: UnmutedEvent }) => void;\n /**\n * Emitted when current video download quality has changed.\n */\n onBmpVideoDownloadQualityChanged?: (event: {\n nativeEvent: VideoDownloadQualityChangedEvent;\n }) => void;\n /**\n * Emitted when the current video playback quality has changed.\n */\n onBmpVideoPlaybackQualityChanged?: (event: {\n nativeEvent: VideoPlaybackQualityChangedEvent;\n }) => void;\n /**\n * Event emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\n onBmpFairplayLicenseAcquired?: (event: {\n nativeEvent: FairplayLicenseAcquiredEvent;\n }) => void;\n};\n"]}
|
package/build/events.d.ts
CHANGED
|
@@ -329,13 +329,13 @@ export type PictureInPictureExitEvent = Event;
|
|
|
329
329
|
/**
|
|
330
330
|
* Emitted when the player has finished entering Picture in Picture mode on iOS.
|
|
331
331
|
*
|
|
332
|
-
* @platform iOS
|
|
332
|
+
* @platform iOS, Android
|
|
333
333
|
*/
|
|
334
334
|
export type PictureInPictureEnteredEvent = Event;
|
|
335
335
|
/**
|
|
336
336
|
* Emitted when the player has finished exiting Picture in Picture mode on iOS.
|
|
337
337
|
*
|
|
338
|
-
* @platform iOS
|
|
338
|
+
* @platform iOS, Android
|
|
339
339
|
*/
|
|
340
340
|
export type PictureInPictureExitedEvent = Event;
|
|
341
341
|
/**
|
package/build/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"","sourcesContent":["import {\n Ad,\n AdBreak,\n AdConfig,\n AdItem,\n AdQuartile,\n AdSourceType,\n} from './advertising';\nimport { SubtitleTrack } from './subtitleTrack';\nimport { VideoQuality } from './media';\nimport { AudioTrack } from './audioTrack';\nimport { LoadingState } from './source';\nimport { HttpRequestType, HttpResponse } from './network/networkConfig';\nimport {\n DateRangeMetadataEntry,\n EventMessageMetadataEntry,\n Id3MetadataEntry,\n MetadataCollection,\n MetadataEntry,\n MetadataType,\n ScteMetadataEntry,\n UnsupportedMetadataEntry,\n} from './metadata';\n\n/**\n * Base event type for all events.\n */\nexport interface Event {\n /**\n * This event name as it is on the native side.\n */\n name: string;\n /**\n * The UNIX timestamp in which this event happened.\n */\n timestamp: number;\n}\n\n/**\n * Additional diagnostic information related to an error or warning.\n */\nexport interface DeficiencyData {\n /**\n * The HTTP response associated with the error, when the root cause is a network request\n * (e.g. a DRM license or certificate request resulting in a non-2xx status code).\n */\n httpResponse?: HttpResponse;\n}\n\n/**\n * Base event type for error and warning events.\n */\nexport interface ErrorEvent extends Event {\n /**\n * Error/Warning's code number.\n */\n code?: number;\n /**\n * Error/Warning's localized message.\n */\n message: string;\n /**\n * Additional diagnostic information related to the error or warning.\n * Contains details such as an {@link DeficiencyData.httpResponse | HTTP response} when\n * the error is caused by a failed network request.\n */\n data?: DeficiencyData & Record<string, any>;\n}\n\n/**\n * Emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\nexport type PlayerActiveEvent = Event;\n\n/**\n * Emitted when a source is unloaded from the player.\n * Seeking and time shifting are not allowed anymore after this event.\n */\nexport type PlayerInactiveEvent = Event;\n\n/**\n * Emitted when a player error occurred.\n */\nexport type PlayerErrorEvent = ErrorEvent;\n\n/**\n * Emitted when a player warning occurred.\n */\nexport type PlayerWarningEvent = ErrorEvent;\n\n/**\n * Emitted when the player is destroyed.\n */\nexport type DestroyEvent = Event;\n\n/**\n * Emitted when the player is muted.\n */\nexport type MutedEvent = Event;\n\n/**\n * Emitted when the player is unmuted.\n */\nexport type UnmutedEvent = Event;\n\n/**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\nexport type ReadyEvent = Event;\n\n/**\n * Emitted when the player is paused.\n */\nexport interface PausedEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when the player received an intention to start/resume playback.\n */\nexport interface PlayEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when playback has started.\n */\nexport interface PlayingEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when the playback of the current media has finished.\n */\nexport type PlaybackFinishedEvent = Event;\n\n/**\n * Source object representation the way it appears on event's payloads such as `SeekEvent`, for example.\n *\n * This interface only type hints what should be the shape of a {@link Source} object inside an event's\n * payload during runtime so it has no direct relation with the `Source` class present in `src/source.ts`.\n *\n * Do not mistake it for a `NativeInstance` type.\n */\nexport interface EventSource {\n /**\n * Event's source duration in seconds.\n */\n duration: number;\n /**\n * Whether this event's source is currently active in a player.\n */\n isActive: boolean;\n /**\n * Whether this event's source is currently attached to a player instance.\n */\n isAttachedToPlayer: boolean;\n /**\n * Metadata for this event's source.\n */\n metadata?: Record<string, any>;\n /**\n * The current {@link LoadingState} of the source.\n */\n loadingState: LoadingState;\n}\n\n/**\n * Represents a seeking position.\n */\nexport interface SeekPosition {\n /**\n * The relevant {@link Source}.\n */\n source: EventSource;\n /**\n * The position within the {@link Source} in seconds.\n */\n time: number;\n}\n\n/**\n * Emitted when the player is about to seek to a new position.\n * This event only applies to VoD streams.\n * When looking for an equivalent for live streams, the {@link TimeShiftEvent} is relevant.\n */\nexport interface SeekEvent extends Event {\n /**\n * Origin source metadata.\n */\n from: SeekPosition;\n /**\n * Target source metadata.\n */\n to: SeekPosition;\n}\n\n/**\n * Emitted when seeking has finished and data to continue playback is available.\n * This event only applies to VoD streams.\n * When looking for an equivalent for live streams, the {@link TimeShiftedEvent} is relevant.\n */\nexport type SeekedEvent = Event;\n\n/**\n * Emitted when the player starts time shifting.\n * This event only applies to live streams.\n * When looking for an equivalent for VoD streams, the {@link SeekEvent} is relevant.\n */\nexport interface TimeShiftEvent extends Event {\n /**\n * The position from which we start the time shift\n */\n position: number;\n /**\n * The position to which we want to jump for the time shift\n */\n targetPosition: number;\n}\n\n/**\n * Emitted when time shifting has finished and data is available to continue playback.\n * This event only applies to live streams.\n * When looking for an equivalent for VoD streams, the {@link SeekedEvent} is relevant.\n */\nexport type TimeShiftedEvent = Event;\n\n/**\n * Emitted when the player begins to stall and to buffer due to an empty buffer.\n */\nexport type StallStartedEvent = Event;\n\n/**\n * Emitted when the player ends stalling, due to enough data in the buffer.\n */\nexport type StallEndedEvent = Event;\n\n/**\n * Emitted when the current playback time has changed.\n */\nexport interface TimeChangedEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n currentTime: number;\n}\n\n/**\n * Emitted when a new source loading has started.\n */\nexport interface SourceLoadEvent extends Event {\n /**\n * Source that is about to load.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * {@link ReadyEvent} indicates the player is ready for immediate playback.\n */\nexport interface SourceLoadedEvent extends Event {\n /**\n * Source that was loaded into player.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when the current source has been unloaded.\n */\nexport interface SourceUnloadedEvent extends Event {\n /**\n * Source that was unloaded from player.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when a source error occurred.\n */\nexport type SourceErrorEvent = ErrorEvent;\n\n/**\n * Emitted when a source warning occurred.\n */\nexport type SourceWarningEvent = ErrorEvent;\n\n/**\n * Emitted when a new audio track is added to the player.\n */\nexport interface AudioAddedEvent extends Event {\n /**\n * Audio track that has been added.\n */\n audioTrack: AudioTrack;\n}\n\n/**\n * Emitted when the player's selected audio track has changed.\n */\nexport interface AudioChangedEvent extends Event {\n /**\n * Audio track that was previously selected.\n */\n oldAudioTrack: AudioTrack;\n /**\n * Audio track that is selected now.\n */\n newAudioTrack: AudioTrack;\n}\n\n/**\n * Emitted when an audio track is removed from the player.\n */\nexport interface AudioRemovedEvent extends Event {\n /**\n * Audio track that has been removed.\n */\n audioTrack: AudioTrack;\n}\n\n/**\n * Emitted when a new subtitle track is added to the player.\n */\nexport interface SubtitleAddedEvent extends Event {\n /**\n * Subtitle track that has been added.\n */\n subtitleTrack: SubtitleTrack;\n}\n\n/**\n * Emitted when a subtitle track is removed from the player.\n */\nexport interface SubtitleRemovedEvent extends Event {\n /**\n * Subtitle track that has been removed.\n */\n subtitleTrack: SubtitleTrack;\n}\n\n/**\n * Emitted when the player's selected subtitle track has changed.\n */\nexport interface SubtitleChangedEvent extends Event {\n /**\n * Subtitle track that was previously selected.\n */\n oldSubtitleTrack?: SubtitleTrack;\n /**\n * Subtitle track that is selected now.\n */\n newSubtitleTrack?: SubtitleTrack;\n}\n\n/**\n * Emitted when the player enters Picture in Picture mode.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureEnterEvent = Event;\n\n/**\n * Emitted when the player exits Picture in Picture mode.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureExitEvent = Event;\n\n/**\n * Emitted when the player has finished entering Picture in Picture mode on iOS.\n *\n * @platform iOS\n */\nexport type PictureInPictureEnteredEvent = Event;\n\n/**\n * Emitted when the player has finished exiting Picture in Picture mode on iOS.\n *\n * @platform iOS\n */\nexport type PictureInPictureExitedEvent = Event;\n\n/**\n * Emitted when the fullscreen functionality has been enabled.\n *\n * @platform iOS, Android\n */\nexport type FullscreenEnabledEvent = Event;\n\n/**\n * Emitted when the fullscreen functionality has been disabled.\n *\n * @platform iOS, Android\n */\nexport type FullscreenDisabledEvent = Event;\n\n/**\n * Emitted when the player enters fullscreen mode.\n *\n * @platform iOS, Android\n */\nexport type FullscreenEnterEvent = Event;\n\n/**\n * Emitted when the player exits fullscreen mode.\n *\n * @platform iOS, Android\n */\nexport type FullscreenExitEvent = Event;\n\n/**\n * Emitted when the availability of the Picture in Picture mode changed on Android.\n *\n * @platform Android\n */\nexport interface PictureInPictureAvailabilityChangedEvent extends Event {\n /**\n * Whether Picture in Picture is available.\n */\n isPictureInPictureAvailable: boolean;\n}\n\n/**\n * Emitted when an ad break has started.\n */\nexport interface AdBreakStartedEvent extends Event {\n /**\n * The {@link AdBreak} that has started.\n */\n adBreak?: AdBreak;\n}\n\n/**\n * Emitted when an ad break has finished.\n */\nexport interface AdBreakFinishedEvent extends Event {\n /**\n * The {@link AdBreak} that has finished.\n */\n adBreak?: AdBreak;\n}\n\n/**\n * Emitted when the playback of an ad has started.\n */\nexport interface AdStartedEvent extends Event {\n /**\n * The {@link Ad} this event is related to.\n */\n ad?: Ad;\n /**\n * The target URL to open once the user clicks on the ad.\n */\n clickThroughUrl?: string;\n /**\n * The {@link AdSourceType} of the started ad.\n */\n clientType?: AdSourceType;\n /**\n * The duration of the ad in seconds.\n */\n duration: number;\n /**\n * The index of the ad in the queue.\n */\n indexInQueue: number;\n /**\n * The position of the corresponding ad.\n */\n position?: string;\n /**\n * The skip offset of the ad in seconds.\n */\n skipOffset: number;\n /**\n * The main content time at which the ad is played.\n */\n timeOffset: number;\n}\n\n/**\n * Emitted when an ad has finished playback.\n */\nexport interface AdFinishedEvent extends Event {\n /**\n * The {@link Ad} that finished playback.\n */\n ad?: Ad;\n}\n\n/**\n * Emitted when an error with the ad playback occurs.\n */\nexport interface AdErrorEvent extends ErrorEvent {\n /**\n * The {@link AdConfig} for which the ad error occurred.\n */\n adConfig?: AdConfig;\n /**\n * The {@link AdItem} for which the ad error occurred.\n */\n adItem?: AdItem;\n}\n\n/**\n * Emitted when an ad was clicked.\n */\nexport interface AdClickedEvent extends Event {\n /**\n * The click through url of the ad.\n */\n clickThroughUrl?: string;\n}\n\n/**\n * Emitted when an ad was skipped.\n */\nexport interface AdSkippedEvent extends Event {\n /**\n * The ad that was skipped.\n */\n ad?: Ad;\n}\n\n/**\n * Emitted when the playback of an ad has progressed over a quartile boundary.\n */\nexport interface AdQuartileEvent extends Event {\n /**\n * The {@link AdQuartile} boundary that playback has progressed over.\n */\n quartile: AdQuartile;\n}\n\n/**\n * Emitted when an ad manifest was successfully downloaded, parsed and added into the ad break schedule.\n */\nexport interface AdScheduledEvent extends Event {\n /**\n * The total number of scheduled ads.\n */\n numberOfAds: number;\n}\n\n/**\n * Emitted when the download of an ad manifest is started.\n */\nexport interface AdManifestLoadEvent extends Event {\n /**\n * The {@link AdBreak} this event is related to.\n */\n adBreak?: AdBreak;\n /**\n * The {@link AdConfig} of the loaded ad manifest.\n */\n adConfig?: AdConfig;\n}\n\n/**\n * Emitted when an ad manifest was successfully loaded.\n */\nexport interface AdManifestLoadedEvent extends Event {\n /**\n * The {@link AdBreak} this event is related to.\n */\n adBreak?: AdBreak;\n /**\n * The {@link AdConfig} of the loaded ad manifest.\n */\n adConfig?: AdConfig;\n /**\n * How long it took for the ad tag to be downloaded in milliseconds.\n */\n downloadTime: number;\n}\n\n/**\n * Emitted when current video download quality has changed.\n */\nexport interface VideoDownloadQualityChangedEvent extends Event {\n /**\n * The new quality\n */\n newVideoQuality: VideoQuality;\n /**\n * The previous quality\n */\n oldVideoQuality: VideoQuality;\n}\n\n/**\n * Emitted when the current video playback quality has changed.\n */\nexport interface VideoPlaybackQualityChangedEvent extends Event {\n /**\n * The new quality\n */\n newVideoQuality: VideoQuality;\n /**\n * The previous quality\n */\n oldVideoQuality: VideoQuality;\n}\n\n/**\n * Emitted when casting to a cast-compatible device is available.\n */\nexport type CastAvailableEvent = Event;\n\n/**\n * Emitted when the playback on a cast-compatible device was paused.\n *\n * On Android {@link PausedEvent} is also emitted while casting.\n */\nexport type CastPausedEvent = Event;\n\n/**\n * Emitted when the playback on a cast-compatible device has finished.\n *\n * On Android {@link PlaybackFinishedEvent} is also emitted while casting.\n */\nexport type CastPlaybackFinishedEvent = Event;\n\n/**\n * Emitted when playback on a cast-compatible device has started.\n *\n * On Android {@link PlayingEvent} is also emitted while casting.\n */\nexport type CastPlayingEvent = Event;\n\n/**\n * Emitted when the cast app is launched successfully.\n */\nexport interface CastStartedEvent extends Event {\n /**\n * The name of the cast device on which the app was launched.\n */\n deviceName: string | null;\n}\n\n/**\n * Emitted when casting is initiated, but the user still needs to choose which device should be used.\n */\nexport type CastStartEvent = Event;\n\n/**\n * Emitted when casting to a cast-compatible device is stopped.\n */\nexport type CastStoppedEvent = Event;\n\n/**\n * Emitted when the time update from the currently used cast-compatible device is received.\n */\nexport type CastTimeUpdatedEvent = Event;\n\n/**\n * Contains information for the {@link CastWaitingForDeviceEvent}.\n */\nexport interface CastPayload {\n /**\n * The current time in seconds.\n */\n currentTime: number;\n /**\n * The name of the chosen cast device.\n */\n deviceName: string | null;\n /**\n * The type of the payload (always `\"cast\"`).\n */\n type: string;\n}\n\n/**\n * Emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n */\nexport interface CastWaitingForDeviceEvent extends Event {\n /**\n * The {@link CastPayload} object for the event\n */\n castPayload: CastPayload;\n}\n\n/**\n * Emitted when a download was finished.\n */\nexport interface DownloadFinishedEvent extends Event {\n /**\n * The time needed to finish the request, in seconds.\n */\n downloadTime: number;\n /**\n * Which type of request this was.\n */\n requestType: HttpRequestType;\n /**\n * The HTTP status code of the request.\n * If opening the connection failed, a value of `0` is returned.\n */\n httpStatus: number;\n /**\n * If the download was successful.\n */\n isSuccess: boolean;\n /**\n * The last redirect location, or `null` if no redirect happened.\n */\n lastRedirectLocation?: string;\n /**\n * The size of the downloaded data, in bytes.\n */\n size: number;\n /**\n * The URL of the request.\n */\n url: string;\n}\n\n/**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\nexport interface PlaybackSpeedChangedEvent extends Event {\n /**\n * The playback speed before the change happened.\n */\n from: number;\n /**\n * The playback speed after the change happened.\n */\n to: number;\n}\n\n/**\n * Emitted when a subtitle entry transitions into the active status.\n */\nexport interface CueEnterEvent extends Event {\n /**\n * The playback time in seconds when the subtitle should be rendered.\n */\n start: number;\n /**\n * The playback time in seconds when the subtitle should be hidden.\n */\n end: number;\n /**\n * The textual content of this subtitle.\n */\n text?: string;\n /**\n * Data URI for image data of this subtitle.\n */\n image?: string;\n}\n\n/**\n * Emitted when an active subtitle entry transitions into the inactive status.\n */\nexport interface CueExitEvent extends Event {\n /**\n * The playback time in seconds when the subtitle should be rendered.\n */\n start: number;\n /**\n * The playback time in seconds when the subtitle should be hidden.\n */\n end: number;\n /**\n * The textual content of this subtitle.\n */\n text?: string;\n /**\n * Data URI for image data of this subtitle.\n */\n image?: string;\n}\n\n/**\n * Base event type for events that carry timed metadata.\n *\n * Concrete events like {@link MetadataParsedEvent} and {@link MetadataEvent}\n * fix {@link metadataType} and {@link metadata} to a specific metadata entry\n * type.\n *\n * @remarks Branching on {@link metadataType} using an `if`/`switch` statement narrows the\n * event to the appropriate metadata subtype, giving access to entry-specific fields.\n *\n * @typeParam T - The metadata entry type carried by this event\n */\nexport interface MetadataEventBase<T extends MetadataEntry> extends Event {\n /**\n * Discriminator for the metadata type carried by this event.\n *\n * All entries in {@link MetadataCollection.entries} share this value.\n *\n * @remarks Use it in an `if`/`else` or `switch` to narrow the event type.\n */\n metadataType: T['metadataType'];\n /**\n * Metadata entries and their trigger time.\n *\n * The collection is homogeneous: all entries share the same metadata type,\n * reflected by {@link metadataType}.\n */\n metadata: MetadataCollection<T>;\n}\n\n/**\n * Emitted when metadata is parsed from the stream.\n */\nexport type MetadataParsedEvent =\n | (MetadataEventBase<Id3MetadataEntry> & {\n metadataType: MetadataType.ID3;\n })\n | (MetadataEventBase<DateRangeMetadataEntry> & {\n metadataType: MetadataType.DATERANGE;\n })\n | (MetadataEventBase<EventMessageMetadataEntry> & {\n metadataType: MetadataType.EMSG;\n })\n | (MetadataEventBase<ScteMetadataEntry> & {\n metadataType: MetadataType.SCTE;\n })\n | (MetadataEventBase<UnsupportedMetadataEntry> & {\n metadataType: MetadataType.Unsupported;\n });\n\n/**\n * Emitted when metadata is encountered during playback.\n */\nexport type MetadataEvent = MetadataParsedEvent;\n\n/**\n * Represents the FairPlay content key request associated with a license acquisition.\n *\n * @platform iOS, tvOS\n */\nexport interface FairplayContentKeyRequest {\n /**\n * The URI of the content key (the `skd://` URI from the HLS manifest).\n */\n skdUri: string;\n}\n\n/**\n * Emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\nexport interface FairplayLicenseAcquiredEvent extends Event {\n /**\n * The content key request associated with the acquired license.\n */\n contentKeyRequest: FairplayContentKeyRequest;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"","sourcesContent":["import {\n Ad,\n AdBreak,\n AdConfig,\n AdItem,\n AdQuartile,\n AdSourceType,\n} from './advertising';\nimport { SubtitleTrack } from './subtitleTrack';\nimport { VideoQuality } from './media';\nimport { AudioTrack } from './audioTrack';\nimport { LoadingState } from './source';\nimport { HttpRequestType, HttpResponse } from './network/networkConfig';\nimport {\n DateRangeMetadataEntry,\n EventMessageMetadataEntry,\n Id3MetadataEntry,\n MetadataCollection,\n MetadataEntry,\n MetadataType,\n ScteMetadataEntry,\n UnsupportedMetadataEntry,\n} from './metadata';\n\n/**\n * Base event type for all events.\n */\nexport interface Event {\n /**\n * This event name as it is on the native side.\n */\n name: string;\n /**\n * The UNIX timestamp in which this event happened.\n */\n timestamp: number;\n}\n\n/**\n * Additional diagnostic information related to an error or warning.\n */\nexport interface DeficiencyData {\n /**\n * The HTTP response associated with the error, when the root cause is a network request\n * (e.g. a DRM license or certificate request resulting in a non-2xx status code).\n */\n httpResponse?: HttpResponse;\n}\n\n/**\n * Base event type for error and warning events.\n */\nexport interface ErrorEvent extends Event {\n /**\n * Error/Warning's code number.\n */\n code?: number;\n /**\n * Error/Warning's localized message.\n */\n message: string;\n /**\n * Additional diagnostic information related to the error or warning.\n * Contains details such as an {@link DeficiencyData.httpResponse | HTTP response} when\n * the error is caused by a failed network request.\n */\n data?: DeficiencyData & Record<string, any>;\n}\n\n/**\n * Emitted when a source is loaded into the player.\n * Seeking and time shifting are allowed as soon as this event is seen.\n */\nexport type PlayerActiveEvent = Event;\n\n/**\n * Emitted when a source is unloaded from the player.\n * Seeking and time shifting are not allowed anymore after this event.\n */\nexport type PlayerInactiveEvent = Event;\n\n/**\n * Emitted when a player error occurred.\n */\nexport type PlayerErrorEvent = ErrorEvent;\n\n/**\n * Emitted when a player warning occurred.\n */\nexport type PlayerWarningEvent = ErrorEvent;\n\n/**\n * Emitted when the player is destroyed.\n */\nexport type DestroyEvent = Event;\n\n/**\n * Emitted when the player is muted.\n */\nexport type MutedEvent = Event;\n\n/**\n * Emitted when the player is unmuted.\n */\nexport type UnmutedEvent = Event;\n\n/**\n * Emitted when the player is ready for immediate playback, because initial audio/video\n * has been downloaded.\n */\nexport type ReadyEvent = Event;\n\n/**\n * Emitted when the player is paused.\n */\nexport interface PausedEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when the player received an intention to start/resume playback.\n */\nexport interface PlayEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when playback has started.\n */\nexport interface PlayingEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n time: number;\n}\n\n/**\n * Emitted when the playback of the current media has finished.\n */\nexport type PlaybackFinishedEvent = Event;\n\n/**\n * Source object representation the way it appears on event's payloads such as `SeekEvent`, for example.\n *\n * This interface only type hints what should be the shape of a {@link Source} object inside an event's\n * payload during runtime so it has no direct relation with the `Source` class present in `src/source.ts`.\n *\n * Do not mistake it for a `NativeInstance` type.\n */\nexport interface EventSource {\n /**\n * Event's source duration in seconds.\n */\n duration: number;\n /**\n * Whether this event's source is currently active in a player.\n */\n isActive: boolean;\n /**\n * Whether this event's source is currently attached to a player instance.\n */\n isAttachedToPlayer: boolean;\n /**\n * Metadata for this event's source.\n */\n metadata?: Record<string, any>;\n /**\n * The current {@link LoadingState} of the source.\n */\n loadingState: LoadingState;\n}\n\n/**\n * Represents a seeking position.\n */\nexport interface SeekPosition {\n /**\n * The relevant {@link Source}.\n */\n source: EventSource;\n /**\n * The position within the {@link Source} in seconds.\n */\n time: number;\n}\n\n/**\n * Emitted when the player is about to seek to a new position.\n * This event only applies to VoD streams.\n * When looking for an equivalent for live streams, the {@link TimeShiftEvent} is relevant.\n */\nexport interface SeekEvent extends Event {\n /**\n * Origin source metadata.\n */\n from: SeekPosition;\n /**\n * Target source metadata.\n */\n to: SeekPosition;\n}\n\n/**\n * Emitted when seeking has finished and data to continue playback is available.\n * This event only applies to VoD streams.\n * When looking for an equivalent for live streams, the {@link TimeShiftedEvent} is relevant.\n */\nexport type SeekedEvent = Event;\n\n/**\n * Emitted when the player starts time shifting.\n * This event only applies to live streams.\n * When looking for an equivalent for VoD streams, the {@link SeekEvent} is relevant.\n */\nexport interface TimeShiftEvent extends Event {\n /**\n * The position from which we start the time shift\n */\n position: number;\n /**\n * The position to which we want to jump for the time shift\n */\n targetPosition: number;\n}\n\n/**\n * Emitted when time shifting has finished and data is available to continue playback.\n * This event only applies to live streams.\n * When looking for an equivalent for VoD streams, the {@link SeekedEvent} is relevant.\n */\nexport type TimeShiftedEvent = Event;\n\n/**\n * Emitted when the player begins to stall and to buffer due to an empty buffer.\n */\nexport type StallStartedEvent = Event;\n\n/**\n * Emitted when the player ends stalling, due to enough data in the buffer.\n */\nexport type StallEndedEvent = Event;\n\n/**\n * Emitted when the current playback time has changed.\n */\nexport interface TimeChangedEvent extends Event {\n /**\n * The player's playback time from when this event happened.\n */\n currentTime: number;\n}\n\n/**\n * Emitted when a new source loading has started.\n */\nexport interface SourceLoadEvent extends Event {\n /**\n * Source that is about to load.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when a new source is loaded.\n * This does not mean that the source is immediately ready for playback.\n * {@link ReadyEvent} indicates the player is ready for immediate playback.\n */\nexport interface SourceLoadedEvent extends Event {\n /**\n * Source that was loaded into player.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when the current source has been unloaded.\n */\nexport interface SourceUnloadedEvent extends Event {\n /**\n * Source that was unloaded from player.\n */\n source: EventSource;\n}\n\n/**\n * Emitted when a source error occurred.\n */\nexport type SourceErrorEvent = ErrorEvent;\n\n/**\n * Emitted when a source warning occurred.\n */\nexport type SourceWarningEvent = ErrorEvent;\n\n/**\n * Emitted when a new audio track is added to the player.\n */\nexport interface AudioAddedEvent extends Event {\n /**\n * Audio track that has been added.\n */\n audioTrack: AudioTrack;\n}\n\n/**\n * Emitted when the player's selected audio track has changed.\n */\nexport interface AudioChangedEvent extends Event {\n /**\n * Audio track that was previously selected.\n */\n oldAudioTrack: AudioTrack;\n /**\n * Audio track that is selected now.\n */\n newAudioTrack: AudioTrack;\n}\n\n/**\n * Emitted when an audio track is removed from the player.\n */\nexport interface AudioRemovedEvent extends Event {\n /**\n * Audio track that has been removed.\n */\n audioTrack: AudioTrack;\n}\n\n/**\n * Emitted when a new subtitle track is added to the player.\n */\nexport interface SubtitleAddedEvent extends Event {\n /**\n * Subtitle track that has been added.\n */\n subtitleTrack: SubtitleTrack;\n}\n\n/**\n * Emitted when a subtitle track is removed from the player.\n */\nexport interface SubtitleRemovedEvent extends Event {\n /**\n * Subtitle track that has been removed.\n */\n subtitleTrack: SubtitleTrack;\n}\n\n/**\n * Emitted when the player's selected subtitle track has changed.\n */\nexport interface SubtitleChangedEvent extends Event {\n /**\n * Subtitle track that was previously selected.\n */\n oldSubtitleTrack?: SubtitleTrack;\n /**\n * Subtitle track that is selected now.\n */\n newSubtitleTrack?: SubtitleTrack;\n}\n\n/**\n * Emitted when the player enters Picture in Picture mode.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureEnterEvent = Event;\n\n/**\n * Emitted when the player exits Picture in Picture mode.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureExitEvent = Event;\n\n/**\n * Emitted when the player has finished entering Picture in Picture mode on iOS.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureEnteredEvent = Event;\n\n/**\n * Emitted when the player has finished exiting Picture in Picture mode on iOS.\n *\n * @platform iOS, Android\n */\nexport type PictureInPictureExitedEvent = Event;\n\n/**\n * Emitted when the fullscreen functionality has been enabled.\n *\n * @platform iOS, Android\n */\nexport type FullscreenEnabledEvent = Event;\n\n/**\n * Emitted when the fullscreen functionality has been disabled.\n *\n * @platform iOS, Android\n */\nexport type FullscreenDisabledEvent = Event;\n\n/**\n * Emitted when the player enters fullscreen mode.\n *\n * @platform iOS, Android\n */\nexport type FullscreenEnterEvent = Event;\n\n/**\n * Emitted when the player exits fullscreen mode.\n *\n * @platform iOS, Android\n */\nexport type FullscreenExitEvent = Event;\n\n/**\n * Emitted when the availability of the Picture in Picture mode changed on Android.\n *\n * @platform Android\n */\nexport interface PictureInPictureAvailabilityChangedEvent extends Event {\n /**\n * Whether Picture in Picture is available.\n */\n isPictureInPictureAvailable: boolean;\n}\n\n/**\n * Emitted when an ad break has started.\n */\nexport interface AdBreakStartedEvent extends Event {\n /**\n * The {@link AdBreak} that has started.\n */\n adBreak?: AdBreak;\n}\n\n/**\n * Emitted when an ad break has finished.\n */\nexport interface AdBreakFinishedEvent extends Event {\n /**\n * The {@link AdBreak} that has finished.\n */\n adBreak?: AdBreak;\n}\n\n/**\n * Emitted when the playback of an ad has started.\n */\nexport interface AdStartedEvent extends Event {\n /**\n * The {@link Ad} this event is related to.\n */\n ad?: Ad;\n /**\n * The target URL to open once the user clicks on the ad.\n */\n clickThroughUrl?: string;\n /**\n * The {@link AdSourceType} of the started ad.\n */\n clientType?: AdSourceType;\n /**\n * The duration of the ad in seconds.\n */\n duration: number;\n /**\n * The index of the ad in the queue.\n */\n indexInQueue: number;\n /**\n * The position of the corresponding ad.\n */\n position?: string;\n /**\n * The skip offset of the ad in seconds.\n */\n skipOffset: number;\n /**\n * The main content time at which the ad is played.\n */\n timeOffset: number;\n}\n\n/**\n * Emitted when an ad has finished playback.\n */\nexport interface AdFinishedEvent extends Event {\n /**\n * The {@link Ad} that finished playback.\n */\n ad?: Ad;\n}\n\n/**\n * Emitted when an error with the ad playback occurs.\n */\nexport interface AdErrorEvent extends ErrorEvent {\n /**\n * The {@link AdConfig} for which the ad error occurred.\n */\n adConfig?: AdConfig;\n /**\n * The {@link AdItem} for which the ad error occurred.\n */\n adItem?: AdItem;\n}\n\n/**\n * Emitted when an ad was clicked.\n */\nexport interface AdClickedEvent extends Event {\n /**\n * The click through url of the ad.\n */\n clickThroughUrl?: string;\n}\n\n/**\n * Emitted when an ad was skipped.\n */\nexport interface AdSkippedEvent extends Event {\n /**\n * The ad that was skipped.\n */\n ad?: Ad;\n}\n\n/**\n * Emitted when the playback of an ad has progressed over a quartile boundary.\n */\nexport interface AdQuartileEvent extends Event {\n /**\n * The {@link AdQuartile} boundary that playback has progressed over.\n */\n quartile: AdQuartile;\n}\n\n/**\n * Emitted when an ad manifest was successfully downloaded, parsed and added into the ad break schedule.\n */\nexport interface AdScheduledEvent extends Event {\n /**\n * The total number of scheduled ads.\n */\n numberOfAds: number;\n}\n\n/**\n * Emitted when the download of an ad manifest is started.\n */\nexport interface AdManifestLoadEvent extends Event {\n /**\n * The {@link AdBreak} this event is related to.\n */\n adBreak?: AdBreak;\n /**\n * The {@link AdConfig} of the loaded ad manifest.\n */\n adConfig?: AdConfig;\n}\n\n/**\n * Emitted when an ad manifest was successfully loaded.\n */\nexport interface AdManifestLoadedEvent extends Event {\n /**\n * The {@link AdBreak} this event is related to.\n */\n adBreak?: AdBreak;\n /**\n * The {@link AdConfig} of the loaded ad manifest.\n */\n adConfig?: AdConfig;\n /**\n * How long it took for the ad tag to be downloaded in milliseconds.\n */\n downloadTime: number;\n}\n\n/**\n * Emitted when current video download quality has changed.\n */\nexport interface VideoDownloadQualityChangedEvent extends Event {\n /**\n * The new quality\n */\n newVideoQuality: VideoQuality;\n /**\n * The previous quality\n */\n oldVideoQuality: VideoQuality;\n}\n\n/**\n * Emitted when the current video playback quality has changed.\n */\nexport interface VideoPlaybackQualityChangedEvent extends Event {\n /**\n * The new quality\n */\n newVideoQuality: VideoQuality;\n /**\n * The previous quality\n */\n oldVideoQuality: VideoQuality;\n}\n\n/**\n * Emitted when casting to a cast-compatible device is available.\n */\nexport type CastAvailableEvent = Event;\n\n/**\n * Emitted when the playback on a cast-compatible device was paused.\n *\n * On Android {@link PausedEvent} is also emitted while casting.\n */\nexport type CastPausedEvent = Event;\n\n/**\n * Emitted when the playback on a cast-compatible device has finished.\n *\n * On Android {@link PlaybackFinishedEvent} is also emitted while casting.\n */\nexport type CastPlaybackFinishedEvent = Event;\n\n/**\n * Emitted when playback on a cast-compatible device has started.\n *\n * On Android {@link PlayingEvent} is also emitted while casting.\n */\nexport type CastPlayingEvent = Event;\n\n/**\n * Emitted when the cast app is launched successfully.\n */\nexport interface CastStartedEvent extends Event {\n /**\n * The name of the cast device on which the app was launched.\n */\n deviceName: string | null;\n}\n\n/**\n * Emitted when casting is initiated, but the user still needs to choose which device should be used.\n */\nexport type CastStartEvent = Event;\n\n/**\n * Emitted when casting to a cast-compatible device is stopped.\n */\nexport type CastStoppedEvent = Event;\n\n/**\n * Emitted when the time update from the currently used cast-compatible device is received.\n */\nexport type CastTimeUpdatedEvent = Event;\n\n/**\n * Contains information for the {@link CastWaitingForDeviceEvent}.\n */\nexport interface CastPayload {\n /**\n * The current time in seconds.\n */\n currentTime: number;\n /**\n * The name of the chosen cast device.\n */\n deviceName: string | null;\n /**\n * The type of the payload (always `\"cast\"`).\n */\n type: string;\n}\n\n/**\n * Emitted when a cast-compatible device has been chosen and the player is waiting for the device to get ready for\n * playback.\n */\nexport interface CastWaitingForDeviceEvent extends Event {\n /**\n * The {@link CastPayload} object for the event\n */\n castPayload: CastPayload;\n}\n\n/**\n * Emitted when a download was finished.\n */\nexport interface DownloadFinishedEvent extends Event {\n /**\n * The time needed to finish the request, in seconds.\n */\n downloadTime: number;\n /**\n * Which type of request this was.\n */\n requestType: HttpRequestType;\n /**\n * The HTTP status code of the request.\n * If opening the connection failed, a value of `0` is returned.\n */\n httpStatus: number;\n /**\n * If the download was successful.\n */\n isSuccess: boolean;\n /**\n * The last redirect location, or `null` if no redirect happened.\n */\n lastRedirectLocation?: string;\n /**\n * The size of the downloaded data, in bytes.\n */\n size: number;\n /**\n * The URL of the request.\n */\n url: string;\n}\n\n/**\n * Emitted when the player transitions from one playback speed to another.\n * @platform iOS, tvOS\n */\nexport interface PlaybackSpeedChangedEvent extends Event {\n /**\n * The playback speed before the change happened.\n */\n from: number;\n /**\n * The playback speed after the change happened.\n */\n to: number;\n}\n\n/**\n * Emitted when a subtitle entry transitions into the active status.\n */\nexport interface CueEnterEvent extends Event {\n /**\n * The playback time in seconds when the subtitle should be rendered.\n */\n start: number;\n /**\n * The playback time in seconds when the subtitle should be hidden.\n */\n end: number;\n /**\n * The textual content of this subtitle.\n */\n text?: string;\n /**\n * Data URI for image data of this subtitle.\n */\n image?: string;\n}\n\n/**\n * Emitted when an active subtitle entry transitions into the inactive status.\n */\nexport interface CueExitEvent extends Event {\n /**\n * The playback time in seconds when the subtitle should be rendered.\n */\n start: number;\n /**\n * The playback time in seconds when the subtitle should be hidden.\n */\n end: number;\n /**\n * The textual content of this subtitle.\n */\n text?: string;\n /**\n * Data URI for image data of this subtitle.\n */\n image?: string;\n}\n\n/**\n * Base event type for events that carry timed metadata.\n *\n * Concrete events like {@link MetadataParsedEvent} and {@link MetadataEvent}\n * fix {@link metadataType} and {@link metadata} to a specific metadata entry\n * type.\n *\n * @remarks Branching on {@link metadataType} using an `if`/`switch` statement narrows the\n * event to the appropriate metadata subtype, giving access to entry-specific fields.\n *\n * @typeParam T - The metadata entry type carried by this event\n */\nexport interface MetadataEventBase<T extends MetadataEntry> extends Event {\n /**\n * Discriminator for the metadata type carried by this event.\n *\n * All entries in {@link MetadataCollection.entries} share this value.\n *\n * @remarks Use it in an `if`/`else` or `switch` to narrow the event type.\n */\n metadataType: T['metadataType'];\n /**\n * Metadata entries and their trigger time.\n *\n * The collection is homogeneous: all entries share the same metadata type,\n * reflected by {@link metadataType}.\n */\n metadata: MetadataCollection<T>;\n}\n\n/**\n * Emitted when metadata is parsed from the stream.\n */\nexport type MetadataParsedEvent =\n | (MetadataEventBase<Id3MetadataEntry> & {\n metadataType: MetadataType.ID3;\n })\n | (MetadataEventBase<DateRangeMetadataEntry> & {\n metadataType: MetadataType.DATERANGE;\n })\n | (MetadataEventBase<EventMessageMetadataEntry> & {\n metadataType: MetadataType.EMSG;\n })\n | (MetadataEventBase<ScteMetadataEntry> & {\n metadataType: MetadataType.SCTE;\n })\n | (MetadataEventBase<UnsupportedMetadataEntry> & {\n metadataType: MetadataType.Unsupported;\n });\n\n/**\n * Emitted when metadata is encountered during playback.\n */\nexport type MetadataEvent = MetadataParsedEvent;\n\n/**\n * Represents the FairPlay content key request associated with a license acquisition.\n *\n * @platform iOS, tvOS\n */\nexport interface FairplayContentKeyRequest {\n /**\n * The URI of the content key (the `skd://` URI from the HLS manifest).\n */\n skdUri: string;\n}\n\n/**\n * Emitted when a FairPlay license has been acquired successfully.\n *\n * @platform iOS, tvOS\n */\nexport interface FairplayLicenseAcquiredEvent extends Event {\n /**\n * The content key request associated with the acquired license.\n */\n contentKeyRequest: FairplayContentKeyRequest;\n}\n"]}
|
|
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
|
|
|
28
28
|
s.static_framework = true
|
|
29
29
|
|
|
30
30
|
s.dependency 'ExpoModulesCore'
|
|
31
|
-
s.dependency "BitmovinPlayer", "3.
|
|
31
|
+
s.dependency "BitmovinPlayer", "3.114.1"
|
|
32
32
|
s.ios.dependency "GoogleAds-IMA-iOS-SDK", "3.26.1"
|
|
33
33
|
s.tvos.dependency "GoogleAds-IMA-tvOS-SDK", "4.15.1"
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitmovin-player-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "Official React Native bindings for Bitmovin's mobile Player SDKs.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"eslint-config-expo": "~10.0.0",
|
|
67
67
|
"eslint-config-prettier": "^9.1.0",
|
|
68
68
|
"eslint-plugin-prettier": "^5.5.1",
|
|
69
|
-
"expo": "~54.0.
|
|
69
|
+
"expo": "~54.0.35",
|
|
70
70
|
"expo-module-scripts": "^4.1.9",
|
|
71
71
|
"lint-staged": "13.0.3",
|
|
72
72
|
"prettier": "^3.6.2",
|
|
@@ -46,9 +46,10 @@ const withBitmovinIosConfig = (config, options) => {
|
|
|
46
46
|
delete config.modResults['BitmovinPlayerOfflineSupportEnabled'];
|
|
47
47
|
}
|
|
48
48
|
if (googleCastConfig?.ios != null) {
|
|
49
|
-
const
|
|
49
|
+
const defaultLocalNetworkUsageDescription = '${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network.';
|
|
50
|
+
const localNetworkUsageDescription = (typeof googleCastConfig?.ios === 'object'
|
|
50
51
|
? googleCastConfig?.ios?.localNetworkUsageDescription
|
|
51
|
-
:
|
|
52
|
+
: undefined) ?? defaultLocalNetworkUsageDescription;
|
|
52
53
|
config.modResults['BitmovinPlayerGoogleCastApplicationId'] =
|
|
53
54
|
googleCastAppId;
|
|
54
55
|
if (googleCastMessageNamespace) {
|
|
@@ -61,10 +61,12 @@ const withBitmovinIosConfig: ConfigPlugin<BitmovinConfigOptions> = (
|
|
|
61
61
|
delete config.modResults['BitmovinPlayerOfflineSupportEnabled'];
|
|
62
62
|
}
|
|
63
63
|
if (googleCastConfig?.ios != null) {
|
|
64
|
+
const defaultLocalNetworkUsageDescription =
|
|
65
|
+
'${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network.';
|
|
64
66
|
const localNetworkUsageDescription =
|
|
65
|
-
typeof googleCastConfig?.ios === 'object'
|
|
67
|
+
(typeof googleCastConfig?.ios === 'object'
|
|
66
68
|
? googleCastConfig?.ios?.localNetworkUsageDescription
|
|
67
|
-
:
|
|
69
|
+
: undefined) ?? defaultLocalNetworkUsageDescription;
|
|
68
70
|
|
|
69
71
|
config.modResults['BitmovinPlayerGoogleCastApplicationId'] =
|
|
70
72
|
googleCastAppId;
|
|
@@ -247,8 +247,6 @@ export type PlayerViewEvents = {
|
|
|
247
247
|
onPictureInPictureEnter?: (event: PictureInPictureEnterEvent) => void;
|
|
248
248
|
/**
|
|
249
249
|
* Event emitted when the player entered Picture in Picture mode.
|
|
250
|
-
*
|
|
251
|
-
* @platform iOS
|
|
252
250
|
*/
|
|
253
251
|
onPictureInPictureEntered?: (event: PictureInPictureEnteredEvent) => void;
|
|
254
252
|
/**
|
|
@@ -257,8 +255,6 @@ export type PlayerViewEvents = {
|
|
|
257
255
|
onPictureInPictureExit?: (event: PictureInPictureExitEvent) => void;
|
|
258
256
|
/**
|
|
259
257
|
* Event emitted when the player exited Picture in Picture mode.
|
|
260
|
-
*
|
|
261
|
-
* @platform iOS
|
|
262
258
|
*/
|
|
263
259
|
onPictureInPictureExited?: (event: PictureInPictureExitedEvent) => void;
|
|
264
260
|
/**
|
|
@@ -262,8 +262,6 @@ export type NativePlayerViewEvents = {
|
|
|
262
262
|
}) => void;
|
|
263
263
|
/**
|
|
264
264
|
* Event emitted when the player entered Picture in Picture mode.
|
|
265
|
-
*
|
|
266
|
-
* @platform iOS
|
|
267
265
|
*/
|
|
268
266
|
onBmpPictureInPictureEntered?: (event: {
|
|
269
267
|
nativeEvent: PictureInPictureEnteredEvent;
|
|
@@ -276,8 +274,6 @@ export type NativePlayerViewEvents = {
|
|
|
276
274
|
}) => void;
|
|
277
275
|
/**
|
|
278
276
|
* Event emitted when the player exited Picture in Picture mode.
|
|
279
|
-
*
|
|
280
|
-
* @platform iOS
|
|
281
277
|
*/
|
|
282
278
|
onBmpPictureInPictureExited?: (event: {
|
|
283
279
|
nativeEvent: PictureInPictureExitedEvent;
|
package/src/events.ts
CHANGED
|
@@ -383,14 +383,14 @@ export type PictureInPictureExitEvent = Event;
|
|
|
383
383
|
/**
|
|
384
384
|
* Emitted when the player has finished entering Picture in Picture mode on iOS.
|
|
385
385
|
*
|
|
386
|
-
* @platform iOS
|
|
386
|
+
* @platform iOS, Android
|
|
387
387
|
*/
|
|
388
388
|
export type PictureInPictureEnteredEvent = Event;
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
391
|
* Emitted when the player has finished exiting Picture in Picture mode on iOS.
|
|
392
392
|
*
|
|
393
|
-
* @platform iOS
|
|
393
|
+
* @platform iOS, Android
|
|
394
394
|
*/
|
|
395
395
|
export type PictureInPictureExitedEvent = Event;
|
|
396
396
|
|