@jwplayer/jwplayer-react-native 1.1.3 → 1.3.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.
Files changed (36) hide show
  1. package/README.md +114 -21
  2. package/RNJWPlayer.podspec +1 -1
  3. package/android/build.gradle +14 -1
  4. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerModule.java +27 -0
  5. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerView.java +373 -204
  6. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerViewManager.java +16 -0
  7. package/android/src/main/java/com/jwplayer/rnjwplayer/Util.java +13 -1
  8. package/badges/version.svg +1 -1
  9. package/docs/CONFIG-REFERENCE.md +747 -0
  10. package/docs/MIGRATION-GUIDE.md +617 -0
  11. package/docs/PLATFORM-DIFFERENCES.md +693 -0
  12. package/docs/props.md +15 -3
  13. package/index.d.ts +225 -216
  14. package/index.js +34 -0
  15. package/ios/RNJWPlayer/RNJWPlayerView.swift +365 -10
  16. package/ios/RNJWPlayer/RNJWPlayerViewController.swift +45 -16
  17. package/ios/RNJWPlayer/RNJWPlayerViewManager.m +2 -0
  18. package/ios/RNJWPlayer/RNJWPlayerViewManager.swift +13 -0
  19. package/package.json +2 -2
  20. package/types/advertising.d.ts +514 -0
  21. package/types/index.d.ts +21 -0
  22. package/types/legacy.d.ts +82 -0
  23. package/types/platform-specific.d.ts +641 -0
  24. package/types/playlist.d.ts +410 -0
  25. package/types/unified-config.d.ts +591 -0
  26. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  27. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  28. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  29. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  30. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  31. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  32. package/android/.gradle/8.9/gc.properties +0 -0
  33. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  34. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  35. package/android/.gradle/vcs-1/gc.properties +0 -0
  36. package/docs/types.md +0 -254
