@theoplayer/extended 6.6.1 → 6.8.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.
@@ -144,6 +144,7 @@ interface Ad {
144
144
  * <br/> - `'google-dai'`
145
145
  * <br/> - `'freewheel'`
146
146
  * <br/> - `'mediatailor'`
147
+ * <br/> - `'chromecast'`
147
148
  *
148
149
  * @defaultValue `'theo'`
149
150
  */
@@ -2135,7 +2136,7 @@ interface MetadataDescription {
2135
2136
  */
2136
2137
  interface ChromecastMetadataDescription extends MetadataDescription {
2137
2138
  /**
2138
- * List of content images for the current source.
2139
+ * List of content images, e.g. a thumbnail for a video, a poster for movie or the cover art for a music album.
2139
2140
  *
2140
2141
  * @remarks
2141
2142
  * <br/> - The string must be a valid URL.
@@ -2144,25 +2145,146 @@ interface ChromecastMetadataDescription extends MetadataDescription {
2144
2145
  */
2145
2146
  readonly images?: string[] | ChromecastMetadataImage[];
2146
2147
  /**
2147
- * The release date of the current source.
2148
+ * The release date of the content.
2148
2149
  *
2149
2150
  * @remarks
2150
2151
  * <br/> - The format is "YYYY-MM-DD".
2151
2152
  */
2152
2153
  readonly releaseDate?: string;
2153
2154
  /**
2154
- * The release year of the current source.
2155
+ * The release year of the content.
2155
2156
  *
2156
2157
  * @deprecated Superseded by {@link ChromecastMetadataDescription.releaseDate}.
2157
2158
  */
2158
2159
  readonly releaseYear?: number;
2159
2160
  /**
2160
- * The subtitle of the current source.
2161
+ * The subtitle of the content.
2161
2162
  *
2162
2163
  * @remarks
2163
2164
  * <br/> - This should be a short explanation about the content.
2164
2165
  */
2165
2166
  readonly subtitle?: string;
2167
+ /**
2168
+ * The studio that produced the movie.
2169
+ *
2170
+ * @remarks
2171
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'movie'`.
2172
+ */
2173
+ readonly studio?: string;
2174
+ /**
2175
+ * The series title of the TV show.
2176
+ *
2177
+ * @remarks
2178
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2179
+ */
2180
+ readonly seriesTitle?: string;
2181
+ /**
2182
+ * The season number of the TV show.
2183
+ *
2184
+ * @remarks
2185
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2186
+ */
2187
+ readonly season?: number;
2188
+ /**
2189
+ * The episode number of the TV show.
2190
+ *
2191
+ * @remarks
2192
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2193
+ */
2194
+ readonly episode?: number;
2195
+ /**
2196
+ * The original air date of the TV show.
2197
+ *
2198
+ * @remarks
2199
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2200
+ * <br/> - The format is "YYYY-MM-DD".
2201
+ */
2202
+ readonly originalAirdate?: string;
2203
+ /**
2204
+ * The episode title of the TV show.
2205
+ *
2206
+ * @remarks
2207
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2208
+ *
2209
+ * @deprecated Superseded by {@link MetadataDescription.title}.
2210
+ */
2211
+ readonly episodeTitle?: string;
2212
+ /**
2213
+ * The season number of the TV show.
2214
+ *
2215
+ * @remarks
2216
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2217
+ *
2218
+ * @deprecated Superseded by {@link ChromecastMetadataDescription.season}.
2219
+ */
2220
+ readonly seasonNumber?: number;
2221
+ /**
2222
+ * The episode number of the TV show.
2223
+ *
2224
+ * @remarks
2225
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'tv-show'`.
2226
+ *
2227
+ * @deprecated Superseded by {@link ChromecastMetadataDescription.episode}.
2228
+ */
2229
+ readonly episodeNumber?: number;
2230
+ /**
2231
+ * The album name of the music track.
2232
+ *
2233
+ * @remarks
2234
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2235
+ */
2236
+ readonly albumName?: string;
2237
+ /**
2238
+ * The album artist of the music track.
2239
+ *
2240
+ * @remarks
2241
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2242
+ */
2243
+ readonly albumArtist?: string;
2244
+ /**
2245
+ * The artist of the music track.
2246
+ *
2247
+ * @remarks
2248
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2249
+ */
2250
+ readonly artist?: string;
2251
+ /**
2252
+ * The composer of the music track.
2253
+ *
2254
+ * @remarks
2255
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2256
+ */
2257
+ readonly composer?: string;
2258
+ /**
2259
+ * The song name of the music track.
2260
+ *
2261
+ * @remarks
2262
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2263
+ */
2264
+ readonly songName?: string;
2265
+ /**
2266
+ * The track number of the music track.
2267
+ *
2268
+ * @remarks
2269
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2270
+ */
2271
+ readonly trackNumber?: number;
2272
+ /**
2273
+ * The disc number of the music track.
2274
+ *
2275
+ * @remarks
2276
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2277
+ */
2278
+ readonly discNumber?: number;
2279
+ /**
2280
+ * The artist name of the music track.
2281
+ *
2282
+ * @remarks
2283
+ * <br/> - Only valid when {@link ChromecastMetadataDescription."type"} is `'audio'`.
2284
+ *
2285
+ * @deprecated Superseded by {@link ChromecastMetadataDescription.artist}.
2286
+ */
2287
+ readonly artistName?: string;
2166
2288
  /**
2167
2289
  * The metadata type of the current source.
2168
2290
  *
@@ -4055,6 +4177,14 @@ interface Quality extends EventDispatcher<QualityEventMap> {
4055
4177
  * <br/> - A quality can be unavailable due to a DRM restriction (e.g. HDCP).
4056
4178
  */
4057
4179
  readonly available: boolean;
4180
+ /**
4181
+ * The HLS SCORE attribute.
4182
+ *
4183
+ * @remarks
4184
+ * <br/> - Available since v6.8.0.
4185
+ * <br/> - Only for HLS streams.
4186
+ */
4187
+ readonly score: number | undefined;
4058
4188
  }
4059
4189
  /**
4060
4190
  * Represents a quality of a video track.
@@ -5790,6 +5920,15 @@ interface ABRConfiguration {
5790
5920
  * this maximum.
5791
5921
  */
5792
5922
  readonly maxBufferLength: number;
5923
+ /**
5924
+ * Clears the buffer when setting a single target quality on a MediaTrack.
5925
+ *
5926
+ * @remarks
5927
+ * <br/> - Available since v6.8.0 for HLS streams only.
5928
+ *
5929
+ * @defaultValue `false`
5930
+ */
5931
+ clearBufferWhenSettingTargetQuality: boolean;
5793
5932
  }
5794
5933
 
5795
5934
  /**