

#AMAZING AUDIO PLAYER MODULE ANDROID#
Major features such as play, payback completion callback, pause, resume, stop, jump forward/backwards, reset, get duration, get system volume, change volume, change the play mode (audio loops), change speed, get current playtime are some major features supported by both libraries for both android and iOS mobile devices. Audio Control OptionsĪlmost all the essential audio control options are available in both react-native-sound and track-player. From 2017 to 2022, 78 versions of the library have been released. With the release of the 2.0 version (The current version is 2.1.2) of the library, most of the issues have been solved successfully and it is stable and safe to be used in commercial-grade applications. Nevertheless, there were many bugs in the 1.0 release versions. Anyhow, RN-Track-Player supports iOS as well as Windows, also. The RN-Track-Player run as a separate service on Android resulting in fewer dependencies and high stability. The Android support for the react-native-track-player is built on top of Google’s media player library ExoPlayer. Most of the native features that follow the same design principles followed by real music apps are built together in order to provide an excellent experience to the user as well as to the developer. It was the goal to built a lightweight, fully customizable, multiplatform support React Native library audio player library with all the major media control support, and the expectation became a success. The RN-Track-Player was released after RN-Sound as a solution for drawbacks posed by RN-Sound.

The unpacked size of the library is about 2.57MB and it is licensed to Apache 2.0. React-Native-Track-Player is a fully-fledged React Native audio module implemented for music/any mobile audio applications. Yes, you can build a complete music app with RN-Sound but we are going to talk about in the next chapter is something deliberately developed to implement music players. Therefore it limits the library’s usage only to play simple audio tracks in the foreground like sound effects and voice messages, etc. RN-Sound does not run in a separate service on Android. The current version of the library is 0.11.2, and from 2016 to 2022, 34 versions have been released. However, this has not caused any impact on the number of downloads per week. This may make a developer who wants to use the library reluctant. The statement in the NPM documentation of the library which says that ‘the library is in alpha and can have bugs’. It is one of the popular React Native modules for playing audio files in iOS, Android and Windows. The unpacked size of the library is about 88KB and it is licensed to MIT. React-Native-Sound is more of a class than a class component that possesses the ability to manipulate instances with predefined methods without updating props or states.
