WebAPI/AudioChannels: Difference between revisions

Line 82: Line 82:
   // visibility and normal channels...
   // visibility and normal channels...
   attribute boolean treatNormalAsContent;
   attribute boolean treatNormalAsContent;
  // When called, if this app is currently attempting to play audio on the "content"
  // channel, but is non-visible and the "content" channel is muted for this app, calling
  // this function will make the system pick this app or tab as the one to provide content audio.
  // If this function is called and there is another visible app or tab which uses the "content"
  // channel, then this function is a no-op.
  void startBackgroundContentAudio();
  }
  }


In addition we want to emit events when activeAudioChannels and audioActive attributes change.
In addition we want to emit events when activeAudioChannels or soundingAudioChannels attributes change.


All of these changes are meant to be built on top of the existing AudioChannelService. Doing that we keep the logic in gecko, but we allow custom settings:
All of these changes are meant to be built on top of the existing AudioChannelService. Doing that we keep the logic in gecko, but we allow custom settings:
Confirmed users
716

edits