First, audio playback
1. Sound playback (short time audio file)
1> Audioservicescreatesystemsoundid
2> Audioservicesplaysystemsound
2. Music playback (long-time audio files)
1> Avaudioplayer
Only local audio files can be played
>mpmusicplayercontroller
2> Avplayer
Ability to play local, remote audio, video files
Based on layer display, you have to write your own control panel.
3> MPMoviePlayerController
Ability to play local, remote audio, video files
Bring your own Playback Control Panel (pause, play, play progress, whether you want Fullscreen)
4> Mpmovieplayerviewcontroller
Ability to play local, remote audio, video files
The interior is encapsulated with MPMoviePlayerController
The playback interface is full screen by default
If the playback function is relatively simple, simply play the remote, local video files, it is recommended to use this
iOS audio and video playback