ios - how to do audio live streaming from server? and How to Download Audio File in Background with live listening? -
i want play audio files .mp3, .aif, .m4a, .m4v , .aac through http live streaming. tried avaudioplayer ,but not supported. download file in backgrounnd.any solution ?
the avaudioplayer class not provide support streaming audio based on http url's. url used initwithcontentsofurl: must file url (file://). is, local path
see : technical note qa 1634
as above. avaudioplayer not supported streaming service via http. must using avplayer. here official sample code.
here: stitchedstreamplayer
this underlying code. but, code mp4 live streaming. should change url mp3. it's fine working. if have code directly refer implementation. or various codes github.
Comments
Post a Comment