Skip to content

Instantly share code, notes, and snippets.

View kwindla's full-sized avatar

Kwindla Hultman Kramer kwindla

View GitHub Profile
@kwindla
kwindla / hq-720.html
Created April 29, 2021 05:41
Daily video API -- setting simulcast layers for higher bitrates
<html>
<head>
<title>setting simulcast layers for higher bitrate</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<body onload="main()">
<script>
/*
This is sample code showing a simulcast layer configuration
@kwindla
kwindla / set-input-devices-async.js
Created May 20, 2021 19:46
simplest possible daily-js video call API test for setInputDevicesAsync()
<html>
<head>
<title>simplest possible setInputDevicesAsync test</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<!--
repro case attempt for setInputDevicesAsync issue
-->
@kwindla
kwindla / audio-track-subs.html
Created June 20, 2021 03:52
Daily video API -- simple audio-only sample code
<html>
<head>
<title>audio track subs demo</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<!--
audio-only sample code
-->
@kwindla
kwindla / custom-video-and-audio-tracks.html
Created July 22, 2021 03:18
Daily video API -- custom audio and video tracks
<html>
<head>
<title>custom video and audio tracks</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<body>
<div id="local-controls" style="width: 50%; float: left">
<button onclick="createAndJoinCall()">create call object and join</button>
<button onclick="publishCanvasTrack()">
start/use custom video track
@kwindla
kwindla / gist:bc908f503c1a2b36e2a921a9572f109c
Created July 22, 2021 19:05
Chrome 92 WebMediaPlayer breaking change
<html>
<head>
<title>chrome 92 media elements bug</title>
</head>
<body>
<div id="local-controls" style="width: 50%; float: left">
<button onclick="start(badLoop)">
start bad loop (dies at 75 Chrome 92/desktop)
</button>
<button onclick="start(goodLoop)">start good loop</button>
@kwindla
kwindla / start-cam-track-constraints.html
Last active June 12, 2022 12:40
Daily video call API example -- low resolution input track
<html>
<head>
<title>low-resolution input track</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<!--
example: setting input track to low resolution
-->
@kwindla
kwindla / custom-track-mute-unmute.html
Created September 21, 2021 23:45
Daily video call API custom track mute/unmute example
<html>
<head>
<title>low</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<!--
example: calling getUserMedia() directly
bug fix needed: can't send cam+mic stream if any tracks in stream held internally by daily-js
@kwindla
kwindla / custom-track-mute-unmute-2.html
Created November 9, 2021 23:05
Daily video call API custom track mute/unmute example joining muted
<html>
<head>
<title>low</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<!--
example: calling getUserMedia() directly and joining with mic off and cam off
-->
@kwindla
kwindla / music-mode-screenshare-audio.html
Created March 1, 2023 02:24
Music mode screensharing audio test
<html>
<head>
<title>test high bitrate audio-only screenshare</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<body onload="main()">
<div id="videos"></div>
<script>
async function main() {
@kwindla
kwindla / hq-video-example.html
Created May 17, 2023 04:00
daily-js: setting aspect ratio, high framerate, high bitrate for camera video track
<html>
<head>
<title>video aspect ratio and high bitrate/framerate</title>
<script src="https://unpkg.com/@daily-co/daily-js"></script>
</head>
<body onload="main()">
<script>
/*
This is sample code showing a simulcast layer configuration