iOS音頻視頻開發起始點

來源:互聯網
上載者:User

標籤:iosapi翻譯   音頻開發文檔   音頻開發必讀文檔   

Audio & Video Starting Point


Multimedia technologies in iOS let you access the sophisticated audio and video capabilities of iPhone, iPad, and iPod touch. Specialized classes let you easily add basic features such as iPod library playback and movie capture, while rich multimedia APIs support advanced solutions.

iOS上的多媒體技術可以讓你讓你訪問iPhone,iPad和iPod touch上的複雜的音頻和視頻。專門的類庫 讓你輕鬆添加基本特性如iPod圖書館音樂播放、和電影捕獲,並且豐富的多媒體api提供了更多的先進的解決方案。



選擇你需要的技術

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. Classes in this framework automatically support sending audio and video to AirPlay devices such as Apple TV.

播放使用者iPod圖書館裡的音頻,或者播放本地或流電影,使用媒體播放器架構。在這個架構裡的類  提供發送 音頻和視頻 到 AirPlay devices (如蘋果電視)的 功能。


  • To easily add picture or movie capture to your app, employ dedicated classes and functions from theUIKit framework.

想要輕鬆添加圖片或影片到你的應用程式,使用UIKit架構中相關的類和函數。


  • For basic audio recording and playback, including stereo panning, synchronization, and metering, use the audio classes from theAV Foundation framework.

基本的音頻錄製和播放, 包括立體平移、同步、和計量,使用 AV Foundation framework中的 audio classes  。


  • To add high-performance positional audio playback to your OpenGL-based game or other app, take advantage of the open-source OpenAL (Open Audio Library) API.

添加高效能音頻播放 到你的OpenGL-based遊戲或其他應用程式,利用開源OpenAL(開啟音頻庫)的API。


  • To work directly with audio and video data—for high performance or advanced solutions such as VoIP, streaming, virtual music instruments, or MIDI (Musical Instrument Digital Interface)—use theAV Foundation framework, the Assets Library framework, thevarious Core Audio frameworks (including the Core Audio, Audio Toolbox, and Audio Unit frameworks), and theCore MIDI framework.

工作直接與 音頻 和視頻資料  相關 ,追求 高效能和先進解決方案如VoIP、流媒體、虛擬樂器,或MIDI(樂器數位介面)   使用 AV的基礎架構,資產庫架構,各種音頻核心架構(包括核心音頻,音頻工具箱和音頻單元架構),和MIDI核心架構。


Get Up and Running

Become Proficient in Audio Development

Become Proficient in Video Development

行動起來

成為精通音頻開發人員

成為精通視頻開發人員


Get Up and Running


Familiarize yourself with iOS audio development by checking out these resources:

熟悉iOS音頻開發 審查 以下資源:

PS:(注意這裡一定要看,看完指南,還要看參考)

  • 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, Supported Audio Formats, andAudio Sessions in Multimedia Programming Guide.

閱讀媒體編程指南中的Using Audio瞭解iOS裝置音頻開發。確保理解其中的音頻會話對象的重要性, 基於編程指南基礎裡面介紹的 基本的音訊轉碼器,支援的音頻格式和 音頻會話 。

PS:下面這幾個是執行個體

  • 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-interface sound effects.

avTouch,顯示了如何使用AVAudioPlayer類播放聲音;SpeakHere,示範了錄音 和 回放 ,Audio UI Sounds (SysSound) ,它示範了如何調用震動和警報和使用者介面音效。


  • Download and explore theAddMusic sample code project to see a simple demonstration of how to add iPod library playback to your app.

AddMusic項目,你會看到一個簡單的範例程式碼示範了如何將iPod播放庫添加到您的應用程式。


  • Read MPVolumeView Class Reference to learn how to quickly add AirPlay capability to your app.

閱讀MPVolumeView類,學習如何快速把AirPlay功能添加到您的應用程式。



Get up and running with iOS video development with these resources:

利用以下資源 在 iOS音頻開發中行動起來


Become Proficient in Audio Development

成為音頻開發專家


