equal
deleted
inserted
replaced
78 this.mejs.load(); |
78 this.mejs.load(); |
79 this.mejs.play(); |
79 this.mejs.play(); |
80 }, |
80 }, |
81 |
81 |
82 renderCurrent : function () { |
82 renderCurrent : function () { |
83 var dimensions, defaultImage = 'wp-includes/images/media/video.png'; |
83 var dimensions, defaultImage = 'wp-includes/images/media/video.svg'; |
84 if ( 'video' === this.data.type ) { |
84 if ( 'video' === this.data.type ) { |
85 if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) { |
85 if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) { |
86 this.playerNode.attr( 'poster', this.current.get( 'image' ).src ); |
86 this.playerNode.attr( 'poster', this.current.get( 'image' ).src ); |
87 } |
87 } |
88 dimensions = this.current.get( 'dimensions' ).resized; |
88 dimensions = this.current.get( 'dimensions' ); |
89 this.playerNode.attr( dimensions ); |
89 if ( dimensions && dimensions.resized ) { |
|
90 this.playerNode.attr( dimensions.resized ); |
|
91 } |
90 } else { |
92 } else { |
91 if ( ! this.data.images ) { |
93 if ( ! this.data.images ) { |
92 this.current.set( 'image', false ); |
94 this.current.set( 'image', false ); |
93 } |
95 } |
94 this.currentNode.html( this.currentTemplate( this.current.toJSON() ) ); |
96 this.currentNode.html( this.currentTemplate( this.current.toJSON() ) ); |