![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-native-track-player-cm
Advanced tools
A fully fledged audio module created for music apps
A fully fledged audio module created for music apps. Provides audio playback, external media controls, chromecast support, background mode and more!
Feature | Android | iOS | Windows |
---|---|---|---|
Load from the app bundle | ✓ | ✓ | ✓ |
Load from the network | ✓ | ✓ | ✓ |
Load from the file system | ✓ | ✓ | ✓ |
Adaptive Bitrate Streaming | ✓ | ✗ | ✓ |
Play/Pause/Stop/Reset | ✓ | ✓ | ✓ |
Seeking/Volume | ✓ | ✓ | ✓ |
Remote Media Controls | ✓ | ✓ | ✓ |
Caching | ✓ | ✗ | ✗ |
Events | ✓ | ✓ | ✓ |
Background Mode | ✓ | ✓ | ✓ |
Casting | ✓ | ✗ | ✗ |
Check Platform Support for more information.
After trying to team up modules like react-native-sound
, react-native-music-controls
and react-native-google-cast
, I've noticed that their structure and the way should be tied together can cause a lot problems (mainly on Android). Those can heavily affect the app stability and user experience.
All audio modules (like react-native-sound
) don't play in a separated service on Android, which should only be used for simple audio tracks in foreground (such as sound effects, voice messages, etc)
react-native-music-controls
is meant for apps using those audio modules, although it has a few problems due to how the audio is not directly tied to the controls, it can be pretty useful for casting (such as Chromecast)
react-native-google-cast
works pretty well and also supports custom receivers, but it has fewer player controls, it's harder to integrate and still uses the Cast SDK v2
If you want to get started with this module, check the API page. If you want detailed information about the API, check the Documentation. You can also look at our example project here.
import TrackPlayer from 'react-native-track-player';
// Creates the player
TrackPlayer.setupPlayer().then(async () => {
// Adds a track to the queue
await TrackPlayer.add({
id: 'trackId',
url: require('track.mp3'),
title: 'Track Title',
artist: 'Track Artist',
artwork: require('track.png')
});
// Starts playing it
TrackPlayer.play();
});
David Chavez & Guilherme Chaguri
Support the further development of this and other libraries.
FAQs
A fully fledged audio module created for music apps
The npm package react-native-track-player-cm receives a total of 2 weekly downloads. As such, react-native-track-player-cm popularity was classified as not popular.
We found that react-native-track-player-cm demonstrated a not healthy version release cadence and project activity because the last version was released 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.