whole_func_string: 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');
      }
  }
func_code_string: 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');
      }
  }
func_documentation_string: Set playback state and trigger change (only on actual change)