Method Summary
|
getAudioOutputRestrictions
(
|
Returns the current audio output restrictions for a specific session. |
|
getVideoOutputRestrictions
(
|
Returns the current video output restrictions for a specific session. |
Inherited Methods
|
addEventListener
(
|
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners. |
|
removeEventListener
(
|
This method removes an event listener for a specific event. |
Type Definitions
|
Data type used for identifying audio output type. |
|
|
Data type used for identifying restrictions on audio output. This type should be used as a bitmask as defined below. |
|
|
Data type used for identifying video output type. |
|
|
Data type used for identifying restrictions on video output. This type should be used as a bitmask as defined below. |
|
Methods
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to subscribe to.
listenerToiEventListener The JavaScript function that will receive events.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice.
Returns the current audio output restrictions for a specific session.
Parameters:
-
Name Type Description sessionIdToiMediaSession.ToiSessionId The media session for which the restrictions are requested.
Throws:
-
ToiInvalidArgumentException The media session identifier is invalid.
Returns:
-
Type: Array.<ToiDrmService.ToiAudioOutputRestriction>
The sequence of audio output restrictions.
Returns the current video output restrictions for a specific session.
Parameters:
-
Name Type Description sessionIdToiMediaSession.ToiSessionId The media session for which the restrictions are requested.
Throws:
-
ToiInvalidArgumentException The media session identifier is invalid.
Returns:
-
Type: Array.<ToiDrmService.ToiVideoOutputRestriction>
The sequence of video output restrictions.
This method removes an event listener for a specific event.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to remove the listener from.
listenerToiEventListener The JavaScript function that was previously added as an event listener.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener has not previously been added.
Members
This is an Event identifier for ToiDrmAudioOutputRestrictionsChangedEvent.
Invoked when the audio output restrictions for a session have changed.
This is an Event identifier for ToiDrmVideoOutputRestrictionsChangedEvent.
Invoked when the video output restrictions for a session have changed.
Analog audio output.
HDMI audio output.
SPDIF audio output.
No compressed audio.
No uncompressed or analog audio.
Analog video output.
HDMI video output.
Mute video.
Audio output restriction data structure.
Struct fields
| Name | Description |
|---|---|
| output | Audio output. Type: ToiDrmService.ToiAudioOutputType |
| restrictionMask | Audio restriction mask. ToiDrmService.ToiAudioRestriction defines the allowed values. Type: number |
Video output restriction data structure.
Struct fields
| Name | Description |
|---|---|
| output | Video output. Type: ToiDrmService.ToiVideoOutputType |
| restrictionMask | Video restriction mask. ToiDrmService.ToiVideoRestriction defines the allowed values. Type: number |