VimeoUpload
VimeoUpload copied to clipboard
video upload title issue
@objc func didTapUpload(_ sender: UIBarButtonItem)
{
let title = self.titleTextField.text
let description = self.descriptionTextView.text
self.videoSettings = VideoSettings(title: title, description: description, privacy: "Nobody", users: nil, password: nil)
if self.operation?.state == .executing
{
self.operation?.videoSettings = self.videoSettings
self.activityIndicatorView.startAnimating() // Listen for operation completion, dismiss
}
else if let error = self.operation?.error
{
self.presentOperationErrorAlert(with: error)
}
else
{
if let video = self.video, let viewPrivacy = video.privacy?.view, viewPrivacy != VideoSettingsViewController.PreUploadViewPrivacy
{
NotificationCenter.default.post(name: Notification.Name(rawValue: type(of: self).UploadInitiatedNotification), object: video)
self.dismiss(animated: true, completion: nil)
}
else
{
self.activityIndicatorView.startAnimating()
self.applyVideoSettings()
}
}
}
This is my upload function here i set privacy to "Nobody","Anybody","VIMPrivacy_Private" Nothing works for me could anyone help me to get this out !!!!
Hi @gowthamidss have you tried a lowercase nobody
? If that doesn't work, can you please add more info to this issue so we can see what error you are actually getting?
Additionally, you can find more details about uploading using the Vimeo API on our developer portal https://developer.vimeo.com/api/reference/videos#upload_video