Video file share with YouTube and Twitter on iOS 6

2019-05-02 00:10发布

I'm working on a Video recording iOS app and as a final step I need to allow the user to share the video file ( MOV ) with FB, Twitter and YouTube. FB implementation is done. But I'm having difficulty with YouTube and Twitter.

I know that Twitter doesn't have Video share option by default and we have to relay on 3rd part services like Vine or twitpic. So I'm ok to drop Twitter video sharing if its too difficult.

But There should be a easy way with YouTube. I have read http://code.google.com/p/google-api-objectivec-client/ but its seems bit outdated.

So I need any one of your's help on this point. Has anyone done any similar implementation for iOS 6+ ? If so kindly give me a helping hand. Or at least a suggestion to use YouTube API with iOS app.

Really appreciate any help.

Kind Regards Viraj

4条回答
淡お忘
2楼-- · 2019-05-02 00:42

I recently open sourced YouTube Direct Lite for iOS.

Here's the upload protocol that I'm using latest resumable uploads.

If you don't want to implement yourself, you can use ESSVideoShare. (Will not work with iOS 7 or higher)

查看更多
太酷不给撩
3楼-- · 2019-05-02 00:42

Thanks everyone for answering and comment on this question because that leads me to get the best solution for my problem. Since I was looking for a very simple solution for my problem there was no direct answer to my question.

After searching on Google and trying out possible solutions I think I have found the simplest way of doing this. The resources are

  1. https://github.com/stuffmc/YouTubeSample_iOS
  2. http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/

Again the code is bit out dated but still work.

Combination of these two and some changed to the Github code to make it ARC enabled I managed to do it. Its 2 simple files and GData static library.

Thanks everyone!

查看更多
不美不萌又怎样
4楼-- · 2019-05-02 00:54

The Google objective-c API client that you reference in your question has a sample app for YouTube authentication and file upload. You should be able to just copy and paste most of the code, just using the correct API keys that you obtained in the Google API Console.

查看更多
Animai°情兽
5楼-- · 2019-05-02 00:55

I recently discovered that the new 'Youtube Capture' app can be used with UIDocumentInteractionController

Reference on iOS

Sadly I have been trying to pass a caption using the annotation field without any success. But if caption is not important, it's worth knowing.

查看更多
登录 后发表回答