package/docs/types.md DELETED
@@ -1,254 +0,0 @@
1
- # Collection of types
2
- A better definition of types for easy reading. All intended to be used with `JwConfig` and best implemented by parsing JWP Delivery API response.
3
-
4
- ## Types of types
5
- There will be interfaces and types defined below. Types will be formated Values/Type, and should be treated as an enum. (see [JwStretching](#JwStretching))
6
-
7
- ### JwStretching
8
- |Values |Type |
9
- |----------------------------------|-------------------|
10
- |uniform |String |
11
- |fill |String |
12
- |exactfit |String |
13
- |none |String |
14
-
15
- ### JwThumbnailPreview
16
- |Values |Type |
17
- |----------------------------------|-------------------|
18
- |101 |number |
19
- |102 |number |
20
- |103 |number |
21
-
22
- ### JwPlaylistItem
23
- |Field |Description |Type |Optional|Platform Specific|
24
- |----------------------------------|-------------------|------------------------|--------|-----------------|
25
- |title | |string |TRUE | |
26
- |description | |string |TRUE | |
27
- |file | |string |TRUE | |
28
- |image | |string |TRUE | |
29
- |mediaid | |string |TRUE | |
30
- |feedid | |string |TRUE | |
31
- |recommendations | |string |TRUE | |
32
- |starttime | |number |TRUE | |
33
- |duration | |number |TRUE | |
34
- |tracks | |JwTrack[] |TRUE | |
35
- |sources | |JwSource[] |TRUE | |
36
- |externalMetadata | |JwExternalMetadata[] |TRUE | |
37
- |adschedule | |JwAdBreak[] |TRUE | |
38
- |schedule | |[key: string]: JwAdBreak|TRUE | |
39
- |imaDaiSettings | |JwImaDaiSettings |TRUE | |
40
- |httpheaders | |[key: string]: string |TRUE | |
41
-
42
- ### JwTrack
43
- |Field |Description |Type |Optional|Platform Specific|
44
- |----------------------------------|-------------------|------------------------|--------|-----------------|
45
- |id | |string |TRUE | |
46
- |file | |string |TRUE | |
47
- |kind | |string |TRUE | |
48
- |label | |string |TRUE | |
49
- |default | |boolean |TRUE | |
50
-
51
- ### JwSource
52
- |Field |Description |Type |Optional|Platform Specific|
53
- |----------------------------------|-------------------|------------------------|--------|-----------------|
54
- |drm | |JwDrm |TRUE | |
55
- |file | |string |TRUE | |
56
- |label | |string |TRUE | |
57
- |default | |string |TRUE | |
58
- |type | |string |TRUE | |
59
- |httpheaders | |[key: string]: string |TRUE | |
60
-
61
- ### JwDrm
62
- |Field |Description |Type |Optional|Platform Specific|
63
- |----------------------------------|-------------------|------------------------|--------|-----------------|
64
- |widevine | |JwWidevine |TRUE | |
65
- |fairplay | |JwFairplay |TRUE | |
66
-
67
- ### JwWidevine
68
- |Field |Description |Type |Optional|Platform Specific|
69
- |----------------------------------|-------------------|------------------------|--------|-----------------|
70
- |url | |string |TRUE |Android |
71
- |keySetId | |string |TRUE |Android |
72
-
73
- ### JwFairplay
74
- |Field |Description |Type |Optional|Platform Specific|
75
- |----------------------------------|-------------------|------------------------|--------|-----------------|
76
- |processSpcUrl | |string |TRUE |iOS |
77
- |certificateUrl | |string |TRUE |iOS |
78
-
79
- ### JwRelatedConfig
80
- |Field |Description |Type |Optional|Platform Specific|
81
- |----------------------------------|-------------------|------------------------|--------|-----------------|
82
- |file | |string | | |
83
- |oncomplete | |JwRelatedOnComplete | | |
84
- |onclick | |JwOnRelatedClick | | |
85
- |autoplaytimer | |number | | |
86
-
87
- ### JwRelatedOnComplete
88
- |Values |Type |
89
- |----------------------------------|-------------------|
90
- |hide |string |
91
- |show |string |
92
- |none |string |
93
- |autoplay |string |
94
-
95
- ### JwOnRelatedClick
96
- |Values |Type |
97
- |----------------------------------|-------------------|
98
- |play |string |
99
- |link |string |
100
-
101
- ### JwExternalMetadata
102
- |Field |Description |Type |Optional|Platform Specific|
103
- |----------------------------------|-------------------|------|--------|-----------------|
104
- |startTime |double |number|TRUE | |
105
- |endTime |double |number|TRUE | |
106
- |id |int |number|FALSE | |
107
-
108
- ### JwImaSdkSettings
109
- |Field |Description |Type |Optional|Platform Specific|
110
- |----------------------------------|-------------------|------|--------|-----------------|
111
- |sessionId | |string|TRUE | |
112
- |ppid | |string|TRUE | |
113
- |autoPlayAdBreaks | |boolean|TRUE | |
114
- |language | |string|TRUE | |
115
- |maxRedirects |int |number|TRUE | |
116
- |playerType | |string|TRUE | |
117
- |playerVersion | |string|TRUE | |
118
- |isDebugMode | |boolean|TRUE | |
119
- |doesRestrictToCustomPlayer | |boolean|TRUE | |
120
-
121
-
122
- ### JwImaDaiSettings
123
- |Field |Description |Type |Optional|Platform Specific|
124
- |----------------------------------|-------------------|------|--------|-----------------|
125
- |videoID | |string|TRUE | |
126
- |cmsID | |string|TRUE | |
127
- |assetKey | |string|TRUE | |
128
- |apiKey | |string|TRUE | |
129
- |streamType | |string|TRUE | |
130
- |adTagParameters | |[key: string]: string|TRUE | |
131
-
132
- ### JwLogoView
133
- |Field |Description |Type |Optional|Platform Specific|
134
- |----------------------------------|-------------------|------|--------|-----------------|
135
- |imageFile | |string|FALSE | |
136
- |fades | |boolean|FALSE | |
137
- |margin | |number|TRUE | |
138
- |position | |JwLogoPosition|TRUE | |
139
- |webLink | |string|FALSE | |
140
-
141
- ### VmapAdvertisingConfig
142
- |Field |Description |Type |Optional|Platform Specific|
143
- |----------------------------------|-------------------|------|--------|-----------------|
144
- |cuetext | |string|TRUE | |
145
- |adpodmessage | |string|TRUE | |
146
- |vpaidcontrols | |boolean|TRUE | |
147
- |requestTimeout | |number|TRUE | |
148
- |creativeTimeout | |number|TRUE | |
149
- |conditionaladoptout | |boolean|TRUE | |
150
- |schedule |Must bestring for VMAP|string| | |
151
- |rules | |JwAdRules|TRUE | |
152
- |allowedOmidVendors | |string[]|TRUE | |
153
- |omidSupport | |string|TRUE | |
154
- |admessage | |string|TRUE | |
155
- |skipmessage | |string|TRUE | |
156
- |skiptext | |string|TRUE | |
157
- |skipoffset | |number|TRUE | |
158
-
159
- ### JwAdRules
160
- |Field |Description |Type |Optional|Platform Specific|
161
- |----------------------------------|-------------------|------|--------|-----------------|
162
- |startOn | |number| | |
163
- |frequency | |number| | |
164
- |timeBetweenAds | |number| | |
165
- |startOnSeek | |JwStartOnSeek| | |
166
-
167
- ### JwStartOnSeek
168
- |Values |Type |
169
- |----------------------------------|-------------------|
170
- |pre |string |
171
- |none |string |
172
-
173
- ### VastAdvertisingConfig
174
- |Field |Description |Type |Optional|Platform Specific|
175
- |----------------------------------|-------------------|-----------|--------|-----------------|
176
- |cuetext | |string |TRUE | |
177
- |adpodmessage | |string |TRUE | |
178
- |vpaidcontrols | |boolean |TRUE | |
179
- |requestTimeout | |number |TRUE | |
180
- |creativeTimeout | |number |TRUE | |
181
- |conditionaladoptout | |boolean |TRUE | |
182
- |schedule | |JwAdBreak[]|TRUE | |
183
- |rules | |JwAdRules |TRUE | |
184
- |allowedOmidVendors | |string[] |TRUE | |
185
- |omidSupport | |string |TRUE | |
186
- |admessage | |string |TRUE | |
187
- |skipmessage | |string |TRUE | |
188
- |skiptext | |string |TRUE | |
189
- |skipoffset | |number |TRUE | |
190
-
191
- ### ImaVmapAdvertisingConfig
192
- |Field |Description |Type |Optional|Platform Specific|
193
- |----------------------------------|-------------------|-----------|--------|-----------------|
194
- |imaSdkSettings | |JwImaSdkSettings|TRUE | |
195
- |tag | |string |TRUE | |
196
-
197
- ### ImaDaiAdvertisingConfig
198
- |Field |Description |Type |Optional|Platform Specific|
199
- |----------------------------------|-------------------|-----------|--------|-----------------|
200
- |imaDaiSettings | |JwImaDaiSettings|TRUE | |
201
- |imaSdkSettings | |JwImaSdkSettings|TRUE | |
202
-
203
- ### JwLogoPosition
204
- |Values |Type |
205
- |----------------------------------|-------------------|
206
- |topLeft |string |
207
- |topRight |string |
208
- |bottomLeft |string |
209
- |bottomRight |string |
210
-
211
- ### JwAdvertisingConfig
212
- |Values |Type |
213
- |----------------------------------|-------------------|
214
- |VmapAdvertisingConfig |VmapAdvertisingConfig|
215
- |VastAdvertisingConfig |VastAdvertisingConfig|
216
- |ImaVmapAdvertisingConfig |ImaVmapAdvertisingConfig|
217
- |ImaAdvertisingConfig |ImaAdvertisingConfig|
218
- |ImaDaiAdvertisingConfig |ImaDaiAdvertisingConfig|
219
-
220
- ### JwAdBreak
221
- |Field |Description |Type |Optional|Platform Specific|
222
- |----------------------------------|-------------------|---------------------|--------|-----------------|
223
- |ad | |string|string[] |TRUE | |
224
- |offset | |string |TRUE | |
225
- |skipoffset |int |number |TRUE | |
226
- |type | |JwAdType |TRUE | |
227
- |custParams | |[key: string]: string|TRUE | |
228
-
229
- ### JwAdType
230
- |Values |Type |
231
- |----------------------------------|-------------------|
232
- |LINEAR |string |
233
- |NONLINEAR |string |
234
-
235
- ### JwUiConfig
236
- |Field |Description|Type |Optional|Platform Specific|
237
- |--------------------------|-----------|-------|--------|-----------------|
238
- |hasOverlay | |boolean|TRUE |Android |
239
- |hasControlbar | |boolean|TRUE |Android |
240
- |hasCenterControls | |boolean|TRUE |Android |
241
- |hasNextUp | |boolean|TRUE |Android |
242
- |hasSideSeek | |boolean|TRUE |Android |
243
- |hasLogoView | |boolean|TRUE |Android |
244
- |hasError | |boolean|TRUE |Android |
245
- |hasPlaylist | |boolean|TRUE |Android |
246
- |hasQualitySubMenu | |boolean|TRUE |Android |
247
- |hasCaptionsSubMenu | |boolean|TRUE |Android |
248
- |hasPlaybackRatesSubMenu | |boolean|TRUE |Android |
249
- |hasAudiotracksSubMenu | |boolean|TRUE |Android |
250
- |hasMenu | |boolean|TRUE |Android |
251
- |hasPlayerControlsContainer| |boolean|TRUE |Android |
252
- |hasCastingMenu | |boolean|TRUE |Android |
253
- |hasChapters | |boolean|TRUE |Android |
254
- |hasAds | |boolean|TRUE |Android |