![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-h5-audio-player
Advanced tools
React audio player component with UI. It provides time indicator on both desktop and mobile devices. Inspired by React Audio Player
Flexbox design with CSS shapes. No extra dependencies.
Supported browsers: Chrome, Firefox, Safari, Opera, Edge, IE (≥10)
npm i --save react-h5-audio-player
import AudioPlayer from 'react-h5-audio-player';
const Player = () => (
<AudioPlayer
autoPlay
src="http://example.com/audio.mp3"
onPlay={(e) => console.log('onPlay')}
// other props here
/>
);
Indicates if the audio will play automatically
Indicates the audio file url
Indicates if the audio player is hidden.
Indicates how often to call the onListened
prop during playback, in milliseconds.
Called when unloading the audio player, like when switching to a different src file. Passed the event.
Called when enough of the file has been downloaded to be able to start playing.
Called when playback has finished to the end of the file. Passed the event.
Called when the audio tag encounters an error. Passed the event.
Called every listenInterval
milliseconds during playback.
Called when the user pauses playback. Passed the event.
Called when the user taps play.
Called when the user start dragging the time indicator. Passed the event.
Called when the user is dragging the time indicator. Passed the event.
Called when the user finish dragging the time indicator. Passed the event.
Indicates whether the browser should preload the media. See the audio tag documentation for details.
You can get direct access to the underlying audio element. First get a ref to ReactAudioPlayer:
<ReactAudioPlayer
ref={c => this.player = c}
/>
Then you can access the audio element like this:
this.player.audio
Issues and PR's are welcome.
FAQs
A customizable React audio player. Written in TypeScript. Mobile compatible. Keyboard friendly
The npm package react-h5-audio-player receives a total of 29,546 weekly downloads. As such, react-h5-audio-player popularity was classified as popular.
We found that react-h5-audio-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.