Skip to content

Instantly share code, notes, and snippets.

@Shatatel
Shatatel / webrtc-publish
Last active Dec 1, 2019
WebRTC publish page with sizes selection
View webrtc-publish
<!DOCTYPE html>
<html>
<head>
<!-- https://github.com/webrtc/adapter is used for cross-browser interop -->
<script type="text/javascript" src="/flu/js1/webrtc_adapter.js"></script>
<!-- -->
<style>
.container{
text-align: center;
}
View flussonic-webrtc-playback.html
<!doctype html>
<html>
<head>
<!-- https://github.com/webrtc/adapter is used for cross-browser interop -->
<script type="text/javascript" src="https://unpkg.com/webrtc-adapter@2.0.8/out/adapter.js"></script>
</head>
<body>
<video id="container" controls autoplay></video>
<script>
window.onload = function() {
View flussonic-webrtc-publish.html
<!doctype html>
<html>
<head>
<!-- https://github.com/webrtc/adapter is used for cross-browser interop -->
<script type="text/javascript" src="https://unpkg.com/webrtc-adapter@2.0.8/out/adapter.js"></script>
</head>
<body>
<video id="container" controls autoplay></video>
<script>
window.onload = function() {
You can’t perform that action at this time.