问题标签 [vine]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
194 浏览

iphone - 在 UITableviewCell 中像 Vine 一样播放视频并下载并存储到缓存中

您好,我正在尝试从服务器播放 UITableView 中的多个视频,我已经完成了在屏幕上显示的 UITableViewCell 上的播放,当单元格可见并在单元格上播放时,我遇到了下载视频(如 vine 应用程序)的问题。

在此之前是否有人面临同样的问题,我们将不胜感激。

先感谢您。

0 投票
1 回答
330 浏览

javascript - Get the Vine .mp4 source - iOS

I have found a few good answers for this but in PHP, is there a method with JavaScript or with iOS?

The links I have found:

  1. How to get Vine video url (not sure how this is implemented)
  2. Get .mp4 source and poster image from Vine Id (PHP) - it's php so it's not what I am chasing.

As an example, when you open "inspect element" on the video, this code should be present (with different id's naturally):

vine video element

If you type in the url("https://v.cdn.vine.co/r/videos/..... .mp4) and stop at the .mp4 the video will play as a video in your browser like so:

https://v.cdn.vine.co/r/videos/283A5A8FE01255752559474962432_365d817ea89.4.3.6417578100978898648.mp4

This is what I want; the url("https://...."). I can edit the entire content of the URL to only get the .mp4 and not the content afterwards, which is a .jpg. That I can do. I can't seem to get the url content by using the https://vine.co/v/eUm1bYVvWj6 link as is, without using PHP.

Any help would be much appreciated.

I have both UIWebView and MPMoviePlayer available and can use either a HTML string in my urlRequest or simply play the .mp4 URL with MPMoviePlayer. I just want to know how to get the .mp4.

0 投票
0 回答
710 浏览

javascript - iFrame 不使用流体宽度视频更新方向变化的大小

我已经在一个网站上实现了与一堆 Vine iFrame 一起使用的流体宽度视频。这在桌面上运行良好,但在 iPad 上更改方向时 iFrame 的内容不会按比例缩小。

HTML:

CSS:

我试图创建一个 JavaScript 函数来强制包含 iFrame 的宽度和高度,但据我了解,这不会做任何事情,因为触发器必须发生在 iFrame 内。

JavaScript:

关于如何排序的任何线索?

0 投票
1 回答
98 浏览

javascript - Angular fetch vine 缩略图

我尝试使用以下代码按照他们的文档获取 vine 缩略图:

但在控制台中我有这个错误:

XMLHttpRequest cannot load https://vine.co/oembed.json?url=https%3A%2F%2Fvine.co%2Fv%2FeV1mMuab7Mp. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access.

顺便说一句,这个链接:https://vine.co/oembed.json?url=https%3A%2F%2Fvine.co%2Fv%2FeV1mMuab7Mp有效。如果我直接放到浏览器的网址栏。我得到这个JSON

听起来像 CORS 问题。但是由于我无法控制Vine,我应该如何调用此服务?

0 投票
0 回答
105 浏览

php - Vine oEmbed - 500 内部服务器错误 - Rackspace 服务器

我正在尝试通过 oEmbed API 为 Vine 提取 JSON 数据。该请求在浏览器以及我的本地计算机和另一台服务器上运行良好。这是我的代码

但是一旦我在德克萨斯地区的 My Rackspace 服务器上运行它,它就会抛出一个HTML 格式的文本响应 500 Internal Server Error 作为文本(实际的 http 状态代码是 200)。我在下面添加了响应截图的链接以供参考。

来自 vine/twitter 的回复图片

我已经与 Rackspace 支持人员进行了交谈,似乎 Twitter / Vine 方面阻止了我们服务器的 IP 到达 API。我也在 Twitter 上发布了关于它的信息,但没有得到他们的回应 - https://twittercommunity.com/t/vine-oembed-500-internal-server-error-rackspace-server/56478

我的最终目标是在不出现内部服务器错误的情况下获取视频的缩略图。

0 投票
0 回答
103 浏览

ios - 藤上传错误

我正在通过以下链接在 vine App 上上传视频:https ://github.com/VineAPI/VineAPI/blob/master/endpoints.md 。视频已成功上传。但是当打开我的 Iphone6 的 Vine 应用程序并转到我的帖子视图时,上传的视频不会显示在我的帖子中。

我正在使用这个:`PUT - https://media.vineapp.com/upload/videos/1.3.1.mp4

0 投票
2 回答
434 浏览

android - 在社交应用程序中加载大量位图而不在 android 中使用 java 堆?

基本上我正在制作一个可滚动的图像提要。它有效。但是当内存分析时,我认为我的用户无法加载大量图像而不会崩溃。我也在为 Instagram 的应用程序进行内存分析,发现虽然他们正在加载大量图像,但它们的堆大小仍然存在无论我的屏幕上有多少图像,都保持不变。可能有 3 种可能性

1)要么他们使用本机内存进行图像渲染,但我尝试过实现它,但不使用堆我无法渲染图像(如果你能在这个问题上帮助我,那就太酷了)

2)他们使用大于 4 的 inSampleSize 但这实际上是不可能的,因为图像清晰且质量中等

3)我在这闻到了原生的openGL接口,是吗?

我错过了什么吗!请帮忙 !!我正在使用“ImageView”加载位图


即使在内存分析“Vine 应用程序”时,我发现他们的 Java 堆也保持不变,而我的 Java 堆随着加载的位图数量而增加

我现在正在使用这个库 https://github.com/AndroidDeveloperLB/AndroidJniBitmapOperations

0 投票
1 回答
68 浏览

javascript - Vine:以编程方式控制播放

我正在使用他们提供的标准嵌入代码嵌入 Vine,该代码会加载带有视频的 iframe。由于它是跨域 iframe,我无法通过 Javascript 访问它并播放/暂停视频。

我有一个葡萄藤滑块,希望它们只在屏幕上播放。

有没有办法通过 JS 播放/暂停 Vine?我在他们的文档中没有找到任何东西。

谢谢。

0 投票
1 回答
281 浏览

vine - 禁用嵌入式 Vine 自动播放

注意:此处发布的答案:知道如何禁用嵌入式“Vine.co”视频的自动播放吗?已过时

给定一个嵌入式 vine 视频 iframe,例如:

有没有办法禁用自动播放视频?

0 投票
1 回答
217 浏览

android - Oembed Vine Android webview-ssl错误

我正在尝试Vine使用 a 嵌入到 android 应用程序中,webview并调用 vine ombed api 以获取要在webview. 我目前收到以下错误

https://vine.co/v/MwrDbBbbwIK/embed/simple net::ERR_INSECURE_RESPONSE

我知道这是某种 ssl 证书错误。我可以让它在我的 android 中正确显示,Safari但不能Chrome在我的 android中显示webview。有没有办法解决这个错误?