@vapi-ai/web 1.0.193 → 1.0.194

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.
Files changed (3) hide show
  1. package/dist/vapi.js +1 -2
  2. package/package.json +1 -1
  3. package/vapi.ts +1 -2
package/dist/vapi.js CHANGED
@@ -31,10 +31,9 @@ function startPlayer(player, track) {
31
31
  }
32
32
  function buildAudioPlayer(track, participantId) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
- const audioContainer = document.getElementById("audio-container");
35
34
  const player = document.createElement("audio");
36
35
  player.dataset.participantId = participantId;
37
- audioContainer === null || audioContainer === void 0 ? void 0 : audioContainer.appendChild(player);
36
+ document.body.appendChild(player);
38
37
  yield startPlayer(player, track);
39
38
  return player;
40
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.193",
3
+ "version": "1.0.194",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -24,10 +24,9 @@ async function startPlayer(player: HTMLAudioElement, track: any) {
24
24
  }
25
25
  }
26
26
  async function buildAudioPlayer(track: any, participantId: string) {
27
- const audioContainer = document.getElementById("audio-container");
28
27
  const player = document.createElement("audio");
29
28
  player.dataset.participantId = participantId;
30
- audioContainer?.appendChild(player);
29
+ document.body.appendChild(player);
31
30
  await startPlayer(player, track);
32
31
  return player;
33
32
  }