expo-libvlc-player 2.2.6 → 2.3.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/README.md CHANGED
@@ -21,11 +21,11 @@
21
21
 
22
22
  ### Supported versions
23
23
 
24
- | Platform | Version |
25
- | ------------ | ------- |
26
- | React Native | 0.79 |
27
- | Android | 7+ |
28
- | iOS | 15.1+ |
24
+ | Platform | Version |
25
+ | -------------------- | ------- |
26
+ | React Native | 0.79 |
27
+ | Android / Android TV | 7+ |
28
+ | iOS / Apple TV | 15.1+ |
29
29
 
30
30
  ### Installation
31
31
 
@@ -57,7 +57,7 @@ Run `npx pod-install` after installing the npm package.
57
57
 
58
58
  #### Local network privacy
59
59
 
60
- On iOS, the `MobileVLCKit` player seems to interact with the local network when playing media from external sources.
60
+ On iOS, the `VLCKit` player seems to interact with the local network when playing media from external sources.
61
61
 
62
62
  Starting in iOS 14, a clear message must be provided to the `NSLocalNetworkUsageDescription` key in the Info.plist file.
63
63
 
@@ -65,12 +65,20 @@ https://developer.apple.com/documentation/technotes/tn3179-understanding-local-n
65
65
 
66
66
  #### Audio playback issue
67
67
 
68
- On iOS, the `MobileVLCKit` player experiences a small audio delay when resuming or muting media playback.
68
+ On iOS, the `VLCKit` player experiences a small audio delay when resuming or muting media playback.
69
69
 
70
70
  This might be related to the internal clock used by the library core causing inaccurate position/time values.
71
71
 
72
72
  https://code.videolan.org/videolan/VLCKit/-/issues/233
73
73
 
74
+ ### Configure for TV
75
+
76
+ Set the `EXPO_TV` environment variable, and run prebuild to make the TV modifications to the project.
77
+
78
+ ```
79
+ EXPO_TV=1 npx expo prebuild --clean
80
+ ```
81
+
74
82
  ### Configuration in app config
75
83
 
76
84
  You can configure `expo-libvlc-player` using its built-in config plugin if you use config plugins in your project.
@@ -235,8 +243,8 @@ The `LibVlcPlayerView` extends React Native `ViewProps` and implements the follo
235
243
 
236
244
  This project is not affiliated with, endorsed by, or officially supported by VideoLAN. The VLC icon is trademark of VideoLAN and is used here solely to indicate compatibility with the following **LibVLC** bindings:
237
245
 
238
- - `libvlcjni` for Android
239
- - `MobileVLCKit` for iOS
246
+ - `libvlcjni` for Android / Android TV
247
+ - `VLCKit` for iOS / Apple TV
240
248
 
241
249
  For official VLC products and support, please visit [videolan.org](https://www.videolan.org/).
242
250
 
@@ -1,7 +1,7 @@
1
1
  apply plugin: "com.android.library"
2
2
 
3
3
  group = "expo.modules.libvlcplayer"
4
- version = "2.2.6"
4
+ version = "2.3.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.2.6"
30
+ versionName "2.3.1"
31
31
  consumerProguardFiles("proguard-rules.pro")
32
32
  }
33
33
  lintOptions {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "platforms": [
3
- "ios",
3
+ "apple",
4
4
  "android"
5
5
  ],
6
- "ios": {
6
+ "apple": {
7
7
  "modules": [
8
8
  "LibVlcPlayerModule"
9
9
  ]
@@ -1,4 +1,8 @@
1
- import MobileVLCKit
1
+ #if os(tvOS)
2
+ import TVVLCKit
3
+ #else
4
+ import MobileVLCKit
5
+ #endif
2
6
 
3
7
  extension LibVlcPlayerView: VLCCustomDialogRendererProtocol {
4
8
  func showError(
@@ -11,14 +11,16 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
13
  s.platforms = {
14
- :ios => '15.1'
14
+ :ios => '15.1',
15
+ :tvos => '15.1',
15
16
  }
16
17
  s.swift_version = '5.4'
17
18
  s.source = { git: 'https://github.com/cornejobarraza/expo-libvlc-player' }
18
19
  s.static_framework = true
19
20
 
20
21
  s.dependency 'ExpoModulesCore'
21
- s.dependency 'MobileVLCKit', '3.7.0'
22
+ s.ios.dependency 'MobileVLCKit', '3.7.0'
23
+ s.tvos.dependency 'TVVLCKit', '3.7.0'
22
24
 
23
25
  # Swift/Objective-C compatibility
24
26
  s.pod_target_xcconfig = {
@@ -1,5 +1,9 @@
1
1
  import ExpoModulesCore
2
- import MobileVLCKit
2
+ #if os(tvOS)
3
+ import TVVLCKit
4
+ #else
5
+ import MobileVLCKit
6
+ #endif
3
7
  import UIKit
4
8
 
5
9
  let defaultPlayerRate: Float = 1.0
@@ -1,4 +1,8 @@
1
- import MobileVLCKit
1
+ #if os(tvOS)
2
+ import TVVLCKit
3
+ #else
4
+ import MobileVLCKit
5
+ #endif
2
6
 
3
7
  extension LibVlcPlayerView: VLCMediaPlayerDelegate {
4
8
  func mediaPlayerStateChanged(_: Notification) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "2.2.6",
3
+ "version": "2.3.1",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "@eslint/js": "^9.30.0",
36
36
  "@types/react": "~19.0.0",
37
37
  "eslint": "^9.30.0",
38
- "expo": "~53.0.24",
38
+ "expo": "~53.0.25",
39
39
  "expo-module-scripts": "^4.1.6",
40
40
  "globals": "^16.2.0",
41
41
  "husky": "^9.1.7",