Skip to content

Multiple audioContext instances (chrome tab red indicator) #10

Description

@LG0012

Hello there,

It seems like with each call, new audioContext instance is created, and since every single one of them is active, red tab indicator never disappears even when you hand up the call. Also seems like with each call even more memore has been used. I guess need to rethink how to use one instance and handle hand-up when yo have more than one active call, also on some other events such as: ended, failed.
image

You can take a look at DevTools WebAudio:
image

Any improvements and optimizations on that? :)

https://developer.mozilla.org/en-US/docs/Web/API/AudioContext

It's recommended to create one AudioContext and reuse it instead of initializing a new one each time,
and it's OK to use a single AudioContext for several different audio sources and pipeline concurrently.

Also there is small mistake in the readme file:
image
Should be getSipOptions

By the way, thanks for this wrapper! :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions