Skip to content

session.accept() Uncaught (inPromise) DOMException  #315

Closed

Description

@fredguth

Hi,
I am wondering if I made any mistake or if you guys have seen something like this:
sip.js:11568 Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
https://www.evernote.com/l/AZTXeIafroJF2qp4VWuNVfvzaRasNWwTSikB/image.png

It seems related to issue #175, but as I am not using mediaHandler directly, just accepting a call, I don't know what should have I done differently.

Thanks
p.s. using sip.js 0.7.2

Activity

  1. james-criscuolo commented on May 5, 2016

    @james-criscuolo
    Collaborator

    Hi @fredguth,

    If you are calling play on the stream at the earliest possible moment, it may be causing this. Based on this thread, chaining a promise after your play call may fix it.

    James

  2. svarunan commented on Jun 21, 2016

    @svarunan

    @fredguth , This issue will be seen in current version of chrome > 50. It doesn't hjappen in Firefox. I'd suggest to create a new Audio element each time dynamically for ring tone playback or for playing remote stream.
    Have a common js function which will make sure it stops the play request of existing audio element and removes it. then have a new audio element created and attach the src with stream or URL

  3. fredguth commented on Jun 30, 2016

    @fredguth
    Author
  4. Payetus commented on Jul 21, 2016

    @Payetus

    @james-criscuolo how would you chain promises can you put a snippet

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

Metadata

Metadata

Assignees

No one assigned

    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