Implementation of media fire API in Objective-c