expo-libvlc-player 2.0.0 → 2.0.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.
@@ -1,7 +1,7 @@
1
1
  apply plugin: "com.android.library"
2
2
 
3
3
  group = "expo.modules.libvlcplayer"
4
- version = "2.0.0"
4
+ version = "2.0.1"
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -27,7 +27,7 @@ android {
27
27
  namespace "expo.modules.libvlcplayer"
28
28
  defaultConfig {
29
29
  versionCode 1
30
- versionName "2.0.0"
30
+ versionName "2.0.1"
31
31
  consumerProguardFiles("proguard-rules.pro")
32
32
  }
33
33
  lintOptions {
@@ -231,7 +231,6 @@ class LibVlcPlayerView(
231
231
 
232
232
  fun setupPlayer() {
233
233
  mediaPlayer?.let { player ->
234
- attachPlayer()
235
234
  setPlayerTracks()
236
235
 
237
236
  if (volume != MAX_PLAYER_VOLUME || mute) {
@@ -18,6 +18,8 @@ fun LibVlcPlayerView.setMediaPlayerListener() {
18
18
  if (firstPlay) {
19
19
  attachPlayer()
20
20
 
21
+ setupPlayer()
22
+
21
23
  val mediaInfo = getMediaInfo()
22
24
 
23
25
  onFirstPlay(mediaInfo)
@@ -11,6 +11,8 @@ extension LibVlcPlayerView: VLCMediaPlayerDelegate {
11
11
  onPlaying([:])
12
12
 
13
13
  if firstPlay {
14
+ setupPlayer()
15
+
14
16
  let mediaInfo = getMediaInfo()
15
17
 
16
18
  onFirstPlay(mediaInfo)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",