summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/mx/primitives/mx.video.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-24 11:56:07 -0500
committerJules Laplace <jules@okfoc.us>2014-11-24 12:18:23 -0500
commitd941ec46ee1d3842387837377140e8d1fc854b17 (patch)
tree232c4123c9b72fbaf2bb3fb69f4ffba4ca3a9b5a /public/assets/javascripts/mx/primitives/mx.video.js
parent377fa673972f32e558faabe74903a237ee1b5c65 (diff)
dividing everything by devicePixelRatio
Diffstat (limited to 'public/assets/javascripts/mx/primitives/mx.video.js')
-rw-r--r--public/assets/javascripts/mx/primitives/mx.video.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/javascripts/mx/primitives/mx.video.js b/public/assets/javascripts/mx/primitives/mx.video.js
index 333e1d2..c281f02 100644
--- a/public/assets/javascripts/mx/primitives/mx.video.js
+++ b/public/assets/javascripts/mx/primitives/mx.video.js
@@ -31,8 +31,8 @@ MX.Video = MX.Object3D.extend({
this.player.addEventListener("loadedmetadata", this.ready.bind(this))
this.player.addEventListener("error", this.error.bind(this))
this.player.addEventListener("ended", this.finished.bind(this))
- this.player.width = this.width
- this.player.height = this.height
+ this.player.width = "100%"
+ this.player.height = "100%"
this.player.src = this.media.url
this.player.load()