如何使用swift

时间:2016-11-30 20:10:03

标签: ios swift xcode video viewcontroller

我想从库(我已经完成)中选择一个视频。现在,我想拍摄该视频并将其显示在视图控制器中。我该怎么办?我到处寻找,一无所获。

  Here is my code for trying to get the file name of a selected video from the library, which I am trying to display in a webview. It does not work.

videoURL = info [UIImagePickerControllerReferenceURL]为! NSURL?

让fileURL = NSURL(fileURLWithPath:“(videoURL)”)

videoView.loadHTMLString(“”,baseURL:nil)

非常感谢任何帮助。谢谢!

1 个答案:

答案 0 :(得分:-1)

您需要实现委托方法。请查看:

How to select any Video or Movie file from UIImagePickerController