NSURL from String gets truncated, dots on the UIVideoEditorController's video path Swift 2 iOS 8

后端 未结 1 782
小蘑菇
小蘑菇 2021-01-27 04:37

I can\'t get the full NSURL of the editedVideoPath, here\'s my code:

// GLOBAL VARIABLES
    var videoPath = String()
    var videoURL = NSURL()


// Video Edito         


        
相关标签:
1条回答
  • 2021-01-27 05:10

    Since you're using a file path, you want to use

    NSURL(fileURLWithPath: editedVideoPath)
    

    instead of

    NSURL(string: editedVideoPath)
    
    0 讨论(0)
提交回复
热议问题