Javascript 高清录制-Ziggeo录像机v2 JS
我很难用Ziggeo录像机拍摄高清视频 我已经设置了一个记录器,基本上,它是Ziggeo托管解决方案的克隆:Javascript 高清录制-Ziggeo录像机v2 JS,javascript,webrtc,ziggeo-api,ziggeo-sdk,Javascript,Webrtc,Ziggeo Api,Ziggeo Sdk,我很难用Ziggeo录像机拍摄高清视频 我已经设置了一个记录器,基本上,它是Ziggeo托管解决方案的克隆: <script> $(document).ready( function() { //assigning the event handler for click on the Next button on first screen $("#step1 button").
<script>
$(document).ready( function() {
//assigning the event handler for click on the Next button on first screen
$("#step1 button").on("click", function() {
//hide first screen
$("#step1").hide();
//show second screen
$("#step2").show();
//add our embedding to the page
var recorder = new ZiggeoApi.V2.Recorder({
//we find the element with id="recorder" to attach v2 recorder to it
element: document.getElementById("recorder"),
attrs: {
//we make the recorder responsive
responsive: true,
//we set the max time for recording to 120 seconds
timelimit: 2 * 60,
theme: "modern",
video_width: 1920,
video_height: 1080,
video_profile_transcoding: "HDcapture",
hd: true,
//we add name and email to the video as a custom data
"custom-data": {
name: $("#name").val(),
email: $("#email").val()
}
}
});
//we activate the recorder
recorder.activate();
recorder.on("verified", function() {
//once video is uploaded and seen that it can be processed the verified event fires we show the
// button to Submit the form
$("#step2 button").show();
});
});
//When Submit button is clicked
$("#step2 button").on("click", function() {
//hide second screen showing recorder
$("#step2").hide();
//show the "Thank you" screen
$("#step3").show();
});
});
</script>
我设置了一个视频转码配置文件(并将其设置为默认),但它无法捕获
所有视频都将通过以下网址播放:
video_width: 640,
video_heigh: 480,
hd: false,
这些Ziggeo支持资源似乎无法回答如何录制HD(w/v2和JS)
在这里,我看不到对HD的引用:
提前感谢您的帮助或指导。Ziggeo产品的承诺太棒了——我只需要让它提供高清 你包括了链接和代码,真是太棒了。看着他们,我能明白为什么它对你不起作用。我的建议是从您的一个链接中查看代码: 这是当前显示的代码:
录制高清视频的关键参数是将recordingwidth
和recordingheight
设置为您希望使用的值。默认值为640x480
HTML代码需要ziggeo-
前缀,而JavaScript代码不需要前缀
因此,更改上述示例将产生如下代码:
var记录器=新的ZiggeoApi.V2.recorder({
//我们找到id=“recorder”的元素以将v2 recorder附加到它
元素:document.getElementById(“记录器”),
属性:{
主题:“现代”,
记录宽度:1920,
记录高度:1080,
“视频配置文件”:“HDU捕获”
}
});
- 我删除了大多数其他参数,以显示需要设置的最基本参数
\u HDcapture
。这是因为标记(我们的系统生成的ID)使用时没有下划线,但是如果您创建了ID,那么这就是一个键(您的唯一ID),为了让我们的系统知道它是一个键,它将查找下划线。因此,如果不在嵌入中添加下划线,那么它将忽略它
- 当您在仪表板中创建视频配置文件时,可以看到显示给您的“identifier:_HDcapture”,帮助您确切了解应该使用什么
现在看看您使用的参数,我相信您使用了视频数据中的参数,然后将它们添加到嵌入中
此视频数据只是向您展示了JavaScript函数中的预期内容,如recorder.get()
或webhook中的内容。有关可以使用的实际参数,请查看
- 需要指出的一点是:如果您的相机支持1080,则只能录制1080。如果您使用720,那么您的相机必须支持720。大多数摄像头都支持640x480,这也是我们默认使用640x480的原因。我这样说是因为:
- 你需要相机能够以你想要的分辨率记录
- 您可能还希望为没有高清摄像头的用户提供其他选择
对于任何与JavaScript和HTML相关的内容,我建议在此处查看文档:。仍然在这里发帖,或者通过电子邮件联系Ziggeo的支持团队(support@ziggeo.com)或透过论坛:
PS:我是Ziggeo团队的一员,我们都喜欢提供帮助,我希望上面的内容对您和其他寻求帮助的人有所帮助:)
video_width: 640,
video_heigh: 480,
hd: false,