diff --git a/1-viewer-app/app.js b/1-viewer-app/app.js new file mode 100644 index 0000000..92de346 --- /dev/null +++ b/1-viewer-app/app.js @@ -0,0 +1,51 @@ +// Dolby.io Streaming Workshop: Part 1 +// App.js manages the viewer functionality. +// Web Docs: https://docs.dolby.io/streaming-apis/docs/web#viewer + +let joinBtn = document.getElementById("joinBtn"); +let leaveBtn = document.getElementById("leaveBtn"); +let videoPlayer = document.getElementById("videoPlayer"); + +function addStreamToYourVideoTag(mediaTrack) { + // Takes in a stream and assigns it to the