@stream-io/video-client 0.2.0 → 0.2.2

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.
@@ -387,11 +387,11 @@ export declare class Call {
387
387
  /**
388
388
  * Starts the broadcasting of the call.
389
389
  */
390
- startBroadcasting: () => Promise<StartBroadcastingResponse>;
390
+ startHLS: () => Promise<StartBroadcastingResponse>;
391
391
  /**
392
392
  * Stops the broadcasting of the call.
393
393
  */
394
- stopBroadcasting: () => Promise<StopBroadcastingResponse>;
394
+ stopHLS: () => Promise<StopBroadcastingResponse>;
395
395
  /**
396
396
  * Updates the call settings or custom data.
397
397
  *
@@ -467,6 +467,12 @@ export interface CallCreatedEvent {
467
467
  * @interface CallEndedEvent
468
468
  */
469
469
  export interface CallEndedEvent {
470
+ /**
471
+ *
472
+ * @type {CallResponse}
473
+ * @memberof CallEndedEvent
474
+ */
475
+ call: CallResponse;
470
476
  /**
471
477
  *
472
478
  * @type {string}
@@ -1281,6 +1287,18 @@ export interface CallSessionResponse {
1281
1287
  * @memberof CallSessionResponse
1282
1288
  */
1283
1289
  id: string;
1290
+ /**
1291
+ *
1292
+ * @type {string}
1293
+ * @memberof CallSessionResponse
1294
+ */
1295
+ live_ended_at?: string;
1296
+ /**
1297
+ *
1298
+ * @type {string}
1299
+ * @memberof CallSessionResponse
1300
+ */
1301
+ live_started_at?: string;
1284
1302
  /**
1285
1303
  *
1286
1304
  * @type {Array<CallParticipantResponse>}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.2.0";
1
+ export declare const version = "0.2.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-client",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
package/src/Call.ts CHANGED
@@ -1483,7 +1483,7 @@ export class Call {
1483
1483
  /**
1484
1484
  * Starts the broadcasting of the call.
1485
1485
  */
1486
- startBroadcasting = async () => {
1486
+ startHLS = async () => {
1487
1487
  return this.streamClient.post<StartBroadcastingResponse>(
1488
1488
  `${this.streamClientBasePath}/start_broadcasting`,
1489
1489
  {},
@@ -1493,7 +1493,7 @@ export class Call {
1493
1493
  /**
1494
1494
  * Stops the broadcasting of the call.
1495
1495
  */
1496
- stopBroadcasting = async () => {
1496
+ stopHLS = async () => {
1497
1497
  return this.streamClient.post<StopBroadcastingResponse>(
1498
1498
  `${this.streamClientBasePath}/stop_broadcasting`,
1499
1499
  {},
@@ -81,6 +81,7 @@ export const watchCallEnded = (call: Call) => {
81
81
  call.state.callingState === CallingState.JOINED ||
82
82
  call.state.callingState === CallingState.JOINING
83
83
  ) {
84
+ call.state.setMetadata(event.call);
84
85
  await call.leave();
85
86
  }
86
87
  };
@@ -473,6 +473,12 @@ export interface CallCreatedEvent {
473
473
  * @interface CallEndedEvent
474
474
  */
475
475
  export interface CallEndedEvent {
476
+ /**
477
+ *
478
+ * @type {CallResponse}
479
+ * @memberof CallEndedEvent
480
+ */
481
+ call: CallResponse;
476
482
  /**
477
483
  *
478
484
  * @type {string}
@@ -1279,6 +1285,18 @@ export interface CallSessionResponse {
1279
1285
  * @memberof CallSessionResponse
1280
1286
  */
1281
1287
  id: string;
1288
+ /**
1289
+ *
1290
+ * @type {string}
1291
+ * @memberof CallSessionResponse
1292
+ */
1293
+ live_ended_at?: string;
1294
+ /**
1295
+ *
1296
+ * @type {string}
1297
+ * @memberof CallSessionResponse
1298
+ */
1299
+ live_started_at?: string;
1282
1300
  /**
1283
1301
  *
1284
1302
  * @type {Array<CallParticipantResponse>}