Adding new API to play media  using MediaInfo object.