Audio & Video starting point
Multimedia technologies in IOS let access the sophisticated audio and video capabilities of IPhone, IPad, and IPod tou Ch. Specialized classes Let's easily add basic features such as IPod library playback and movie capture, while Rich mult Imedia APIs support for advanced solutions.
The multimedia technology on iOS allows you to access complex audio and video on Iphone,ipad and ipod touch. The dedicated class library makes it easy to add basic features like ipod library music playback, and movie capture, and rich multimedia APIs provide more advanced solutions.
Choose the technology you need
Choose the right technology for your needs:
- To play the audio items in a user's IPod library, or to play local or streamed movies, use the Media Player framework< /c2>. Classes in this framework automatically support sending audio and video to AirPlay devices such as Apple TV.
Play the audio in the user's ipod library, or play a local or streaming movie, using the Media Player frame . The class in this framework provides the ability to send audio and video to AirPlay devices (such as Apple TV).
- To easily add picture or movie capture to your app, employ dedicated classes and functions from theUIKit framework.
To easily add pictures or videos to your application, use the relevant classes and functions in the uikit framework .
- For basic audio recording and playback, including stereo panning, synchronization, and metering, use the audio classes fro M theAV Foundation framework.
Basic audio recording and playback, including stereo panning, syncing, and metering, using the audio classes in the AV Foundation framework.
- To add high-performance positional audio playback to your opengl-based game or other apps, take advantage of the OPEN-SOURC E OpenAL (Open Audio Library) API.
Add high-performance audio playback to your opengl-based games or other apps, leveraging the API of open source OpenAL (Open Audio Library).
- To work directly with audio and video data-for-performance or advanced solutions such as VoIP, streaming, virtual mus IC instruments, or MIDI (musical instrument Digital Interface)-usethe AV Foundation framework, the Assets Lib Rary Framework, thevarious core audio frameworks (including the core audio, audio Toolbox, and audio Unit fr Ameworks), and theCore MIDI framework.
Work directly related to audio and video data, pursuing high performance and advanced solutions such as VoIP, streaming media, virtual instruments, or MIDI (Instrument Digital Interface) using AV's infrastructure, Asset Library framework, various audio core frameworks (including Core audio, audio Toolbox and Audio Unit framework), and MIDI core framework.
Get Up and Running
Become proficient in Audio development
Become proficient in Video development
Get moving.
Become a proficient audio developer
Become a proficient video developer
Get Up and Running
Familiarize yourself with IOS Audio development by checking out these resources:
Familiarize yourself with iOS Audio development Review the following resources:
PS: (note here must see, read the guide, but also to see reference)
- Read Using Audio in Multimedia programming Guide to learn about Audio development for IOS devices. Make sure to understand the importance of audio session objects as introduced in the Basics:audio Codecs, Sup Ported audio Formats, and audio Sessions in Multimedia programmingGuide.
Read the Using audio in the Media Programming Guide to learn about iOS device audio development. Be sure to understand the importance of the audio session object therein, based on the basic audio codec described in the Programming Guide, which supports audio formats and audio sessions.
PS: Here are some examples
- View the avtouch Sample Code project, which shows how to play sounds with theAvaudioplayer class; The Speakhere Project, which demonstrates basic recording and playback; And theAudio UI Sounds (syssound) project, which demonstrates how to invoke vibration and play alerts and user-in Terface sound effects.
Avtouch, shows how to use the Avaudioplayer class to play the sound; Speakhere, which demonstrates recording and playback,audio UI Sounds (syssound) , demonstrates how to invoke vibrations and alarms and user interface sounds.
- Download and explore theaddmusic sample code project to see a simple demonstration of what to add IPod library pla Yback to your app.
Addmusic project, you will see a simple sample code that demonstrates how to add an ipod library to your application.
- Read Mpvolumeview Class Reference to learn what to quickly add AirPlay capability to your app.
Read the Mpvolumeview class to learn how to quickly add airplay functionality to your application.
Get up and running with IOS video development with these resources:
Take advantage of the following resources to act in iOS audio development
Become proficient in Audio development
Become an audio development expert
Gain a complete understanding of audio session objects, and how they determine your app's audio behavior, by readingAu Dio Session ProgrammingGuide. Also is sure to the read sound, which explains how your app should handle the sound to meet user expectations.
Fully understand audio session objects, and how they determine the behavior of application audio by reading the Audio Session Programming Guide . Be sure to read the sound section, which explains how your application should handle sounds to meet user expectations.
No matter which IOS audio technologies you employ, users expect to being able to play and pause your app ' s audio using the SY Stem transport controls in the multitasking UI. To learn "How to" feature, readRemote Control of multimedia in Event handlingguide for IOS.
Regardless of which iOS audio technology you use, users want to be able to play and pause the application's audio, using the system transfer control for multitasking UI. Learn this feature by reading remote control multimedia in the iOS event handling guide .
Take full advantage of the ipod library by reading ipod Library Access Programming Guide along with Medi A Player Framework Reference.
Make the most of your ipod library by reading the ipod Library Access Programming Guide and Media Player Framework reference.
To learn how to play audio using OpenAL, view the Oaltouch Project
Learn how to use OpenAL to play audio and view Oaltouch projects
PS: It's important here.
To-play streamed audio content, such as from a network connection, with aAvplayer object as described in play back onAV Foundation ProgrammingGuide. You can also play certain Internet audio files by using theMPMoviePlayerController class; For sample code that shows how, seemovieplayer.
Play audio streams, such as via a network connection, using a Avplayer object to play,AV Foundation Programming guide describes the Playback. You can also play some Internet audio files using the MPMoviePlayerController class; sample code, see MoviePlayer.
To play audio files with stereo panning, synchronization, and metering, use theAvaudioplayer class. To record audio, use the Avaudiorecorder class. Apple recommends these classes for audio playback and recording if you don't need direct access to audio data.
Stereo plays audio, rock, sync and metering, using the Avaudioplayer class. Recording, using the Avaudiorecorder class. Apple recommends these classes of audio playback and recording when you do not need to use audio data directly.
To get started with handling audio data directly, read Core audio Essentials on Core Audio overview to L Earn about the architecture, programming conventions, and use of Core Audio.
Process audio data, read Core audio features in the Core Audio Overview , understand the architecture, programming specifications, and use core audio.
If you were creating a VoIP (voice over Internet protocol) app or a virtual music instrument, you need the highest audio PE Rformance available in IOS. The solution to use is audio units, the IOS Audio plug-in technology. Audio units also provide advanced capabilities including mixing and equalization. Read Audio Unit Hosting Guide, IOS to learn how to use Audio units. View theAudio Mixer (mixerhost) and Mixer ipodeq augraph Test Sample code projects.
If you create a VoIP (Internet Protocol voice) application or a virtual instrument, you need the highest audio performance in iOS. The solution used is to use the Audio unit ,iOS audio plug-in technology . Audio units also offer advanced features including blending and equalization. Read Audio Unit Hosting guide for IOS to learn how to use a sound cell. Review the Audio mixer (mixerhost) and mixer IPODEQ augraph test sample code project.
To create a MIDI app for connecting hardware keyboards or synthesizers to an IOS device, refer toCore midi Framework R Eference and look at the MFiprogram.
Create a MIDI app to connect a hardware keyboard or synth iOS device, referencing the MFI program in the core MIDI frame.
PS: Audio speaks a lot, video on that point
Become proficient in Video development
Become a professional video developer
To progress beyond the capabilities of the Media Player framework and theUiimagepickercontroller class, read AV Foundation ProgrammingGuide. AV Foundation, with support from the Assets Library and Core Media frameworks, provides tools for advanced video Solutions including track-based editing, transcoding, and direct access to data from the camera and microphone.
If the feature goes beyond the Media Player framework and the Uiimagepickercontroller class, read the AV Foundation programmingGuide. AV Foundation supports asset libraries and core media frameworks, providing tools for advanced video solutions including track-based editing, code conversion, direct access to data from cameras and microphones.
View the Avcam for IOS sample code project to see how to capture still images and movies using the AV Foundation Framework. Avcam demonstrates the use of several important AV Foundation classes. View theAvplayerdemo project to the play movies from the IPod library.
View the Avcam iOS sample code project to see how to capture still images and movies by using AV's underlying framework. Avcam demonstrates the use of several important AV base classes. View the Avplayerdemo project to learn how to play a movie from the ipod library.
iOS Audio Video development starting point