HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div id="container">
<div id="player">
<video style="background-color:#000" id="video" preload="">
<source id="video_embed_source" src="http://uploads.ungrounded.net/alternate/701000/701912_alternate_4824.720p.mp4" type="video/mp4" />
</video>
<table id="controls">
<tr>
<td id="r1">
<a class="button big first" id="play" href="" title="">
<i class="icon-play"></i>
</a>
</td>
<td id="r2">
<div id="time" class="buttonGroup">
<div class="static">
<label></label>
<span id="currentTime">
00:00
</span>
<span id="totalTime">
00:00
</span>
</div>
</div>
</td>
<td id="r3">
<div id="seekHolder" class="buttonGroup">
<div id="timeLabel">00:00</div>
<div class="rangeContainer">
<label></label>
<div class="rangeHorizontal" id="seek">
</div>
<div class="stripes" id="loaded">
</div>
<div id="seekFill" class="stripes">
</div>
<div id="seekDrag">
</div>
</div>
</div>
</td>
<td id="r4">
<div class="buttonGroup last" id="right">
<a class="button" id="mute" href="" title="">
<label class="expandable" id="volumeLabel">
<span id="volumePercent">100</span>
<div class="rangeVertical" id="volume">
</div>
<div id="volumeFill">
</div>
<div id="volumeOverlay">
</div>
</label>
<i class="icon-volume-up" id="volumeIcon"></i>
</a>
<a class="button" id="fullscreen" href="" title="">
<label class="expandable">FULL</label>
<i class="icon-fullscreen" id="fullscreenIcon"></i>
</a>
</div>
</td>
</tr>
</table>
</div>
</div>
<p class="outside">Note: Fullscreen doesn't work when in an iframe. You'll have to <a href="https://codepen.io/davepvm/share/zip/luqFk">download this</a> and run it yourself to see it work.</p>
@import url(https://fonts.googleapis.com/css?family=Voltaire);
@import url(https://fonts.googleapis.com/css?family=Prosto+One);
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 40px 0;
}
}
@-moz-keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 40px 0;
}
}
@-ms-keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 40px 0;
}
}
@-o-keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 40px 0;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 40px 0;
}
}
body {
background-color:#111;
}
#container {
margin:20px auto;
width:720px;
height:405px;
}
#player {
background-color:#000;
font-family:'Voltaire', Arial, Helvetica, sans-serif;
font-size:0;
background-color:#000;
position:relative;
width:100%;
height:100%;
text-align:center;
}
#player video {
height:100%;
width:auto;
margin:0 auto;
}
#info {
position:absolute;
bottom:50px;
left:10px;
font-family:'Prosto One', Arial, Helvetica, sans-serif;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
#info h1 {
font-size:15px;
line-height:15px;
color:#FFF;
display:inline;
margin-right:6px;
}
#info h2 {
font-size:11px;
line-height:11px;
color:#7D7575;
display:inline;
}
#player a {
text-decoration:none;
}
#controls {
padding:10px;
position:absolute;
display:table;
bottom:0;
width:100%;
height:35px;
color:#FFF;
border-spacing:0;
opacity:0;
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-ms-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
#player:hover #controls {
opacity:1;
}
td, tr {
padding:0;
border-spacing:0;
border-collapse:collapse;
}
.first {
-webkit-border-radius: 5px 0px 0px 5px;
border-radius: 5px 0px 0px 5px;
}
.last {
-webkit-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
margin-right:0;
}
.buttonGroup {
height:30px;
border-bottom:5px solid rgba(0, 0,0,0.6);
margin-right:1px;
padding:0;
position:relative;
top:0;
}
.static {
width:100%;
margin-bottom:1px;
margin-top:6px;
height:23px;
line-height:23px;
background-color:rgba(0,0,0,0.6);
text-align:center;
position:absolute;
bottom:0;
font-size:0;
padding:0;
}
.static span {
font-size:10px;
}
.button {
font-size:15px;
display:block;
float:left;
color:#EEB211;
margin-bottom:1px;
margin-top:6px;
height:23px;
line-height:23px;
position:relative;
background-color:rgba(0,0,0,0.6);
text-align:center;
margin-right:1px;
padding:0;
}
.button:hover {
color:#000;
background-color:#EEB211;
}
.button.big {
height:35px;
line-height:35px;
font-size:20px;
margin-top:0;
margin-bottom:0;
display:table-cell;
}
label {
display:block;
position:absolute;
top:-6px;
left:0;
right:0;
height:0;
line-height:20px;
font-size:10px;
color:#FFF;
width:100%;
padding-top:5px;
padding-bottom:0;
background-color:rgba(0,0,0,0.6);
overflow:hidden;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.button:hover label.expandable, label.expandable:hover {
-webkit-border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
margin-top:-20px;
padding-bottom:5px;
height:15px;
}
.rangeContainer {
position:absolute;
display:block;
padding:0 7px 0 5px;
margin:6px 0 1px 0;
height:23px;
bottom:0;
left:0;
right:0;
background-color:rgba(0,0,0,0.6);
}
.rangeHorizontal {
display:block;
height:10px;
position:relative;
top:6px;
padding:0;
background-color: #000;
border: 1px solid #000;
cursor:pointer;
}
#loaded {
display:block;
height:10px;
position:absolute;
top:6px;
padding:0;
background-color: rgba(185, 111, 16, 0.5);
border: 1px solid rgba(185, 111, 16, 0.5);
cursor:pointer;
}
#seekFill {
height:10px;
background-color:#EEB211;
border:1px solid #FFE544;
position:absolute;
top:6px;
cursor:pointer;
-webkit-box-shadow: 0px 0px 5px 1px rgba(255, 255, 150, 0.3);
box-shadow: 0px 0px 5px 1px rgba(255, 255, 150, 0.3);
}
#seekDrag {
height:14px;
width:4px;
background-color:#999;
position:absolute;
top:4px;
margin-left:2px;
border:1px solid #000;
cursor:pointer;
opacity:0;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
cursor:pointer;
}
#seekHolder:hover #seekDrag {
opacity:1;
}
#timeLabel {
height:0px;
top:0;
text-align:center;
width:50px;
line-height:15px;
padding-top:0;
color:#FFF;
font-size:10px;
overflow:hidden;
background-color:rgba(0, 0, 0, 0.6);
-webkit-border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
position:absolute;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
#seekHolder:hover #timeLabel {
height:15px;
top:-20px;
padding-top:5px;
}
.rangeVertical {
margin:0 5px;
background-color: rgba(185, 111, 16, 0.5);
border: 1px solid rgba(185, 111, 16, 0.5);
cursor:pointer;
height:70px;
}
#volumeFill {
margin:0 5px;
position:absolute;
bottom:-93px;
left:0;
right:0;
background-color:#EEB211;
border:1px solid #FFE544;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
-webkit-box-shadow: 0px 0px 3px 1px rgba(255, 255, 150, 0.3);
box-shadow: 0px 0px 3px 1px rgba(255, 255, 150, 0.3);
}
#volumeOverlay {
margin:0 5px;
height:70px;
position:absolute;
bottom:-93px;
left:0;
right:0;
border:1px solid rgba(0,0,0,0);
background: url(http://www.pahgawks.com/stuff/volume.gif);
background-position:center center;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
cursor:pointer;
}
.stripes {
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(0, 0, 0, 0.1)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(0, 0, 0, 0.1)), color-stop(0.75, rgba(0, 0, 0, 0.1)), color-stop(0.75, transparent), to(transparent));
background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
-webkit-animation: progress-bar-stripes 3s linear infinite;
-moz-animation: progress-bar-stripes 3s linear infinite;
-ms-animation: progress-bar-stripes 3s linear infinite;
-o-animation: progress-bar-stripes 3s linear infinite;
animation: progress-bar-stripes 3s linear infinite;
-webkit-background-size: 40px 40px;
-moz-background-size: 40px 40px;
-o-background-size: 40px 40px;
background-size: 40px 40px;
}
td {
position:relative;
}
#play, #r1 {
width:50px;
}
#time {
font-size:10px;
width:90px;
}
#r2 {
width:90px;
}
#currentTime {
border-right:2px solid #7D7575;
padding-right:4px;
}
#totalTime {
color:#B96F10;
padding-left:4px;
}
#seekHolder {
width:auto;
position:relative;
}
#seek {
width:100%;;
}
#mute, #fullscreen {
width:40px;
}
#mute:hover #volumeLabel {
height:96px;
top:-86px;
}
#mute:hover #volumeFill, #mute:hover #volumeOverlay {
bottom:7px;
}
#volumeFill {
height:70px
}
#volumeLabel {
font-size:0;
}
#volumeLabel span {
font-size:9px;
}
#r4 {
width:83px;
}
.outside {
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
color:#FFF;
text-align:center;
}
.outside a {
color:#C00;
}
function VideoPlayer(_autoPlay) {
var player = document.getElementById("player");
var playBtn =document.getElementById("play");
var currentTime = document.getElementById("currentTime");
var totalTime = document.getElementById("totalTime");
var seekBg = document.getElementById("seek");
var seekHolder = document.getElementById("seekHolder");
var seekLoaded = document.getElementById("loaded");
var seekFill = document.getElementById("seekFill");
var seekDrag = document.getElementById("seekDrag");
var muteBtn = document.getElementById("mute");
var volumeIcon = document.getElementById("volumeIcon");
var volumeOverlay = document.getElementById("volumeOverlay");
var volumeFill = document.getElementById("volumeFill");
var volumePercent = document.getElementById("volumePercent");
var timeLabel = document.getElementById("timeLabel");
var fullscreenBtn = document.getElementById("fullscreen");
var fullscreenIcon = document.getElementById("fullscreenIcon");
var oldVolume = 1;
var context;
var analyser;
var source;
var animationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame;
this.volume = 1;
this.loop = false;
this.autoPlay = _autoPlay;
this.video = document.getElementById("video");
this.playing = false;
this.width = 590;
this.height = 290;
this.fullscreen = false;
this.play = function() {
playBtn.innerHTML="<i class='icon-pause'></i>";
this.playing=true;
this.video.play();
};
this.pause = function() {
playBtn.innerHTML="<i class='icon-play'></i>";
this.playing=false;
this.video.pause();
};
var togglePlay = function(event) {
if (event) event.preventDefault();
if (this.video.paused) {
this.play();
} else {
this.pause();
}
}.bind(this);
var formatTime = function(i) {
var minutes=Math.floor(i/60);
var seconds=Math.floor(i%60);
return ((minutes < 10) ? ("0" + minutes) : minutes) + ":" + ((seconds < 10) ? ("0" + seconds) : seconds);
};
var getMousePos = function(evt, element) {
var rect = element.getBoundingClientRect();
var root = document.documentElement;
var mouseX = evt.clientX - rect.left - root.scrollLeft;
var mouseY = evt.clientY - rect.top - root.scrollTop;
return {x:mouseX, y:mouseY};
}.bind(this);
var changeTime = function(event) {
event.preventDefault();
this.video.addEventListener("timeupdate", updateTime, false);
document.removeEventListener("mousemove", seek, false);
document.removeEventListener("mouseup", changeTime, false);
event.preventDefault();
var mousePos = getMousePos(event, seekBg);
this.seekTo((mousePos.x/seekBg.offsetWidth)*this.video.duration);
return false;
}.bind(this);
var startSeek = function(event) {
event.preventDefault();
this.video.removeEventListener("timeupdate", updateTime, false);
document.addEventListener("mousemove", seek, false);
document.addEventListener("mouseup", changeTime, false);
return false;
}.bind(this);
var seek = function(event) {
event.preventDefault();
var mousePos = getMousePos(event, seekBg);
var dragTime = (mousePos.x/seekBg.offsetWidth)*this.video.duration;
timeLabel.innerHTML = formatTime(dragTime);
if (Math.round((1-(dragTime/this.video.duration))*(seekBg.offsetWidth))+3<timeLabel.offsetWidth/2) {
timeLabel.style.left = (seekHolder.offsetWidth-timeLabel.offsetWidth) + "px";
} else if (Math.round(((dragTime/this.video.duration))*(seekBg.offsetWidth)+3)<timeLabel.offsetWidth/2) {
timeLabel.style.left="0px";
} else {
timeLabel.style.left = Math.round(((dragTime/this.video.duration))*(seekBg.offsetWidth)+3-timeLabel.offsetWidth/2) + "px";
}
seekFill.style.width = Math.round((dragTime/this.video.duration)*(seekBg.offsetWidth-2))+"px";
seekDrag.style.left = Math.round((dragTime/this.video.duration)*(seekBg.offsetWidth-2))+"px";
return false;
}.bind(this);
var updateTime = function(event) {
currentTime.innerHTML = formatTime(this.video.currentTime);
timeLabel.innerHTML = currentTime.innerHTML;
if (Math.round((1-(this.video.currentTime/this.video.duration))*(seekBg.offsetWidth))+3<timeLabel.offsetWidth/2) {
timeLabel.style.left = (seekHolder.offsetWidth-timeLabel.offsetWidth) + "px";
} else if (Math.round(((this.video.currentTime/this.video.duration))*(seekBg.offsetWidth)+3)<timeLabel.offsetWidth/2) {
timeLabel.style.left="0px";
} else {
timeLabel.style.left = Math.round(((this.video.currentTime/this.video.duration))*(seekBg.offsetWidth)+3-timeLabel.offsetWidth/2) + "px";
}
seekFill.style.width = Math.round((this.video.currentTime/this.video.duration)*(seekBg.offsetWidth-2))+"px";
seekDrag.style.left = Math.round((this.video.currentTime/this.video.duration)*(seekBg.offsetWidth-2))+"px";
}.bind(this);
this.turnOffLoop = function() {
this.loop = false;
this.video.loop=false;
};
this.turnOnLoop = function() {
this.loop = true;
this.video.loop=true;
};
var toggleLoop = function(event) {
if (event) event.preventDefault();
if (this.loop) {
this.turnOffLoop();
} else {
this.turnOnLoop();
}
}.bind(this);
this.seekTo = function(time) {
this.video.currentTime=time;
};
this.resetSong = function(event) {
if ((event && !this.loop) || !event) {
this.seekTo(0);
this.pause();
}
}.bind(this);
this.changeVolume = function(volume) {
if (volume !== 0) oldVolume = volume;
this.volume = volume;
this.video.volume = volume;
};
this.mute = function() {
oldVolume = this.volume;
this.changeVolume(0);
};
this.unMute = function() {
this.changeVolume(oldVolume);
};
var toggleMute = function(event) {
if (this.volume===0) {
this.unMute();
} else {
this.mute();
}
}.bind(this);
var updateVolume = function(event) {
volumePercent.innerHTML = Math.round(this.volume*100);
volumeFill.style.height = Math.round(this.volume*70)+"px";
if (this.volume===0) {
volumeIcon.className = "icon-volume-off";
} else if (Math.round(this.volume)===0) {
volumeIcon.className = "icon-volume-down";
} else {
volumeIcon.className = "icon-volume-up";
}
}.bind(this);
var startDragVolume = function(event) {
event.preventDefault();
muteBtn.removeEventListener("mousedown", startDragVolume, false);
document.addEventListener("mousemove", changeVolumeSlider, false);
document.addEventListener("mouseup", dropVolumeSlider, false);
return false;
}.bind(this);
var dropVolumeSlider = function(event) {
event.preventDefault();
muteBtn.addEventListener("mousedown", startDragVolume, false);
document.removeEventListener("mousemove", changeVolumeSlider, false);
document.removeEventListener("mouseup", dropVolumeSlider, false);
return false;
}.bind(this);
var changeVolumeSlider = function(event) {
event.preventDefault();
var mousePos = getMousePos(event, volumeOverlay);
var newVolume = (volumeOverlay.offsetHeight-mousePos.y)/volumeOverlay.offsetHeight;
if (newVolume>1) newVolume=1;
if (newVolume<=0) {
toggleMute();
} else {
this.changeVolume(newVolume);
}
return false;
}.bind(this);
this.startFullscreen = function() {
if (player.requestFullScreen) {
player.requestFullScreen();
} else if (player.mozRequestFullScreen) {
player.mozRequestFullScreen();
} else if (player.webkitRequestFullScreen) {
player.webkitRequestFullScreen();
}
this.fullscreen = true;
fullscreenIcon.className = "icon-resize-small";
};
this.stopFullscreen = function() {
if (document.cancelFullScreen) {
document.cancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
this.fullscreen = false;
fullscreenIcon.className = "icon-fullscreen";
};
var toggleFull = function(event) {
event.preventDefault();
if (!this.fullscreen) {
this.startFullscreen();
} else {
this.stopFullscreen();
}
return false;
}.bind(this);
var progress = function(event) {
var i=this.video.buffered.length-1;
if (i<0) return false;
seekLoaded.style.width = Math.round((this.video.buffered.end(i)/this.video.duration)*(seekBg.offsetWidth-2))+"px";
}.bind(this);
var init = function() {
totalTime.innerHTML = formatTime(this.video.duration);
if (this.autoPlay) {
this.play();
}
playBtn.addEventListener("click", togglePlay, false);
seekBg.addEventListener("mousedown", startSeek, false);
seekFill.addEventListener("mousedown", startSeek, false);
seekDrag.addEventListener("mousedown", startSeek, false);
seekLoaded.addEventListener("mousedown", startSeek, false);
muteBtn.addEventListener("mousedown", startDragVolume, false);
muteBtn.addEventListener("click", changeVolumeSlider, false);
fullscreenBtn.addEventListener("click", toggleFull, false);
this.video.addEventListener("timeupdate", updateTime, false);
this.video.addEventListener("ended", this.resetSong, false);
this.video.addEventListener("volumechange", updateVolume, false);
}.bind(this);
this.video.addEventListener("progress", progress, false);
this.video.addEventListener("canplay", init, false);
if (this.loop) {
this.turnOnLoop();
} else {
this.turnOffLoop();
}
}
var a = new VideoPlayer(false, false);
/*
HOW TO USE
----------------------
Create a new AudioPlayer with the following params:
new AudioPlayer(autoplay:Boolean, loop:Boolean, visualizerFunction:Function);
The visualizerFunction takes two parameters:
function (soundData:Uint8Array, stage:CanvasRenderingContext2D) {}
The soundData array has the volumes for each frequency of the spectrum.
The stage context is a reference to the visualizer canvas's 2d context, ready to be drawn onto.
When making a visualizer, you can access the following properties of the AudioPlayer variable you made:
- width:Number
- height:Number
- playing:Boolean
*/
Also see: Tab Triggers