Audio Player for React DOM with dynamic sources · GitHub

HTML5 Audio tags with auto reloading of dynamic sources in #Reactjs #javascript

  • // Cause the audio element to load the new source
  • export default class AudioPlayerDOM extends Component {
  • import React , { Component } from ‘ react ‘ ;
  • * Todo: make a better api, actually pass props through
  • // When the url changes, we refresh the component manually so it reloads the loaded file


@JimTheDev: HTML5 Audio tags with auto reloading of dynamic sources in #Reactjs #javascript

import React, { Component } from ‘react’;

import ReactDOM from ‘react-dom’;

* Use case: audio player with dynamic source in react

* Todo: make a better api, actually pass props through

* Todo: use children instead of passing

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

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Audio Player for React DOM with dynamic sources · GitHub