问题描述
我发现这个:
。
之后,使用下一个Api上传视频缩略图On Vine。
2.thumnails
缩略图成功上传在Vine上,收到服务器响应
在 X-Upload-Key 。你可以看到上图。
3.上传视频:
视频数据已成功上传在Vine上,收到服务器响应
在 X-Upload-Key 中获取上传的视频网址。你可以看到上图。
4.创建贴子:
发布成功创建On vine并收到服务器响应
{
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 =;
成功= 1;
}
当打开permalinkUrl =
以及在浏览器上打开链接
请帮助我。有任何想法。
self.exportSession = [[AVAssetExportSession alloc] initWithAsset:mixComposition
presetName:AVAssetExportPreset640x480];
.exportSession.outputFileType = AVFileTypeMPEG4;
I found this: https://github.com/VineAPI/VineAPI/blob/master/endpoints.md
I have following Some Process for share video on vine app.1.Login:https://api.vineapp.com/users/authenticateAuthentication successfully using above doc lin API. I have received a key(session key).
for another Process. After that use the next Api for Upload Video thumbnail On Vine.2.thumnails https://media.vineapp.com/upload/thumbs/1.3.1.mp4.jpg
Thumbnails successfully uploaded On vine and received the server response get the uploaded thumbnails URL in X-Upload-Key. You can see the Above image.3.Upload Video:https://media.vineapp.com/upload/videos/1.3.1.mp4
Video Data successfully uploaded On vine and received the server response get the uploaded Video URL in X-Upload-Key. You can see the Above image.4.Create Post:https://api.vineapp.com/posts
Post successfully create On vine and received the 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 the permalinkUrl = "https://vine.co/v/iFaqLt7w5Qm"; get 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 but video did not download actual video.show some message On Video Like this.
Please Help me.Have you any Idea.
Finally I did it,
Just change the setting of AVAssetExportSession before exporting the video to save.
self.exportSession = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPreset640x480];
self.exportSession.outputFileType = AVFileTypeMPEG4;
这篇关于上传的视频没有显示在藤蔓应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!