Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initialize the agent with a channel type. Note: This function should only be called once.
The window
This method is just like init(), except the audio channel agent keeps a weak reference to the callback object.
In order for this to work, |callback| must implement nsISupportsWeakReference.
Notify agent that we already start producing audible data.
Note : sometime audio might become silent during playing, this method is used to notify the actually audible state to other services which want to know about that, ex. tab sound indicator.
Notify the agent we no longer want to play.
Note : even if notifyStartedPlaying() returned false, the agent would still be registered with the audio channel service and receive callbacks for status changes. So notifyStoppedPlaying must still eventually be called to unregister the agent with the channel service.
Generated using TypeDoc
This interface provides an agent for gecko components to participate in the audio channel service. Gecko components are responsible for
The agent will invoke a callback to notify Gecko components of