Can anyone think of a reason why this might happen? (janus gateway is a webRTC gateway – https://planb.nicecupoftea.org/2015/08/15/aws-janus-gateway-strangeness/)
- Free tier t2.micro AWS, brand new account
- select ami-886e3aff (via http://cloud-images.ubuntu.com/locator/ec2/), create instance, all defaults; new security group with all tcp and upd ports open; used default vpc, new key
- chown 400 hsh7.pem
- ssh -i hsh7.pem -v ubuntu@public-ip
- installation steps below
result: go to http://public-ip/janus-gateway-streamtest.html in Firefox 40
In my house I can see a testcard.
On no other network can anyone see a testcard.
WHY?
Steps:
sudo apt-get update && sudo apt-get upgrade
sudo aptitude install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev pkg-config gengetopt libtool automake dh-autoreconf gupnp-igd-1.0
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --disable-websockets --disable-data-channels --disable-rabbitmq --disable-docs --prefix=/opt/janus
make
sudo make install
sudo make configs
sudo pico /opt/janus/etc/janus/janus.plugin.streaming.cfg
[gst-rpwc]
type = rtp
id = 1
description = RPWC H264 test streaming
audio = yes
audioport = 8005
audiopt = 10
audiortpmap = opus/48000/2
video = yes
videoport = 8004
videopt = 96
videortpmap = H264/90000
videofmtp = profile-level-id=42e028\;packetization-mode=1
Installing gStreamer and Nginx
sudo apt-get install libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad libgstreamer-plugins-base1.0-dev
sudo aptitude install nginx
cd /var/www/html
sudo cp -r /opt/janus/share/janus/demos/* .
sudo curl -O https://gist.githubusercontent.com/libbymiller/70ad942d070853167659/raw/acc38f4ccefb2c333a4cca460ec52a3151cbeebd/janus-gateway-streamtest.html
sudo service nginx start
test – 2 x windows
gst-launch-0.10 videotestsrc ! video/x-raw-rgb,width=640,height=480,framerate=30/1 ! videoscale ! videorate ! ffmpegcolorspace ! timeoverlay ! x264enc bitrate=256000 profile=1 tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=8004
/opt/janus/bin/janus -F /opt/janus/etc/janus