@vindral/web-sdk 2.0.26 → 2.1.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/index.d.ts CHANGED
@@ -187,6 +187,8 @@ export interface PlaybackSource {
187
187
  readonly paused: boolean;
188
188
  readonly isSeeking: boolean;
189
189
  play(initiator: PlayInitiator): Promise<void>;
190
+ load?: () => void;
191
+ unload?: () => void;
190
192
  }
191
193
  interface MediaElementOptions {
192
194
  autoplay: boolean;
@@ -209,6 +211,7 @@ declare class MediaElement extends Emitter<MediaElementEvents> {
209
211
  private seekTimes;
210
212
  private seekStartTime?;
211
213
  private _userProvidedMuted;
214
+ private timers;
212
215
  private _userHasProvidedInput;
213
216
  isActivated: boolean;
214
217
  constructor({ type, autoplay, muted, logger, poster }: MediaElementOptions);
@@ -225,6 +228,8 @@ declare class MediaElement extends Emitter<MediaElementEvents> {
225
228
  set muted(muted: boolean);
226
229
  get userHasProvidedInput(): boolean;
227
230
  get paused(): boolean;
231
+ load: () => void;
232
+ unload: () => void;
228
233
  getPlaybackRate: () => number;
229
234
  getPlaybackState: () => PlaybackState;
230
235
  setPlaybackRate: (rate: number) => void;
@@ -1437,6 +1442,7 @@ export interface PublicVindralEvents {
1437
1442
  ["channels"]: ReadonlyArray<Channel>;
1438
1443
  ["context switch"]: Readonly<ContextSwitchState>;
1439
1444
  ["server wallclock time"]: Readonly<number>;
1445
+ ["is live"]: boolean;
1440
1446
  ["buffer state event"]: Readonly<BufferStateEvent>;
1441
1447
  ["initialized media"]: void;
1442
1448
  }
@@ -1581,7 +1587,6 @@ export interface ConnectResponse {
1581
1587
  export interface ApiClientOptions {
1582
1588
  publicEndpoint: string;
1583
1589
  tokenFactory?: AuthorizationTokenFactory;
1584
- sessionId?: string;
1585
1590
  }
1586
1591
  export interface AuthorizationContext {
1587
1592
  channelGroupId?: string;
@@ -1591,7 +1596,6 @@ export declare type AuthorizationTokenFactory = (context: AuthorizationContext)
1591
1596
  export declare class ApiClient {
1592
1597
  private baseUrl;
1593
1598
  private tokenFactory?;
1594
- private sessionId?;
1595
1599
  constructor(options: ApiClientOptions);
1596
1600
  connect(options: ConnectOptions): Promise<ConnectResponse>;
1597
1601
  getChannel(channelId: string): Promise<Channel>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vindral/web-sdk",
3
- "version": "2.0.26",
3
+ "version": "2.1.0",
4
4
  "homepage": "https://vindral.com",
5
5
  "description": "Web SDK for viewing Vindral streams",
6
6
  "license": "SEE LICENSE IN https://www.vindral.com/terms-conditions",