WebAPI/AudioChannels: Difference between revisions

Line 38: Line 38:
   readonly attribute boolean headphones;
   readonly attribute boolean headphones;
   attribute EventHandler onheadphoneschange; // Always fired before audio start playing through the new channel
   attribute EventHandler onheadphoneschange; // Always fired before audio start playing through the new channel
  attribute boolean telephonySpeaker; // '''Not in V1'''
  }
  }


Line 43: Line 45:


  partial interface HTMLMediaElement {
  partial interface HTMLMediaElement {
  // We might not need this headphones section for v1.
   attribute DOMString mozchannel; // Or are we using some other name?
   attribute DOMString mozchannel; // Or are we using some other name?
 
   readonly attribute boolean mozchannelpaused; // Returns true if this element is currently paused due to the channel being paused.
   readonly attribute boolean mozchannelpaused; // Returns true if this element is currently paused due to the channel being paused.
   // Should these events only fire if the element is currently played?
   // Should these events only fire if the element is currently played?
Confirmed users
716

edits