Home Controlling the time taken to upload videos on facebook using swift 4
Reply: 0

Controlling the time taken to upload videos on facebook using swift 4

Pratz_iOS
1#
Pratz_iOS Published in 2018-02-12 23:19:50Z

I have been trying to upload/share videos on facebook since past two days.For that,I have tried to execute following code

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])

    {  
       let video : FBSDKShareVideo = FBSDKShareVideo()
        video.videoURL =  info[UIImagePickerControllerReferenceURL] as! URL!
        let content : FBSDKShareVideoContent = FBSDKShareVideoContent()
        content.video = video
        FBSDKShareDialog.show(from:self, with:content, delegate: self )
        picker.dismiss(animated: true, completion: nil)
}

This code enables sharing video on facebook but it takes too long to share that video on facebook and that doesn't appear correct to me .Is there any way to upload videos on facebook that takes least time and appears user friendly.Any kind of help in this direction would be highly appreciated .Thanks in advance!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.331214 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO