diff --git a/package.json b/package.json index 452bf7f96..bec601762 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@rollup/plugin-inject": "^5.0.5", "@rollup/plugin-wasm": "^6.2.2", - "@sableclient/sable-call-embedded": "1.1.4", + "@sableclient/sable-call-embedded": "1.1.5", "@sentry/vite-plugin": "^5.3.0", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", @@ -141,4 +141,4 @@ "jsdom>undici": "^7.28.0" } } -} \ No newline at end of file +} diff --git a/src/app/features/call/callRingtone.ts b/src/app/features/call/callRingtone.ts index 4b1f3f9b3..1724c59af 100644 --- a/src/app/features/call/callRingtone.ts +++ b/src/app/features/call/callRingtone.ts @@ -91,7 +91,8 @@ export const readAudioDurationMs = async (file: Blob): Promise => audio.preload = 'metadata'; const cleanup = () => { - audio.src = ''; + audio.removeAttribute('src'); + audio.load(); URL.revokeObjectURL(objectUrl); }; @@ -113,7 +114,8 @@ export const readAudioDurationMs = async (file: Blob): Promise => { once: true } ); - audio.src = objectUrl; + audio.setAttribute('src', objectUrl); + audio.load(); }); type CustomRingtoneValidationInput = {