Coder Social home page Coder Social logo

Safari solution about vue-audio-visual HOT 5 CLOSED

staskobzar avatar staskobzar commented on May 25, 2024
Safari solution

from vue-audio-visual.

Comments (5)

staskobzar avatar staskobzar commented on May 25, 2024

Hello,
The problem was supposed to be fixed already. Please, see #25

Do you still have issued with Safari? There is a demo that works in my case for Safari: https://staskobzar.github.io/vue-audio-visual/

Please, let me know if the problem still there in your case. Thanks

from vue-audio-visual.

pasloc avatar pasloc commented on May 25, 2024

This demo works just fine, but I'm doing different things with the AvBars component. In my case I want to visualize the microphone input to the user. So I have no MediaStream if the user mutes his microphone or just entered the site. I'm binding the stream via :media="stream".

I've created a demo for you: https://rockschule-workshops.dev.mediadesq.com/avbars-demo

If you active your mic you will see that it works at first. Even multiple times. But if you keep activating and deactivating your mic you will get "TypeError: null is not an object (evaluating 'this.audioCtx.createAnalyser')" after some tries (needed number seems random to me).

Interestingly you cannot instantiate a new AudioContext after this error was thrown. If I'm trying to create a new AudioContext object in the console I'm getting null.

As I'm writing this I've noticed that you get the same problem after typing three times "a = new AudioContext(); a.createAnalyser();" into the dev console.

from vue-audio-visual.

staskobzar avatar staskobzar commented on May 25, 2024

Thanks pasloc,
I will try this as soon as I can. If you have tested it and you see that your patch fixes the issue, please, feel free to create a pull request.

Have a good day!

from vue-audio-visual.

pasloc avatar pasloc commented on May 25, 2024

I've created the pull request, but please keep in mind, that this is my first pull request ever on github. So do not expect best quality :P
#52

from vue-audio-visual.

staskobzar avatar staskobzar commented on May 25, 2024

PR is merged. Thank you for the contribution. Just released v2.1.1

from vue-audio-visual.

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.