ios - Uploaded Video did not show on vine app -
i found this: https://github.com/vineapi/vineapi/blob/master/endpoints.md
i have following process share video on vine app. 1.login:https://api.vineapp.com/users/authenticate authentication using above doc lin api. have received key(session key).
for process. after use next api upload video thumbnail on vine. 2.thumnails https://media.vineapp.com/upload/thumbs/1.3.1.mp4.jpg
thumbnails uploaded on vine , received server response uploaded thumbnails url in x-upload-key. can see above image. 3.upload video:https://media.vineapp.com/upload/videos/1.3.1.mp4
video data uploaded on vine , received server response uploaded video url in x-upload-key. can see above image. 4.create post:https://api.vineapp.com/posts
post create on vine , received server response
{ code = ""; data = { created = "2016-04-18t09:27:20.000000"; permalinkurl = "https://vine.co/v/ifaqlt7w5qm"; postid = 1333777877887795200; videourl = "http://v.cdn.vine.co/static/private_post_old_client.mp4"; }; error = ""; success = 1;
}
when open permalinkurl = "https://vine.co/v/ifaqlt7w5qm"; error message.you can see in image
and aslo open link on browser http://v.cdn.vine.co/static/private_post_old_client.mp4
video autometically download video did not download actual video.show message on video this.
please me.have idea.
finally did it,
just change setting of avassetexportsession before exporting video save.
self.exportsession = [[avassetexportsession alloc] initwithasset:mixcomposition presetname:avassetexportpreset640x480];
self.exportsession.outputfiletype = avfiletypempeg4;
Comments
Post a Comment