expo-libvlc-player 3.4.18 → 3.4.19

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.
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'expo.modules.libvlcplayer'
4
- version = '3.4.18'
4
+ version = '3.4.19'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(':expo-modules-core').projectDir.absolutePath, 'ExpoModulesCorePlugin.gradle')
7
7
  apply from: expoModulesCorePlugin
@@ -25,7 +25,7 @@ android {
25
25
  targetSdkVersion safeExtGet('targetSdkVersion', 35)
26
26
 
27
27
  versionCode 1
28
- versionName '3.4.18'
28
+ versionName '3.4.19'
29
29
 
30
30
  consumerProguardFiles('proguard-rules.pro')
31
31
  }
@@ -12,39 +12,23 @@ import expo.modules.libvlcplayer.managers.MediaPlayerManager
12
12
  import expo.modules.libvlcplayer.records.Slave
13
13
  import expo.modules.libvlcplayer.records.Tracks
14
14
 
15
- private const val BUFFERING_EVENT = "onBuffering"
16
- private const val PLAYING_EVENT = "onPlaying"
17
- private const val PAUSED_EVENT = "onPaused"
18
- private const val STOPPED_EVENT = "onStopped"
19
- private const val END_REACHED_EVENT = "onEndReached"
20
- private const val ENCOUNTERED_ERROR_EVENT = "onEncounteredError"
21
- private const val DIALOG_DISPLAY_EVENT = "onDialogDisplay"
22
- private const val TIME_CHANGED_EVENT = "onTimeChanged"
23
- private const val POSITION_CHANGED_EVENT = "onPositionChanged"
24
- private const val ES_ADDED_EVENT = "onESAdded"
25
- private const val RECORD_CHANGED_EVENT = "onRecordChanged"
26
- private const val SNAPSHOT_TAKEN_EVENT = "onSnapshotTaken"
27
- private const val FIRST_PLAY_EVENT = "onFirstPlay"
28
- private const val FOREGROUND_EVENT = "onForeground"
29
- private const val BACKGROUND_EVENT = "onBackground"
30
-
31
- val playerEvents =
15
+ private val PLAYER_EVENTS =
32
16
  arrayOf(
33
- BUFFERING_EVENT,
34
- PLAYING_EVENT,
35
- PAUSED_EVENT,
36
- STOPPED_EVENT,
37
- END_REACHED_EVENT,
38
- ENCOUNTERED_ERROR_EVENT,
39
- DIALOG_DISPLAY_EVENT,
40
- TIME_CHANGED_EVENT,
41
- POSITION_CHANGED_EVENT,
42
- ES_ADDED_EVENT,
43
- RECORD_CHANGED_EVENT,
44
- SNAPSHOT_TAKEN_EVENT,
45
- FIRST_PLAY_EVENT,
46
- FOREGROUND_EVENT,
47
- BACKGROUND_EVENT,
17
+ "onBuffering",
18
+ "onPlaying",
19
+ "onPaused",
20
+ "onStopped",
21
+ "onEndReached",
22
+ "onEncounteredError",
23
+ "onDialogDisplay",
24
+ "onTimeChanged",
25
+ "onPositionChanged",
26
+ "onESAdded",
27
+ "onRecordChanged",
28
+ "onSnapshotTaken",
29
+ "onFirstPlay",
30
+ "onForeground",
31
+ "onBackground",
48
32
  )
49
33
 
50
34
  class LibVlcPlayerModule : Module() {
@@ -79,7 +63,7 @@ class LibVlcPlayerModule : Module() {
79
63
  }
80
64
 
81
65
  View(LibVlcPlayerView::class) {
82
- Events(playerEvents)
66
+ Events(PLAYER_EVENTS)
83
67
 
84
68
  Prop("source") { view: LibVlcPlayerView, source: String? ->
85
69
  view.source = source
@@ -1,37 +1,21 @@
1
1
  import ExpoModulesCore
2
2
 
3
- private let bufferingEvent = "onBuffering"
4
- private let playingEvent = "onPlaying"
5
- private let pausedEvent = "onPaused"
6
- private let stoppedEvent = "onStopped"
7
- private let endReachedEvent = "onEndReached"
8
- private let encounteredErrorEvent = "onEncounteredError"
9
- private let dialogDisplayEvent = "onDialogDisplay"
10
- private let timeChangedEvent = "onTimeChanged"
11
- private let positionChangedEvent = "onPositionChanged"
12
- private let esAddedEvent = "onESAdded"
13
- private let recordChangedEvent = "onRecordChanged"
14
- private let snapshotTakenEvent = "onSnapshotTaken"
15
- private let firstPlayEvent = "onFirstPlay"
16
- private let foregroundEvent = "onForeground"
17
- private let backgroundEvent = "onBackground"
18
-
19
- let playerEvents = [
20
- bufferingEvent,
21
- playingEvent,
22
- pausedEvent,
23
- stoppedEvent,
24
- endReachedEvent,
25
- encounteredErrorEvent,
26
- dialogDisplayEvent,
27
- timeChangedEvent,
28
- positionChangedEvent,
29
- esAddedEvent,
30
- recordChangedEvent,
31
- snapshotTakenEvent,
32
- firstPlayEvent,
33
- foregroundEvent,
34
- backgroundEvent,
3
+ private let playerEvents = [
4
+ "onBuffering",
5
+ "onPlaying",
6
+ "onPaused",
7
+ "onStopped",
8
+ "onEndReached",
9
+ "onEncounteredError",
10
+ "onDialogDisplay",
11
+ "onTimeChanged",
12
+ "onPositionChanged",
13
+ "onESAdded",
14
+ "onRecordChanged",
15
+ "onSnapshotTaken",
16
+ "onFirstPlay",
17
+ "onForeground",
18
+ "onBackground",
35
19
  ]
36
20
 
37
21
  public class LibVlcPlayerModule: Module {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "3.4.18",
3
+ "version": "3.4.19",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",