Skip to content

Commit

Permalink
Fixed video layer bug #197
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Apr 3, 2015
1 parent 2b7855d commit c518763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framer/VideoLayer.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
class exports.VideoLayer extends Layer class exports.VideoLayer extends Layer


constructor: (options={}) -> constructor: (options={}) ->

super options


# We need the player to exist before we add the options
@player = document.createElement("video") @player = document.createElement("video")
@player.setAttribute("webkit-playsinline", "true") @player.setAttribute("webkit-playsinline", "true")
@player.style.width = "100%" @player.style.width = "100%"
@player.style.height = "100%" @player.style.height = "100%"


super options


# Make it work with .on and .off # Make it work with .on and .off
# https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events # https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
Expand Down

0 comments on commit c518763

Please sign in to comment.