How to record a video in iOS

前端 未结 4 1466
故里飘歌
故里飘歌 2020-12-29 17:19

Hi I would like to record a video in iPhone through Objective-C. Can someone provide me the sample code to write my own code. I have no idea how to do it. And i need it in h

4条回答
  •  余生分开走
    2020-12-29 18:17

    You should typically use the highest-level abstraction available that allows you to perform the tasks you want. For example, in iOS:

    • If you simply want to play movies, you can use the Media Player Framework (MPMoviePlayerController or MPMoviePlayerViewController), or for web-based media you could use a UIWebView object.

    • To record video when you need only minimal control over format, use the UIKit framework (UIImagePickerController).

    AV Foundation is one of several frameworks that you can use to play and create time-based audiovisual media. It provides an Objective-C interface you use to work on a detailed level with time-based audiovisual data. For example, you can use it to examine, create, edit, or reencode media files. You can also get input streams from devices and manipulate video during realtime capture and playback.

    via - Apple

提交回复
热议问题