Permalink
Browse files

Added a "native poster" option to preserve the <video> poster attribute

  • Loading branch information...
1 parent fe84d59 commit cf2f96595d91ea69a7e989c8d899c50e12ca6323 @jhurliman committed Aug 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/player.js
View
@@ -18,7 +18,8 @@ _V_.Player = _V_.Component.extend({
tag.removeAttribute("controls");
// Poster will be handled by a manual <img>
- tag.removeAttribute("poster");
+ if (!options.nativeposter)
+ tag.removeAttribute("poster");
// Make player findable on elements
tag.player = el.player = this;

0 comments on commit cf2f965

Please sign in to comment.