Skip to content
Permalink
Browse files

Fix a Youtube player JS error that getDuration is not a function

Fixes #4164
  • Loading branch information...
LaurentGoderre committed Dec 21, 2013
1 parent 7919a0f commit b4b1b8df3dc782fbef1835976ae860278aceb13e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/multimedia/multimedia.js
@@ -694,7 +694,7 @@ $document.on( renderUIEvent, selector, function( event, type ) {
$this.data( "properties", data );

// Trigger the duration change for cases where the event was called before the event binding
if ( !isNaN( this.player( "getDuration" ) ) ) {
if ( !isNaN( this.player( "getDuration" ) ) && type !== "youtube" ) {
data.player.trigger( "durationchange" );
}

0 comments on commit b4b1b8d

Please sign in to comment.
You can’t perform that action at this time.