Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+2
−2
framer/VideoLayer.coffee
|
@@ -3,14 +3,14 @@ |
|
|
class exports.VideoLayer extends Layer |
|
|
|
|
|
constructor: (options={}) -> |
|
|
|
|
|
super options |
|
|
|
|
|
# We need the player to exist before we add the options |
|
|
@player = document.createElement("video") |
|
|
@player.setAttribute("webkit-playsinline", "true") |
|
|
@player.style.width = "100%" |
|
|
@player.style.height = "100%" |
|
|
|
|
|
super options |
|
|
|
|
|
# Make it work with .on and .off |
|
|
# https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events |
|
|