简体   繁体   English

如何使用webrtc将摄像头流发送到wowzaurl

[英]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.

相关问题 WebRTC:如何将网络摄像头数据作为数据流? - WebRTC: how to get the webcam data as a stream of data? 如何使用 WebRTC 在 React JSX 中启动和停止网络摄像头 stream 和麦克风? - How to start and stop both the webcam stream and microphone in React JSX using WebRTC? 有没有办法使用 Webrtc 将您的网络摄像头连接到您的 android 应用程序? - Is there a way to stream your webcam to your android app using Webrtc? 重新连接网络摄像头时,WebRTC会继续播放视频流 - WebRTC continue video stream when webcam is reconnected 延迟显示网络摄像头/摄像机流-WebRTC - Show webcam / camera stream with delay - webrtc 如何使用javascript和python3上传网络摄像头视频流并在它们到达服务器后立即发送字节? - How to upload a webcam stream of video and send bytes as soon as they arrive to the server using javascript and python3? 如何在MacBook Pro上使用webRTC实时传输外部网络摄像头 - How to do the live streaming of external webcam using webRTC on MacBook Pro 如何使用 ReactJs 将网络摄像头流式传输到移动浏览器? - How to stream webcam into mobile browser by using ReactJs? 如何将webrtc流的内容直接发送到我的服务器? - How to send contents of a webrtc stream directly to my server? 访问摄像头视频流的像素(JS / WebRTC / MediaStreamTrack) - Access pixels of a webcam's video stream (JS/WebRTC/MediaStreamTrack)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM