[英]How to send webcam stream to wowzaurl using webrtc
I have to send stream to wowza url using webrtc. 我必须使用webrtc将流发送到wowza网址。 I am able to display webcam stream to browser but for going further I have no Idea about this.
我可以将网络摄像头流显示给浏览器,但对于进一步的工作,我对此一无所知。
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(){
})
Update: 更新:
You can't.
你不能
As @Aleks pointed out in the comments there is now a preview of Wowza WebRTC support available. 正如@Aleks在评论中指出的那样,现在可以预览Wowza WebRTC支持。
Original: 原版的:
You can't. 你不能
Wowza does not currently have any support for WebRTC ( wowza forums post ). Wowza当前不支持WebRTC( wowza论坛帖子 )。 Even if you were to wire up your own RTSP or RTMP signalling in the browser the Wowza RTP stack will still not be able to carry out the required ICE and STUN checks.
即使您要在浏览器中连接自己的RTSP或RTMP信号,Wowza RTP堆栈仍将无法执行所需的ICE和STUN检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.