ios - 上传的视频没有显示在 vine 应用程序上

标签 ios video file-upload

我找到了这个:https://github.com/VineAPI/VineAPI/blob/master/endpoints.md

我遵循一些在 vine 应用程序上分享视频的过程。 1.登录: https://api.vineapp.com/users/authenticate 使用上述 doc lin API 成功进行身份验证。我收到了一个 key ( session key )。 enter image description here

另一个进程。 之后使用下一个 Api 在 Vine 上上传视频缩略图。 2.缩略图 https://media.vineapp.com/upload/thumbs/1.3.1.mp4.jpg

enter image description here

缩略图成功上传On vine并收到服务器响应 在 X-Upload-Key 中获取上传的缩略图 URL。你可以看到上图。 3.上传视频:https://media.vineapp.com/upload/videos/1.3.1.mp4 enter image description here

视频数据成功上传到vine并收到服务器响应 在 X-Upload-Key 中获取上传的视频 URL。你可以看到上图。 4.创建帖子: https://api.vineapp.com/posts enter image description here

在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 = "";
success = 1;

当打开 permalinkUrl = "https://vine.co/v/iFaqLt7w5Qm ";得到错误信息。你可以在图片中看到 enter image description here

并在浏览器中打开链接 http://v.cdn.vine.co/static/private_post_old_client.mp4

视频自动下载,但视频没有下载实际视频。在视频上显示一些消息,就像这样。 enter image description here

请帮助我。你有什么想法吗。

最佳答案

我终于做到了,

只需在导出视频之前更改 AVAssetExportSession 的设置即可。

self.exportSession = [[AVAssetExportSession alloc] initWithAsset:mixComposition 预设名称:AVAssetExportPreset640x480];

self.exportSession.outputFileType = AVFileTypeMPEG4;

关于ios - 上传的视频没有显示在 vine 应用程序上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36710365/

相关文章:

c++ - 使用 C++ 将二进制文件 (jpg) 读取为字符串

ios - 将图像保存到照片库后如何获取图像的 PHAsset?

html - 视频作为背景未加载

android - 使用 HTML5 标签播放视频

javascript - 是否可以在上传前检查图像尺寸?

symfony - 分块上传验证: "The file could not be uploaded."

ios - 设置 TextField 专注于文本删除

ios - Swift 3 : why does one example work and not the other? 中的可选链接

ios - 设置背景颜色弄乱了drawRect

ios - iOS 上通过 Core Data 的离线模式