[英]How to send webcam stream to wowzaurl using webrtc
我必须使用webrtc将流发送到wowza网址。 我可以将网络摄像头流显示给浏览器,但对于进一步的工作,我对此一无所知。
var videoContainer = document.getElementById('video'),
vendorUrl = window.URL || window.webkitURL;
navigator.getMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
var code;
navigator.getMedia({
video:true,
audio:false
}, function (stream){
code = vendorUrl.createObjectURL(stream);
console.log(code);
videoContainer.src = code;
videoContainer.play();
}, function (error){
console.log(error);
})
myAppService.createLiveVideo(user).then(function(response){
var streamUrl = code.substring(code.lastIndexOf("/")+1);
var url = 'rtmp://' + response.data.data.liveVideoInfo.unicastBasePath + '/'+ streamUrl;
}, function(){
})
更新:
你不能
正如@Aleks在评论中指出的那样,现在可以预览Wowza WebRTC支持。
原版的:
你不能
Wowza当前不支持WebRTC( wowza论坛帖子 )。 即使您要在浏览器中连接自己的RTSP或RTMP信号,Wowza RTP堆栈仍将无法执行所需的ICE和STUN检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.