Platform Support
Audio Sourcesβ
Feature | Android | iOS | Windows |
---|
App bundleΒΉ | β
| β
| β
|
Network | β
| β
| β
|
File SystemΒ² | β
| β
| β
|
ΒΉ: Use require
or import
Β²: Prefix the file path with file:///
Stream Typesβ
Feature | Android | iOS | Windows |
---|
Regular Streams | β
| β
| β
|
DASH | β
| β | β
|
HLS | β
| β
| β
|
SmoothStreaming | β
| β | β |
Castingβ
Feature | Android | iOS | Windows |
---|
Google CastΒΉ | β
| β | β |
Miracast/DLNA | β | β | β |
AirPlay | β | β | β |
ΒΉ: Google Cast support has been moved to react-native-track-casting (WIP) which can be used in combination with react-native-track-player
.
Miscellaneousβ
Feature | Android | iOS | Windows |
---|
Media Controls | β
| β
| β
|
Caching | β
| β | β |
Background ModeΒΉ | β
| β
| β
|
ΒΉ: Read more in Background Mode
Functionsβ
Function | Android | iOS | Windows |
---|
setupPlayer | β
| β
| β
|
updateOptions | β
| β
| β
|
registerPlaybackService | β
| β
| β
|
addEventListener | β
| β
| β
|
play | β
| β
| β
|
pause | β
| β
| β
|
reset | β
| β
| β
|
setVolume | β
| β
| β
|
getVolume | β
| β
| β
|
setRate | β
| β
| β
|
getRate | β
| β
| β
|
seekTo | β
| β
| β
|
getPosition | β
| β
| β
|
getBufferedPosition | β
| β
| β
|
getDuration | β
| β
| β
|
getState | β
| β
| β
|
getQueue | β
| β
| β
|
getCurrentTrack | β
| β
| β
|
getTrack | β
| β
| β
|
add | β
| β
| β
|
remove | β
| β
| β
|
skip | β
| β
| β
|
skipToPrevious | β
| β
| β
|
skipToNext | β
| β
| β
|
removeUpcomingTracks | β
| β
| β
|
Event | Android | iOS | Windows |
---|
remote-play | β
| β
| β
|
remote-play-id | β
| β | β |
remote-play-search | β
| β | β |
remote-pause | β
| β
| β
|
remote-stop | β
| β
| β
|
remote-skip | β
| β | β |
remote-next | β
| β
| β
|
remote-previous | β
| β
| β
|
remote-seek | β
| β
| β
|
remote-set-rating | β
| β | β |
remote-jump-forward | β
| β
| β
|
remote-jump-backward | β
| β
| β
|
remote-duck | β
| β
| β |
playback-state | β
| β
| β
|
playback-track-changed | β
| β
| β
|
playback-queue-ended | β
| β
| β
|
playback-error | β
| β
| β
|
playback-metadata-received | β
| β
| β |