Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

video upload title issue #249

Open
gowthamidss opened this issue Aug 27, 2020 · 1 comment
Open

video upload title issue #249

gowthamidss opened this issue Aug 27, 2020 · 1 comment

Comments

@gowthamidss
Copy link

@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 !!!!

@rpassis
Copy link
Contributor

rpassis commented Aug 28, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants