This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
style { | |
.testClass { | |
background-color: red; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function checkForFaces() { | |
try { | |
if (callFrame.meetingState() !== 'joined-meeting') { | |
return; | |
} | |
// remove all bounding boxes | |
for (let el of document.getElementsByClassName('face-boxes')) { | |
el.remove(); | |
} | |
// detect faces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>basic video call object demo</title> | |
<script crossorigin src="https://unpkg.com/@daily-co/daily-js"></script> | |
<!-- <script crossorigin src="../dist/daily-iframe.js"></script> --> | |
</head> | |
<body onload="run()"> | |
<p> <button onclick="callFrame.startCamera()">start camera</button> </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>basic video call object demo</title> | |
<script src="https://unpkg.com/@daily-co/daily-js"></script> | |
</head> | |
<body onload="run()"> | |
<p> <button onclick="callFrame.join()">join call</button> </p> | |
<p> <button onclick="callFrame.leave()">leave call</button> </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setupAudioContext () { | |
this.audioContext = new window.AudioContext(); | |
// create an output stream node. have to use the constructor form | |
// because we want to make the stream mono | |
this.audioOut = new MediaStreamAudioDestinationNode(this.audioContext, | |
{ channelCount: 1 }); | |
// connecting a single gain node to the audioOut node suffices for | |
// the pipeline to work. a MediaStreamDestination with nothing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>configurable sound test</title> | |
<script src="https://unpkg.com/@daily-co/daily-js"></script> | |
<style> | |
div { | |
margin-bottom: 1em; | |
} | |
#join-sound-off-div { | |
display: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>css test</title> | |
<script src="https://unpkg.com/@daily-co/daily-js"></script> | |
</head> | |
<body onload="main()"> | |
<div style="width: 100%; height: 100%; | |
position: absolute; z-index: 50; | |
background-color: blue"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>record local audio</title> | |
<script src="./daily-js-pluot-core/dist/daily-iframe.js"></script> | |
</head> | |
<body onload="join()"> | |
<div id="buttons" style="width: 50%; float: left"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// accumulated "wisdom" to handle as many play()-related issues as possible, going back | |
// to browser versions of the distant past. | |
// | |
// currently we use separate <video> and <audio> elements as part of ensuring that play() | |
// works as expected for both video and sound. new browser versions *definitely do* | |
// change this behavior, though, so the code below will change over time, too. | |
// we set the elements up like this in our render() function: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>custom camera track</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<script src="https://unpkg.com/@daily-co/daily-js"></script> | |
</head> | |
<body> | |
<div id="buttons" style="width: 50%; float: left;"> | |
room url: | |
<input size="40" type="text" id="roomUrl" |