swift - How to forward streaming media (music ) in ios? -


var url = nsurl(string: musicarr?.objectatindex(count) as! string)      player = mpmovieplayercontroller(contenturl: url)             self.view.addsubview(player.view)       player.moviemediatypes.rawvalue     player.preparetoplay()     player.play() 

using movie player , playing media remote url!

if click on middle of slider mp3 should start there.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -