extensions/amp-story/1.0/amp-story.js
/**
   * Shows the audio icon if the story has any media elements containing audio,
   * or background audio at the story or page level.
   * @private
   */
Shows the audio icon if the story has any media elements containing audio,
or background audio at the story or page level.
@private
Shows the audio icon if the story has any media elements containing audio or background audio at the story or page level . @private
updateAudioIcon_() {
    const containsMediaElementWithAudio = !!this.element.querySelector(
        'amp-audio, amp-video:not([noaudio]), [background-audio]');
    const storyHasBackgroundAudio =
        this.element.hasAttribute('background-audio');
    this.storeService_.dispatch(Action.TOGGLE_STORY_HAS_AUDIO,
        containsMediaElementWithAudio || storyHasBackgroundAudio);
    this.storeService_.dispatch(
        Action.TOGGLE_STORY_HAS_BACKGROUND_AUDIO, storyHasBackgroundAudio);
  }
updateAudioIcon_ ( ) { const containsMediaElementWithAudio = ! ! this . element . querySelector ( 'amp-audio, amp-video:not([noaudio]), [background-audio]' ) ; const storyHasBackgroundAudio = this . element . hasAttribute ( 'background-audio' ) ; this . storeService_ . dispatch ( Action . TOGGLE_STORY_HAS_AUDIO , containsMediaElementWithAudio || storyHasBackgroundAudio ) ; this . storeService_ . dispatch ( Action . TOGGLE_STORY_HAS_BACKGROUND_AUDIO , storyHasBackgroundAudio ) ; }
Shows the audio icon if the story has any media elements containing audio,
 or background audio at the story or page level.
Shows the audio icon if the story has any media elements containing audio or background audio at the story or page level .