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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -