Skip to content

Instantly share code, notes, and snippets.

View kwindla's full-sized avatar

Kwindla Hultman Kramer kwindla

View GitHub Profile
@kwindla
kwindla / button-and-iframe.js
Created March 10, 2019 21:49
a button that starts a new video call
<button onclick="startCall()">
start call
</button>
<script>
async function startCall() {
let callUrl = 'https://api-demo.daily.co/this-is-a-placeholder',
iframeEl = document.createElement('iframe');
iframeEl.width = 350;
iframeEl.height = 425;
@kwindla
kwindla / button-and-iframe.js
Created March 10, 2019 21:47
a button that starts a video call
<button onclick="startCall()">
start call
</button>
<script>
async function startCall() {
let callUrl = 'https://api-demo.daily.co/this-is-a-placeholder',
iframeEl = document.createElement('iframe');
iframeEl.width = 350;
iframeEl.height = 425;
export const plans = {
PLAN001A: {
monthlyCost: 0,
monthlyMinutesIncluded: 2000,
monthlyMinutesCap: 2000,
maxRoomParticipants: 2,
maxApiRooms: 5
},
PLAN049A: {
monthlyCost: 49,
@kwindla
kwindla / video-hello-world.html
Created January 26, 2019 21:22
Daily.co Embedded Video Call "Hello World"
<html>
<head>
<title>embedded video call</title>
</head>
<body style="background: -webkit-gradient(linear, left top, left bottom,
from(#23cb40), to(#aaaaaa)) fixed;">
<iframe
allow="camera,microphone,display"
src="https://kwindla.daily.co/hello"
height="75%" width="40%"
@kwindla
kwindla / soup-server.js
Created April 25, 2017 22:37
minimal mediasoup server
import cmdLineArgs from 'command-line-args';
import mediasoup from 'mediasoup';
import WebSocket from 'ws';
import {
remove,
find,
sortBy,
reverse,
} from 'lodash';