mirror of
https://github.com/videojs/video.js.git
synced 2025-03-17 21:18:27 +02:00
Use accessors to transfer the poster attribute
When transferring the poster attribute from the container to the tech in mediafaker, use the accessor methods instead of directly referencing the private properties.
This commit is contained in:
parent
99a973e529
commit
6f5e49fc16
@ -22,9 +22,9 @@ vjs.MediaFaker.prototype.createEl = function(){
|
||||
var el = goog.base(this, 'createEl', 'div', {
|
||||
className: 'vjs-tech'
|
||||
});
|
||||
if (this.player_.poster_) {
|
||||
if (this.player().poster()) {
|
||||
// transfer the poster image to mimic HTML
|
||||
el.poster = this.player_.poster_;
|
||||
el.poster = this.player().poster();
|
||||
}
|
||||
|
||||
vjs.insertFirst(el, this.player_.el());
|
||||
|
Loading…
x
Reference in New Issue
Block a user