Luckily, the NativeScript community has published a plugin that provides us with a consistent API to use across both iOS and Android to get going with an audio player. Feel free to browse http://plugins.nativescript.org, the official source for NativeScript plugins, before implementing features, in order to determine if an existing plugin may work for your project.
In this case, the nativescript-audio plugin found at http://plugins.nativescript.org/plugin/nativescript- audio contains what we need to start integrating the player portion of our app's features, and it works on both iOS and Android. It even provides a recorder we may be able to use. Let's start by installing it:
npm install nativescript-audio --save
The NativeScript framework allows you to integrate with any npm...