@digipair/skill-web-heygen 0.57.2 → 0.57.4

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.cjs.js CHANGED
@@ -1932,6 +1932,11 @@ class Heygen extends r {
1932
1932
  receiver.jitterBufferTarget = 500;
1933
1933
  });
1934
1934
  this.updateStatus('SESSION_STARTED');
1935
+ // Return the local SDP to the server
1936
+ return {
1937
+ sessionId: sessionInfo.session_id,
1938
+ sdp: localDescription
1939
+ };
1935
1940
  }
1936
1941
  async stop() {
1937
1942
  this.peerConnection.close();
package/index.esm.js CHANGED
@@ -1928,6 +1928,11 @@ class Heygen extends r {
1928
1928
  receiver.jitterBufferTarget = 500;
1929
1929
  });
1930
1930
  this.updateStatus('SESSION_STARTED');
1931
+ // Return the local SDP to the server
1932
+ return {
1933
+ sessionId: sessionInfo.session_id,
1934
+ sdp: localDescription
1935
+ };
1931
1936
  }
1932
1937
  async stop() {
1933
1938
  this.peerConnection.close();
@@ -3,7 +3,10 @@ export declare class Heygen extends LitElement {
3
3
  private peerConnection;
4
4
  mediaElement: HTMLVideoElement;
5
5
  private updateStatus;
6
- start(sessionInfo: any): Promise<void>;
6
+ start(sessionInfo: any): Promise<{
7
+ sessionId: any;
8
+ sdp: RTCSessionDescriptionInit;
9
+ }>;
7
10
  stop(): Promise<void>;
8
11
  render(): import("lit-html").TemplateResult<1>;
9
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-heygen",
3
- "version": "0.57.2",
3
+ "version": "0.57.4",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes