Giter Club home page Giter Club logo

Comments (6)

disoul avatar disoul commented on August 23, 2024

This AbortError is caused by calling Track.stop() immediately after calling Track.play(), not caused by the autoplay policy. In Agora Web SDK NG, videoTrack.play() will not use Promise to call HTMLVideoElement.play, because there is no autoplay problem in videoTrack.play, SDK's <video> tag does not have any audio source and this <video> tag's muted attribute is true.

If you want to catch the autoplay error in SDK, you should use this callback onAudioAutoplayFailed.

from agorawebsdk-ng.

MobeenAshraf avatar MobeenAshraf commented on August 23, 2024

I am not calling stop for remote players. I am calling stop for local track when I am muting/stopping video only

from agorawebsdk-ng.

disoul avatar disoul commented on August 23, 2024

Ok, You can ignore this warning now. We will hide this warning in the future.

from agorawebsdk-ng.

MobeenAshraf avatar MobeenAshraf commented on August 23, 2024

This may be unrelated (and I am not yet able to confirm for now) but whenever this error appears the video container also doesn't appear. I may be able to confirm this if required

from agorawebsdk-ng.

vvedharaju avatar vvedharaju commented on August 23, 2024

are you using react? could this also be from multiple re-renders triggering play on the same video if there are back to re-renders?

from agorawebsdk-ng.

MobeenAshraf avatar MobeenAshraf commented on August 23, 2024

I am using react but it shouldn't be from multiple re-renders.

play is called on user-published and I also un-subscribe on componentWillUnMount.

I will try to post some more details/logs

from agorawebsdk-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.