如何录制将在Android

时间:2015-10-19 17:48:26

标签: android ios uiimagepickercontroller video-recording avassetexportsession

我需要在iOS上录制视频,并希望在Android上播放该视频。我正在使用以下代码通过UIImagePickerController在iOS中录制视频。录制的视频在iOS中成功播放,但在Android中播放。我正在以.mp4格式录制视频

imagePicker            = UIImagePickerController()
    imagePicker.delegate   = self
    imagePicker.sourceType = .Camera
    imagePicker.showsCameraControls = false
    self.imagePicker.mediaTypes = [kUTTypeMovie, kUTTypeImage]
    self.imagePicker.videoMaximumDuration = 12
    self.imagePicker.videoQuality = UIImagePickerControllerQualityType.TypeIFrame960x540
    self.imagePicker.cameraFlashMode = .Off
    self.imagePicker.cameraCaptureMode = UIImagePickerControllerCameraCaptureMode.Video

0 个答案:

没有答案