react-native-theoplayer 3.2.0 → 3.2.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 CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.2.1] - 23-12-07
9
+
10
+ ### Fixed
11
+
12
+ - Fixed an issue on Android where `EnterCue` and `ExitCue` text track events did not contain the `trackUid` property.
13
+
8
14
  ## [3.2.0] - 23-11-29
9
15
 
10
16
  ### Fixed
@@ -437,14 +437,14 @@ class PlayerEventEmitter internal constructor(
437
437
  }
438
438
 
439
439
  private val onTextTrackEnterCue = EventListener<EnterCueEvent> { event ->
440
- val payload = PayloadBuilder().textTrackCue(event.cue, null /*TODO*/).build().apply {
440
+ val payload = PayloadBuilder().textTrackCue(event.cue, event.track).build().apply {
441
441
  putInt(EVENT_PROP_TYPE, TextTrackCueEventType.ENTER_CUE.type)
442
442
  }
443
443
  receiveEvent(EVENT_TEXTTRACK_EVENT, payload)
444
444
  }
445
445
 
446
446
  private val onTextTrackExitCue = EventListener<ExitCueEvent> { event ->
447
- val payload = PayloadBuilder().textTrackCue(event.cue, null /*TODO*/).build().apply {
447
+ val payload = PayloadBuilder().textTrackCue(event.cue, event.track).build().apply {
448
448
  putInt(EVENT_PROP_TYPE, TextTrackCueEventType.EXIT_CUE.type)
449
449
  }
450
450
  receiveEvent(EVENT_TEXTTRACK_EVENT, payload)
@@ -22,9 +22,9 @@ class ViewResolver(private val reactContext: ReactApplicationContext) {
22
22
  uiManager?.addUIBlock {
23
23
  try {
24
24
  onResolved(it.resolveView(tag) as ReactTHEOplayerView)
25
- } catch (ignore: Exception) {
25
+ } catch (e: Exception) {
26
26
  // The ReactTHEOplayerView instance could not be resolved: log but do not forward exception.
27
- Log.w(TAG, "Failed to resolve ReactTHEOplayerView tag $tag")
27
+ Log.e(TAG, "Failed to resolve ReactTHEOplayerView tag $tag: $e")
28
28
  onResolved(null)
29
29
  }
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",