iOS development--use technical OC & Video and Audio Simple summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.