function assurePlaybackState(play) {
    if (play && !this.embed.hasPlayed) {
        this.embed.hasPlayed = true;
    }
    if (this.media.paused === play) {
        this.media.paused = !play;
        triggerEvent.call(this, this.media, play ? 'play' : 'pause');
    }
}
function assurePlaybackState(play) {
    if (play && !this.embed.hasPlayed) {
        this.embed.hasPlayed = true;
    }
    if (this.media.paused === play) {
        this.media.paused = !play;
        triggerEvent.call(this, this.media, play ? 'play' : 'pause');
    }
}
function assurePlaybackState ( play ) { if ( play && ! this . embed . hasPlayed ) { this . embed . hasPlayed = true ; } if ( this . media . paused === play ) { this . media . paused = ! play ; triggerEvent . call ( this , this . media , play ? 'play' : 'pause' ) ; } }
Set playback state and trigger change (only on actual change)
Set playback state and trigger change ( only on actual change )