@jwplayer/jwplayer-react-native 1.2.0 → 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.
- package/README.md +114 -21
- package/RNJWPlayer.podspec +1 -1
- package/android/build.gradle +14 -1
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerModule.java +19 -4
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerView.java +270 -105
- package/android/src/main/java/com/jwplayer/rnjwplayer/Util.java +13 -1
- package/badges/version.svg +1 -1
- package/docs/CONFIG-REFERENCE.md +747 -0
- package/docs/MIGRATION-GUIDE.md +617 -0
- package/docs/PLATFORM-DIFFERENCES.md +693 -0
- package/docs/props.md +15 -3
- package/index.d.ts +207 -249
- package/ios/RNJWPlayer/RNJWPlayerView.swift +278 -21
- package/ios/RNJWPlayer/RNJWPlayerViewController.swift +33 -16
- package/package.json +2 -2
- package/types/advertising.d.ts +514 -0
- package/types/index.d.ts +21 -0
- package/types/legacy.d.ts +82 -0
- package/types/platform-specific.d.ts +641 -0
- package/types/playlist.d.ts +410 -0
- package/types/unified-config.d.ts +591 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- 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 |
|