extensions/amp-story/1.0/amp-story.js
/**
   * Pauses the whole story on viewer visibilityState updates, or tab visibility
   * updates.
   * @private
   */
Pauses the whole story on viewer visibilityState updates, or tab visibility
updates.
@private
Pauses the whole story on viewer visibilityState updates or tab visibility updates . @private
pause_() {
    this.setPausedStateToRestore_();
    if (!this.storeService_.get(StateProperty.MUTED_STATE)) {
      this.pauseBackgroundAudio_();
    }
    if (
      this.getAmpDoc().getVisibilityState() === VisibilityState_Enum.INACTIVE
    ) {
      this.activePage_.setState(PageState.NOT_ACTIVE);
      this.activePage_.element.setAttribute('active', '');
    }
  }
pause_ ( ) { this . setPausedStateToRestore_ ( ) ; if ( ! this . storeService_ . get ( StateProperty . MUTED_STATE ) ) { this . pauseBackgroundAudio_ ( ) ; } if ( this . getAmpDoc ( ) . getVisibilityState ( ) === VisibilityState_Enum . INACTIVE ) { this . activePage_ . setState ( PageState . NOT_ACTIVE ) ; this . activePage_ . element . setAttribute ( 'active' , '' ) ; } }
Pauses the whole story on viewer visibilityState updates, or tab visibility
 updates.
Pauses the whole story on viewer visibilityState updates or tab visibility updates .
// If viewer has navigated to the next document, reset the active page.