In everyday iOS development, we often encounter media playback problems, Xcode has provided us with a very powerful avfoundation framework and MediaPlayer framework. The avaudioplayer in the avfoundation frame is primarily used to play local audio, or to play network audio, But the need to first turn the network data into data, the user experience is poor, all Apple provides a powerful avplayer for playing network audio (both streaming media), the effect and controllability are better, now focus on the next avplayer in the network audio playback:
Below is a simple example:
OK, a simple audio playback function is implemented. There's also a powerful mediaplayer for playing video,
Detailed commentary will be published in the next issue of the blog, please look forward to!!!!!!!!
2015-06-18
Some details about audio playback on iOS network