videojs-hls-boomstream 1.2.87 → 1.2.88

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
@@ -1,4 +1,6 @@
1
1
  # Changelog of ```videojs-hls-boomstream```
2
+ ## 1.2.88
3
+ FIX: Исправлено воспроизведение стрима в плейлисте, переделан механизм передачи ключа для расшифровки
2
4
  ## 1.2.87
3
5
  FIX: Убрал вывод ошибки в консоль при ограничении доступа
4
6
  ## 1.2.86-alpha.10
package/dist/typings.d.ts CHANGED
@@ -177,3 +177,142 @@ export type Bases = {
177
177
  frontend: string;
178
178
  io: string;
179
179
  }
180
+
181
+ export enum SkinType {
182
+ Light = '',
183
+ Dark = 'dark',
184
+ Device = 'device'
185
+ }
186
+
187
+ export enum Position {
188
+ Right = 'right',
189
+ Left = 'left'
190
+ }
191
+
192
+ export enum AreaTypes {
193
+ None = '',
194
+ Chat = 'bms-chat',
195
+ Playlist = 'bms-playlist',
196
+ Settings = 'bms-settings',
197
+ Information = 'bms-information',
198
+ FrameArea = 'sidebar-frame'
199
+ }
200
+
201
+ export enum SubscriptionTypes {
202
+ Subscription = 'subscription',
203
+ Payment = 'payment',
204
+ Password = 'password',
205
+ Collection = 'collection'
206
+ }
207
+
208
+ export enum TranslationLiveStatus {
209
+ UNCHEKED,
210
+ ONLINE,
211
+ OFFLINE
212
+ }
213
+
214
+ export interface SubscriptionOptions {
215
+ about: string;
216
+ access_expire?: Date;
217
+ code: string;
218
+ cost: string;
219
+ format: string;
220
+ period: string;
221
+ preview_time: string;
222
+ subscription_type: SubscriptionTypes;
223
+ title: string;
224
+ usePromocode: boolean;
225
+ }
226
+
227
+ export interface GatewayOption {
228
+ id: string;
229
+ name: string;
230
+ title: string;
231
+ }
232
+
233
+ export interface BmsSourcePoster {
234
+ height: number;
235
+ link: string;
236
+ width: number;
237
+ }
238
+
239
+ export type Media = {
240
+ code: string;
241
+ links: {
242
+ hls: string;
243
+ raw: string;
244
+ vtt: string;
245
+ };
246
+ posters: Array<Poster>;
247
+ source: boolean;
248
+ sources: Array<unknown>;
249
+ title: string;
250
+ token: string;
251
+ tokenToDecrypt?: string;
252
+ };
253
+
254
+ export type Video = Media & { duration: string };
255
+
256
+ export type Record = Video & { type: string };
257
+
258
+ export type Stream = Media & {
259
+ chatIsEnabled: boolean;
260
+ checkLiveUrl: string;
261
+ entityCode: string;
262
+ isPublish: boolean;
263
+ link: null | string;
264
+ message: string;
265
+ records: Array<Record>;
266
+ type: string;
267
+ };
268
+
269
+ export type MediaData = Stream | Video | Array<Stream | Video>;
270
+
271
+ export interface BmsPlayerConfig {
272
+ [key: string]: any;
273
+ bases: {
274
+ api: string;
275
+ frontend: string;
276
+ io: string;
277
+ parked?: string;
278
+ };
279
+ code: string;
280
+ language: string;
281
+ id_recovery: null | string;
282
+ subscriptions?: SubscriptionOptions[];
283
+ gateways?: GatewayOption[];
284
+ entity: {
285
+ code: string;
286
+ title: string;
287
+ };
288
+ device_ban: '0' | '1';
289
+ time?: Date;
290
+ recoveryCode?: string;
291
+ contacts?: {
292
+ contact: string;
293
+ phone: string;
294
+ email: string;
295
+ site: string;
296
+ description: string;
297
+ };
298
+ posters: BmsSourcePoster[];
299
+ ppv_logo?: string;
300
+ ppv_play_button_state_play?: string;
301
+ mediaData: MediaData;
302
+ }
303
+
304
+ export interface BmsVideoSource {
305
+ bms: boolean;
306
+ code: string;
307
+ duration: string;
308
+ encoded: boolean;
309
+ isLive: boolean;
310
+ name: string;
311
+ poster: string;
312
+ posters: BmsSourcePoster[];
313
+ src: string;
314
+ state: string;
315
+ type: string;
316
+ token?: string;
317
+ }
318
+