【问题标题】:Vimeo video upload crashing in Swift when upload video to the server [closed]将视频上传到服务器时,Vimeo 视频上传在 Swift 中崩溃 [关闭]
【发布时间】:2017-12-27 04:04:30
【问题描述】:

视频实际上已上传,但在应用崩溃时视频的标题和说明未更新的设置中。

这里我附上发生崩溃的屏幕截图。

【问题讨论】:

标签: ios swift vimeo vimeo-api vimeo-ios


【解决方案1】:

发生崩溃是因为uploadTicketvideourinil。您正在使用强制展开,如果您展开的值为nil,则会导致崩溃。试试吧

if let videoUri = self.uploadTicket?.video?.uri {
    // put rest of the code here
}

【讨论】:

  • 感谢您的重播,崩溃问题已解决,但上传过程无休止。 @mag_zbc
猜你喜欢
  • 1970-01-01
  • 2016-06-09
  • 1970-01-01
  • 1970-01-01
  • 2016-01-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多