janus-gateway

Webrtc stream local video file

こ雲淡風輕ζ 提交于 2021-02-07 10:24:01
问题 How would one stream a local media file(video file) to peers?( i am using janus-gateway - videoroom plugin for this ). For audio there is webAudio, but what about the video? Thanks! Update : Maybe someone has an example? Or a small code snippet? Maybe a link to some lib? 回答1: Render the local video on Canvas & create stream object from Canvas element. And then you can add the stream to PeerConnection. Then stream will be sent to remote peer(Janus/Browser/any server). Demo: https://webrtc

Webrtc stream local video file

谁说我不能喝 提交于 2021-02-07 10:22:31
问题 How would one stream a local media file(video file) to peers?( i am using janus-gateway - videoroom plugin for this ). For audio there is webAudio, but what about the video? Thanks! Update : Maybe someone has an example? Or a small code snippet? Maybe a link to some lib? 回答1: Render the local video on Canvas & create stream object from Canvas element. And then you can add the stream to PeerConnection. Then stream will be sent to remote peer(Janus/Browser/any server). Demo: https://webrtc

在Mac下配置janus-gateway服务器的时候遇到了找不到`libssl`和`libcrypt

霸气de小男生 提交于 2020-11-05 14:16:18
文章首发地址 在Mac下配置janus-gateway服务器的时候遇到了找不到 libssl 和 libcrypto 错误, 详情如下: ./configure ... checking for glib-2.0 >= 2.34 libconfig nice jansson >= 2.5 libssl >= 1.0.1 libcrypto zlib ... no configure: error: Package requirements ( glib-2.0 >= 2.34 libconfig nice jansson >= 2.5 libssl >= 1.0.1 libcrypto zlib ) were not met: No package 'libssl' found No package 'libcrypto' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix 只需要自定义 PKG_CONFIG_PATH 即可 在执行 ./configure --prefix=/usr/local/janus PKG_CONFIG_PATH=/usr/local/opt/openssl/lib

COTURN-JANUS WEBRTC环境搭建

笑着哭i 提交于 2020-08-11 17:02:25
概述: 注意端口 tcp/udp的开放 安装coturn和janus前先安装依赖包 证书和turnserver用户密码需配套 前提准备 基础环境的准备,包括服务器环境、地址、证书、防火墙配置等。</br> 环境准备</br> 操作系统:centos 7.6 x64</br> 一个带有SSL证书的域名</br> 需要开放对应的端口:8088 8188 3478 3480-3500 7000-9000 443</br> 证书转换 mkdir /etc/ssl/cert/domain.com cd /etc/ssl/cert/domain.com 上传证书至此目录,一般用Nginx适用的证书即可。如果有pem的最好,直接上传到此处,如果没有的话,需要转换。 openssl rsa -in domain.com.key -text > key.pem openssl x509 -inform PEM -in domain.com.crt > cert.pem 开始安装 开始Webrtc服务的部署及安装,将分步骤详细记录。以及在按步骤执行过程中遇到的问题的处理。 安装依赖包 yum update yum install texinfo libmicrohttpd-devel.x86_64 uncrustify yum -y install epel-release nginx

swift Janus can not publish video, but get remote video successful - can not know reason

╄→гoц情女王★ 提交于 2020-07-22 05:59:08
问题 im tried to use Janus to call in videoroom. the problem is the remote video success to display, but only publisher can not show in janus videoroom, after check log i see : RTCIceConnectionState didChange state 1 RTCIceConnectionState didChange state 4 /** Represents the ice connection state of the peer connection. */ typedef NS_ENUM(NSInteger, RTCIceConnectionState) { RTCIceConnectionStateNew, RTCIceConnectionStateChecking, RTCIceConnectionStateConnected, RTCIceConnectionStateCompleted,

Ant Media, Jitsi and Janus Which one is best to start live voice stream one to many in Mobile Applications?

好久不见. 提交于 2020-07-07 01:21:01
问题 I want to build a mobile application where one of the participating users can broadcast audio at a time to other participants can only listen audio, Ant Media, Jitsi and Janus Which one is best to start live voice stream one to many in Mobile Applications? 回答1: In my opinion [as a stream engineer] Before trying to choose a webrtc sfu, decide why you need webrtc technology ? For one to many stream, hls is better and cheaper, easy to use with 3rd party cdn. If you need to publish stream via

Ant Media, Jitsi and Janus Which one is best to start live voice stream one to many in Mobile Applications?

别等时光非礼了梦想. 提交于 2020-07-07 01:17:33
问题 I want to build a mobile application where one of the participating users can broadcast audio at a time to other participants can only listen audio, Ant Media, Jitsi and Janus Which one is best to start live voice stream one to many in Mobile Applications? 回答1: In my opinion [as a stream engineer] Before trying to choose a webrtc sfu, decide why you need webrtc technology ? For one to many stream, hls is better and cheaper, easy to use with 3rd party cdn. If you need to publish stream via

Reconstruct image from RTP packets

风流意气都作罢 提交于 2020-02-28 15:53:56
问题 I am trying to stream a user's webcam over the network to a C-based server. I have used Janus gateway. I created a small plugin which is heavily based on the echotest demo example : I have my browser connecting to my janus server via WebRTC technology and I have it stream the user's webcam. On the server side, I have janus_incomming_rtp function which gives me a char * buffer and int length . Upon inspection, the buffer of data that's incomming is about the length of the MTU : each frame of

Reconstruct image from RTP packets

删除回忆录丶 提交于 2020-02-28 15:51:11
问题 I am trying to stream a user's webcam over the network to a C-based server. I have used Janus gateway. I created a small plugin which is heavily based on the echotest demo example : I have my browser connecting to my janus server via WebRTC technology and I have it stream the user's webcam. On the server side, I have janus_incomming_rtp function which gives me a char * buffer and int length . Upon inspection, the buffer of data that's incomming is about the length of the MTU : each frame of

H264 WebRTC video streamed from ffmpeg through Janus is very choppy on playback

余生长醉 提交于 2020-01-13 19:14:08
问题 Trying to stream video through following chain: h264/mp4 file on local instance storage (AWS)->ffmpeg->rtp->Janus on same instance->WebRTC playback (Chrome/mac). Resulting video is choppy even as none of the resources seem overloaded (CPU/memory/network bandwidth on any of the systems involved). I also use a Coturn TURN server, it is also not loaded at all and bandwidth is plentiful. Tried switching codecs and it didn't help apart from vp8 which while worked (kind of - choppiness was still