Ziggeo、WebRTC 无法读取视频文件
Ziggeo, WebRTC Could not read video file
我正在实现应该支持异步视频录制的应用程序,我开始探索 Ziggeo,很酷的是它支持 WebRTC,我想使用它。下面是快速启动应用程序。在 Chrome 和 FF 上一切正常,但在 Opera 上我收到以下错误 Could not read video file
,状态代码为 412,有什么想法可能导致此错误吗?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-stable/ziggeo.css" />
</head>
<body>
<button onclick="startVideoRecording()">Start video</button>
<div id="video">
</div>
<script src="//assets-cdn.ziggeo.com/v1-stable/ziggeo.js"></script>
<script>ZiggeoApi.token = "MY-TOKEN-IS-HERE";</script>
<script>ZiggeoApi.Config.cdn = true;</script>
<script>ZiggeoApi.Config.webrtc = true;</script>
<script>
function startVideoRecording() {
console.log('recording');
recorder = ZiggeoApi.Embed.embed('#video', {
limit: 15,
width: 770,
height: 557,
});
}
</script>
</body>
</html>
Ziggeo 上最新版本的 JS SDK 已解决此问题 - 即“v1-r10”
要使用它,您只需更改代码中的 header 即可调用,如下所示:
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-r10/ziggeo.css" />
<script src="//assets-cdn.ziggeo.com/v1-r10/ziggeo.js"></script>
更新(2016 年 5 月)
更新此 post 以反映 v1-r10 当前是稳定版本的事实,因此最好调用稳定版本而不是特定版本(因为您将获得所有最新的稳定版本,包括它们的升级和修复)。
这是使用以下代码完成的:
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-stable/ziggeo.css" />
<script src="//assets-cdn.ziggeo.com/v1-stable/ziggeo.js"></script>
我正在实现应该支持异步视频录制的应用程序,我开始探索 Ziggeo,很酷的是它支持 WebRTC,我想使用它。下面是快速启动应用程序。在 Chrome 和 FF 上一切正常,但在 Opera 上我收到以下错误 Could not read video file
,状态代码为 412,有什么想法可能导致此错误吗?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-stable/ziggeo.css" />
</head>
<body>
<button onclick="startVideoRecording()">Start video</button>
<div id="video">
</div>
<script src="//assets-cdn.ziggeo.com/v1-stable/ziggeo.js"></script>
<script>ZiggeoApi.token = "MY-TOKEN-IS-HERE";</script>
<script>ZiggeoApi.Config.cdn = true;</script>
<script>ZiggeoApi.Config.webrtc = true;</script>
<script>
function startVideoRecording() {
console.log('recording');
recorder = ZiggeoApi.Embed.embed('#video', {
limit: 15,
width: 770,
height: 557,
});
}
</script>
</body>
</html>
Ziggeo 上最新版本的 JS SDK 已解决此问题 - 即“v1-r10”
要使用它,您只需更改代码中的 header 即可调用,如下所示:
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-r10/ziggeo.css" />
<script src="//assets-cdn.ziggeo.com/v1-r10/ziggeo.js"></script>
更新(2016 年 5 月)
更新此 post 以反映 v1-r10 当前是稳定版本的事实,因此最好调用稳定版本而不是特定版本(因为您将获得所有最新的稳定版本,包括它们的升级和修复)。
这是使用以下代码完成的:
<link rel="stylesheet" href="//assets-cdn.ziggeo.com/v1-stable/ziggeo.css" />
<script src="//assets-cdn.ziggeo.com/v1-stable/ziggeo.js"></script>