我正在使用我的应用程序在Vimeo上传视频,但我的一些视频状态没有得到更新 
我已经关注了此链接中提供的api文档:https://developer.vimeo.com/api/upload/videos:
我使用下面的代码:
public boolean sendVideo(String file1, String completeURi, String endpoint, String id) throws FileNotFoundException, IOException {
File file = new File(file1);
long contentLength = file.length();
String contentLengthString = Long.toString(contentLength);
FileInputStream is = new FileInputStream(file);
int bufferSize = 20485760;
byte[] bytesPortion = new byte[bufferSize];
int byteNumber = 0;
while (is.read(bytesPortion, 0, bufferSize) != -1) {
String contentRange = Integer.toString(byteNumber);
boolean success = false;
int bytesOnServer = 0;
while (!success) {
long bytesLeft = contentLength - (bytesOnServer); …Run Code Online (Sandbox Code Playgroud) 我有这个 Vimeo 网址。
https://vimeo.com/192207770/0faf1dd09d
我不明白这两个 IDS 代表什么以及如何将其缩短为单个 ID URL。
我见过的所有其他 vimeo 网址都是vimeo.com/<id>
这两个IDS按这个顺序代表什么意思呢?我可以用来寻址的唯一视频 ID 在哪里vimeo.com/<id>?
我为客户开发了一个页面,发生了一些非常奇怪的事情:http: //cpdlectures.com/IStructE/Default.aspx
这个Vimeo视频在Chrome,Mozilla等内部运行.但它在IE中不起作用.
我最初认为它可能是脚本错误或其他什么,所以:
关闭开发人员工具,视频刷新后仍然有效.关闭浏览器,重新打开,再次打破,刷新而不打开开发人员工具,仍然坏了.
什么?Microsoft现在是否在其浏览器中实现了Observer效果?
怎么会这样?
好的,所以我看了一下人们用vimeo得到的大多数其他问题,我不认为他们遇到了我一直遇到的同样问题.
当我在iPhone和iPad上的Safari应用程序上打开vimeo视频时,它们都可以正常工作没有问题.
现在我创建了一个iPhone应用程序,它有一个UIWebView并加载一个vimeo播放器视频,也可以正常工作.
问题是,如果我现在在我的iPad上安装相同的应用程序,vimeo播放器拒绝加载视频,它只是挂起并且微调器继续旋转,但视频将无法加载.
然而,现在我之后做的是创建一个基本应用程序,它将UIWebView中的vimeo播放器URL加载为原生iPad应用程序,而不是调整大小的iPhone应用程序或适合iPad的"2x".令人惊讶的是,这很好.
所以现在我很困惑......如果没有运行专为iPad设计的应用程序,为什么iPad不会播放vimeo视频呢?幕后是否有一些特殊的魔法可能会打破这个?
我在这里不知所措,任何帮助将不胜感激
这是简单的代码:http://jsfiddle.net/YAFuW/1/
基本上我试着这样使用:
<iframe src="http://player.vimeo.com/video/40977539?api=1" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<a href="#">STOP</a>
$('a').click(function() {
alert('stoped');
froogaloop.api('unload');
});
Run Code Online (Sandbox Code Playgroud) 这是我的配置:
- Mac 10.9
- Firefox 28-29
我的包含Vimeo视频的iframe保持黑色并显示以下错误消息:
<此视频无法使用您当前的设置播放.>
它适用于所有其他浏览器.

Markup iframe:
<iframe src="//player.vimeo.com/video/83913899?title=0&byline=0&portrait=0&color=111" width="960" height="540" frameborder="0" allowfullscreen="0" kwframeid="1"></iframe>
Run Code Online (Sandbox Code Playgroud)
链接到页面:http:
//www.monakimprojects.com/projects/uniqlo-campaign#slide-02
PS:一位朋友告诉我它适用于Firefox 29,Mac OS X 10.6.
所以它看起来像是一个OSX问题.
类似这样的问题,询问有关如何在tvOS播放YouTube视频,我想我正在创建的应用程序播放视频的Vimeo.但是,正如这里所解释的那样,常规Web视图(我在iOS中的操作方式)已经完成.
假设我知道视频页面的URL但不知道原始.mp4文件的URL,我将如何在tvOS上播放Vimeo视频?
我有一个WebView可以很好地加载Vimeo视频并播放它们,但是,一旦视频开始播放,播放器控制(播放/暂停)消失,似乎没有办法让它们恢复.这是代码:
videoView = (WebView) findViewById(R.id.videoView);
String videoHtml = "<iframe src=\"https://player.vimeo.com/video/37551417\" width=\"300\" height=\"200\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
videoView.getSettings().setJavaScriptEnabled(true);
videoView.loadDataWithBaseURL("", videoHtml , "text/html", "UTF-8", "");
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用插件在 flutter 应用程序中播放vimeo 视频,video_player但没有成功,它抛出了一堆错误。请帮助我如何在颤振应用程序中实现这一点?使用 webview 或任何插件等?也许代码片段对我有很大帮助!
这是我的代码片段
import 'package:video_player/video_player.dart';
import 'package:flutter/material.dart';
void main() => runApp(VideoApp());
class VideoApp extends StatefulWidget {
@override
_VideoAppState createState() => _VideoAppState();
}
class _VideoAppState extends State<VideoApp> {
VideoPlayerController _controller;
@override
void initState() {
super.initState();
_controller = VideoPlayerController.network(
'https://vimeo.com/{some-video-id}')
..initialize().then((_) {
// Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
setState(() {});
});
}
@override
Widget build(BuildContext context) {
return …Run Code Online (Sandbox Code Playgroud) 我正在尝试播放嵌入 iOS 本机应用程序中的内嵌视频。
无论我做什么,播放视频后播放器都会自动进入全屏。
我正在尝试所有提到的建议,例如playsinline,allowfullscreen="false"等等controls="false"。
有没有办法阻止iOS webview进入全屏?