Simple summary of video and audio
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
>mpmusicplayercontrollerm
3. Video playback
1> Avplayer (audio can also be played)
- Ability to play local, remote audio, video files
- Based on layer display, you have to write your own control panel.
2> 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
Or you want to go deeper into the study or you can look at the streaming of the system, or the implementation of third-party ffmpeg and Kxmovies (the former encapsulation)
- 1. Mooncatventures Group Https://github.com/mooncatventures-group
- 2, Kxmovieplayer (use Opengles, Core Audio) Https://github.com/kolyvan/kxmovie
- 3, FFmpeg for iOS (with Opengles, Audioqueue) https://github.com/flyhawk007/FFmpeg-for-iOS.git
- 4, Iframeextractor Https://github.com/lajos/iFrameExtractor.git
iOS development--use technical OC & Video and Audio Simple summary