-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore video tag attributes on tech change #1369
Changes from 1 commit
4af8af0
c4aa9fa
2537c98
0e78c9e
aeefefe
dae47c6
998183f
a443d21
72bbabd
ca8313b
b54f5e2
1c5f928
0604746
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,7 @@ vjs.Html5.prototype.createEl = function(){ | |
var attr = attrs[i]; | ||
var attributes = {}; | ||
if (typeof player.options_[attr] !== 'undefined') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're already checking for undefined in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, this is for an overwrite of the tag initial values
we don't want to remove the autoplay if there is no autoplay defined on the player options I think. Please confirm. |
||
attributes[attr]=player.options_[attr]; | ||
attributes[attr] = player.options_[attr]; | ||
} | ||
vjs.setElementAttributes(el, attributes); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have
attrs
,attr
, andattributes
all in the same place now. We should see if that could be simplified or at least get more specific with the var naming.