# Music playing API

**URL:** <https://forum.ionicframework.com/t/music-playing-api/21261>\
**Category:** cordova\
**Created:** [April 19, 2015, 7:12pm UTC](https://forum.ionicframework.com/t/music-playing-api/21261 "2015-04-19T19:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjfricke](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sjfricke](https://forum.ionicframework.com/u/sjfricke)\
**Post date:** [April 19, 2015, 7:12pm UTC](https://forum.ionicframework.com/t/music-playing-api/21261/1 "2015-04-19T19:12:07Z")

</div>

I am trying to get my Ionic/ngCordova app to include small segments of sound files and I have added the ngCordova media plugin, made sure to have the source file included and injected the $ngCordova and $ionicLoading dependencies and yet I keep getting a console error that the Media object is not defined and I have tried many different syntex variations and even emulated it to both IOS and Android and I do not know why I can’t get the sound to play
