Browse Source

web-frontend tuning

main
Hendrik Langer 4 years ago
parent
commit
75971de1ba
  1. 2
      raspberry/roberto/camera/camera_gstreamer_webrtc.py
  2. 2
      raspberry/roberto/views/frontend/templates/index.html

2
raspberry/roberto/camera/camera_gstreamer_webrtc.py

@ -59,7 +59,7 @@ webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.googl
if platform == 'raspberry': if platform == 'raspberry':
PIPELINE_DESC = ''' PIPELINE_DESC = '''
webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302 webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302
rpicamsrc bitrate=600000 keyframe-interval=25 exposure-mode=sports annotation-mode=12 preview=false name=rpicamsrc ! video/x-h264,profile=constrained-baseline,width=1280,height=720,framerate=49/1,level=3.0 ! queue max-size-time=100000000 ! h264parse ! rpicamsrc bitrate=1000000 keyframe-interval=25 exposure-mode=sports annotation-mode=12 annotation-text-size=10 preview=false name=rpicamsrc ! video/x-h264,profile=constrained-baseline,width=1280,height=720,framerate=49/1,level=3.0 ! queue max-size-time=100000000 ! h264parse !
rtph264pay config-interval=-1 name=payloader ! rtph264pay config-interval=-1 name=payloader !
application/x-rtp,media=video,encoding-name=H264,payload=96 ! sendrecv. application/x-rtp,media=video,encoding-name=H264,payload=96 ! sendrecv.
audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay ! audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !

2
raspberry/roberto/views/frontend/templates/index.html

@ -147,7 +147,7 @@ socket.on('data', (data) => {
var ctx = canvas.getContext("2d"); var ctx = canvas.getContext("2d");
ctx.font = "24px Arial"; ctx.font = "24px Arial";
ctx.fillStyle = "blue"; ctx.fillStyle = "blue";
ctx.fillText("Hello World", canvas.width/3, 30); //ctx.fillText("Hello World", canvas.width/3, 30);
}; };
</script> </script>

Loading…
Cancel
Save