rtc

minimal webrtc client
git clone https://git.ce9e.org/rtc.git

commit
aaa05a04794f443ec8a944328d0a59849f290959
parent
0612ba07d20f38165352a59e5152fac27afa8fe3
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-05-17 06:55
add playsinline

Diffstat

M index.html 2 +-
M static/rtc.js 1 +

2 files changed, 2 insertions, 1 deletions


diff --git a/index.html b/index.html

@@ -11,7 +11,7 @@
   11    11 <body>
   12    12 	<div class="rtc">
   13    13 		<div class="rtc-videos">
   14    -1 			<video class="local" autoplay muted></video>
   -1    14 			<video class="local" autoplay playsinline muted></video>
   15    15 		</div>
   16    16 		<form class="rtc-controls">
   17    17 			<label class="toggle">

diff --git a/static/rtc.js b/static/rtc.js

@@ -40,6 +40,7 @@ var getConnection = function(sender) {
   40    40 
   41    41 	var video = document.createElement('video');
   42    42 	video.autoplay = true;
   -1    43 	video.playsInline = true;
   43    44 	container.append(video);
   44    45 
   45    46 	var con = new RTCPeerConnection({