Gain a complete understanding of audio session objects, and how they determine your app’s audio behavior, by readingAudio Session Programming Guide. Also be sure to read Sound , which explains how your app should handle sound to meet user expectations.

完全理解 音頻會話對象 ,以及它們如何確定應用程式音訊行為,通過閱讀音頻會話編程指南。一定要讀 Sound 這一部分,它說明了你的應用程式應該如何處理聲音以滿足使用者的期望。


No matter which iOS audio technologies you employ, users expect to be able to play and pause your app’s audio using the system transport controls in the multitasking UI. To learn how to support this feature, readRemote Control of Multimedia in Event Handling Guide for iOS.

無論你使用哪些iOS音頻技術,使用者都希望能夠播放和暫停應用程式的音頻,使用系統傳輸控制的多任務的UI。學習這個功能,通過閱讀 遠端控制的多媒體 在iOS事件處理指南。


Take full advantage of the iPod library by reading iPod Library Access Programming Guide along with Media Player Framework Reference.

充分利用iPod圖書館通過閱讀iPod圖書館訪問編程指南以及媒體播放器架構參考。


To learn how to play audio using OpenAL, view the oalTouch project

學習如何使用OpenAL播放音頻,查看oalTouch項目


PS:這裡很重要 

To play streamed audio content, such as from a network connection, use anAVPlayer object as described in Playback inAV Foundation Programming Guide. You can also play certain Internet audio files by using theMPMoviePlayerController class; for sample code that shows how, seeMoviePlayer.

播放音頻流,比如通過網路連接,使用一個AVPlayer對象播放,AV Foundation Programming Guide描述了Playback。你也可以播放某些互連網音頻檔案使用MPMoviePlayerController類;範例程式碼,見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 when you do not need direct access to audio data.

立體聲播放音頻,搖滾、同步和計量,使用AVAudioPlayer類。錄音,使用AVAudioRecorder類。蘋果建議這些類音頻播放和記錄時,您不需要直接使用音頻資料。


To get started with handling audio data directly, read Core Audio Essentials in Core Audio Overview to learn about the architecture, programming conventions, and use of Core Audio.

處理音頻資料,閱讀 核心音頻概述 裡的 核心音頻要素,瞭解體繫結構、編程規範和使用核心音頻。


If you are creating a VoIP (voice over Internet protocol) app or a virtual music instrument, you need the highest audio performance 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 for iOS to learn how to use audio units. View theAudio Mixer (MixerHost) and Mixer iPodEQ AUGraph Test sample code projects.

如果你建立一個VoIP(互連網協議語音)應用程式或一個虛擬樂器,你需要ios中最高的音頻效能。使用的解決方案是使用 音頻單元,iOS音頻外掛程式技術。音頻單位還提供進階功能包括混合和均衡。閱讀Audio Unit Hosting Guide for iOS學習如何使用音頻單元。查看音訊混合器(MixerHost)和混合器iPodEQ AUGraph測試範例程式碼項目。


To create a MIDI app for connecting hardware keyboards or synthesizers to an iOS device, refer toCore MIDI Framework Reference and look at the MFi program.

建立一個MIDI應用串連硬體鍵盤或合成器iOS裝置, 參考 核心MIDI架構 中的MFi程式 。


PS: 音頻講了好多,視頻就這麼一點

Become Proficient in Video Development

成為專業的視頻開發人員


To progress beyond the capabilities of the Media Player framework and theUIImagePickerController class, read AV Foundation Programming Guide. 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.

功能如果超越了 Media Player framework 和 UIImagePickerController類,閱讀AV Foundation Programming Guide。AV Foundation 支援資產庫和核心媒體架構,提供了工具,先進的視頻方案套件括track-based編輯、代碼轉換,直接從網路攝影機和麥克風訪問資料。


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 see how to play movies from the iPod library.

查看AVCam iOS範例程式碼項目,看看如何捕獲靜止映像和電影通過使用AV的基礎架構。AVCam示範了幾個重要的AV基礎類的使用。查看AVPlayerDemo項目學習 如何從iPod圖書館播放電影。

iOS音頻視頻開發起始點

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.