react-native-theoplayer 3.0.0-pre1 → 3.0.0

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,11 +5,16 @@ 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.0.0-pre1] - 23-10-05
8
+ ## [3.0.0] - 23-10-06
9
+
10
+ ### Fixed
11
+
12
+ - Fixed sourceDescription processing on iOS for offline playback.
9
13
 
10
14
  ### Changed
11
15
 
12
16
  - Added support for THEOplayer 6.0. See [THEOplayer's changelog](https://docs.theoplayer.com/changelog.md) for details.
17
+ - Bumped minimal version for SideloadedTextTracks connection on iOS to v6.1.1 which contains fix for iOS 17.0.
13
18
 
14
19
  ### Added
15
20
 
@@ -134,9 +134,10 @@ class THEOplayerRCTCacheAPI: RCTEventEmitter {
134
134
  @objc(createTask:params:)
135
135
  func createTask(_ src: NSDictionary, params: NSDictionary) -> Void {
136
136
  if DEBUG_CACHE_API { PrintUtils.printLog(logText: "[NATIVE] createTask triggered on Cache API.") }
137
- let params = THEOplayerRCTCachingParametersBuilder.buildCachingParameters(params)
138
- if let srcDescription = THEOplayerRCTSourceDescriptionBuilder.buildSourceDescription(src),
139
- let newTask = THEOplayer.cache.createTask(source: srcDescription, parameters: params) {
137
+ let params = THEOplayerRCTCachingParametersBuilder.buildCachingParameters(params)
138
+ let (sourceDescription, _) = THEOplayerRCTSourceDescriptionBuilder.buildSourceDescription(src)
139
+ if let srcDescription = sourceDescription,
140
+ let newTask = THEOplayer.cache.createTask(source: srcDescription, parameters: params) {
140
141
  if DEBUG_CACHE_API { PrintUtils.printLog(logText: "[NATIVE] New cache task created with id \(newTask.id)") }
141
142
 
142
143
  // emit onAddCachingTaskEvent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "3.0.0-pre1",
3
+ "version": "3.0.0",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
47
47
  end
48
48
  if theofeatures.include?("SIDELOADED_TEXTTRACKS")
49
49
  puts "Adding THEOplayer-Connector-SideloadedSubtitle"
50
- s.dependency "THEOplayer-Connector-SideloadedSubtitle", "~> 6.0.1"
50
+ s.dependency "THEOplayer-Connector-SideloadedSubtitle", "~> 6.1", ">= 6.1.1"
51
51
  end
52
52
  end
53
53