Giter Club home page Giter Club logo

react-audioplayer's Introduction

Hello there ๐Ÿ‘‹

I am a research scientist at NVIDIA's Applied Deep Learning Research (ADLR). I got my PhD degree from HKUST under the supervision of Prof. Pascale Fung. My research focus is on Large Vision-Language (Multimodal) Models, LLMs, and more. Feel free to contact ๐Ÿ˜Š

react-audioplayer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-audioplayer's Issues

Audio file as base64

Hi can you kindly advice how an audio file encoded in base64 will be played in that? Any string header required?

Thanks

Manipulating the playlist

In my scenario I fave different playlists. My approach is to keep the player mounted and just update the list prop. I expected this to be possible but its not. Issues I ran into:

  • Replacing the playlist before first playback: Player starts with the first track of the old list and continues with second of new list.
  • Replacing the playlist during playback: Player continues on track x of old list. After track end player goes to track x+1 of new list.
  • Replace a list of 3 with a list of 2 tracks while track 3 is being played: Player throws exception.

Would love if this scenario gets better support!

Comments

Hi!
Love what you've done with then player but am having difficulty getting the timed comments to work - they don't seem to work even on the live demo??

Any ideas?

Thanks in advance

Terry

remove console.log()

Can you remove the console.log() inside HOCAudio.componentDidMount()? See line 273 of HOCAudio.jsx. Thanks.

Audio Event Listeners

I'm still not quite how these work. Could you explain a bit more in the documentation, or better yet, post the code for the examples you have on your website? Thanks in advance.

Some songs gives CORS error.

My app is a youtube mp3 player. Some tracks cant play because of copyright blocks and it returns a cors issue. Can i catch errors and skip next track?

TypeError: Cannot read property 'addEventListener' of null

n.value node_modules/react-audioplayer/build/react-audioplayer.js:1

TypeError: Cannot read property 'addEventListener' of null
TypeError: Cannot read property 'removeEventListener' of null

two errors when trying to load component inside render.

<Audio
width={600}
height={400}
autoPlay={true}
fullPlayer={true}
playlist={p}
style={{ paddingTop: 5 }}
onCommentSubmit={text => {
console.log(text);
}}
/>

const p is an array with song objects.

Adjust Width of Episode Name within overall player

Hello,

I'm building a podcast site with a cross-page audio player using this component.

I'm wondering what I need to set to make the episode title fill more of the component's width instead of truncating text.

episode_player

cant stop the player with react router

I am using react router and when I navigate back the audio keep playing
I tried this in the
stopPlaying() {
ReactDOM.findDOMNode(this.state.autoplayref).dispatchEvent(new Event('pause'));
}
and then
componentWillUnmount() {
this.props.shuirimprops.stopPlaying();
}

but not working. I am doing the same thing for playing and pausing and it works fine I think the
ref is alread gone by the time the async method excutes

Thank you for this. Here are a few options that would be very helpful

It would be awesome to customize the Controls to not display some of the buttons. For example I do not want to display the skip to buttons. I also do not want to display the shuffle/repeat button. It would be nice to pass showSkipToButtons = false and showPlayingStateBtn = false.

I think this should be relatively easy. I am pretty new to Reactjs but I could possible do a pull request with these features enabled?

Support for SSR

Hey - thanks for this component - giving it a shot on my podcast website.

I'm doing SSR with this app, so I need a way to exclude this component if window and document aren't present. Any way to do this?

Multiple Players

I have multiple players on a page and I would like to be able to pause one when I start another. I know I can use a ref on the Audio component to get a hook for pausing that component. But it seems like the ref function only fires when the component unloads. If it fired on load then I could register it and control it with clickHandlers. Am I missing something?

ref={audioComponent => { this.audioComponent = audioComponent; }}

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.