GithubHelp home page GithubHelp logo

Audio player as Component about lecshare HOT 6 OPEN

ryleyw avatar ryleyw commented on August 16, 2024
Audio player as Component

from lecshare.

Comments (6)

aomi avatar aomi commented on August 16, 2024

Looking into using this as the base and modifying to work with what we need. As it's written in TypeScript and looks pretty clean and easy to modify, adding the MaterialUI to this would probably suffice for us in the meantime.

https://github.com/erikras/audiocard

Edit: difficulty modifying, specifically with React hooks

from lecshare.

aomi avatar aomi commented on August 16, 2024

Another method which has potential to integrate nicely with our goals would be using this. https://github.com/thangngoc89/react-howler
Howler.js appears to be a pretty popular library for handling audio and both react-howler and howler.js have TypeScript typings available.

from lecshare.

ryleyw avatar ryleyw commented on August 16, 2024

Use Material UI slider to control time with howler.js to control audio play, stop and position.

from lecshare.

aomi avatar aomi commented on August 16, 2024

removed react-howler and just using howler.js. Currently the play/pause functionality is working.

from lecshare.

aomi avatar aomi commented on August 16, 2024

note: the loading of audio files seems slow given the current test audio files are quite small. I can see this being a problem when we load full lectures that would be the minimum 50 minute range.

from lecshare.

aomi avatar aomi commented on August 16, 2024

Using requestAnimationFrame in react.
https://css-tricks.com/using-requestanimationframe-with-react-hooks/

Example of a audio player using howler.js
https://github.com/goldfire/howler.js/blob/master/examples/radio/radio.js

@ryleyw

from lecshare.

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.