WebAPI/AudioChannels: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 40: Line 40:
   
   
   attribute boolean telephonySpeaker; // '''Not in V1''' Makes the "telephony" channel go through the speaker.
   attribute boolean telephonySpeaker; // '''Not in V1''' Makes the "telephony" channel go through the speaker.
  readonly attribute DOMString[] occupiedChannels;
  void setOccupyChannel(DOMString channel, boolean occupy);
   
   
   attribute DOMString volumeControlChannel; // The channel to adjust the volume for when volume keys are pressed
   attribute DOMString volumeControlChannel; // The channel to adjust the volume for when volume keys are pressed
Line 71: Line 68:
   // range: 0.0 to 1.0 - a custom volume
   // range: 0.0 to 1.0 - a custom volume
   attribute double audioVolume;
   attribute double audioVolume;
  // list of active audio channels
  readonly attribute DOMString[] activeAudioChannels;
   
   
   // list of active and non muted audio channels
   // list of active and non muted audio channels
   readonly attribute DOMString[] soundingAudioChannels;
   readonly attribute boolean hasSoundingChannels;
   
   
   // when this attribute is set to true, any normal channel will be 'converted'
   // when this attribute is set to true, any normal channel will be 'converted'
Line 84: Line 78:
   // 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();
  }
  }


Confirmed users
716

edits

Navigation menu