Method Summary
|
getAudioOutputRestrictions
(
|
Returns the current audio output restrictions for a specific session. |
|
getCurrentOutputControl
(
|
Returns the current output control 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
|
APS (Analog Protection System) mode |
|
|
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. |
|
|
CGMS-A (Copy Generation Management System - Analog) Copy control mode |
|
|
Copy permissions. |
|
|
SCMS (Serial Copy Management System) mode |
|
|
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 output control for a specific session.
Parameters:
-
Name Type Description sessionIdToiMediaSession.ToiSessionId The media session for which the CCI is requested.
Throws:
-
ToiInvalidArgumentException The media session identifier is invalid.
Returns:
-
Type: ToiDrmService.ToiOutputControl
Structure with output control settings.
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 ToiDrmCciChangedEvent.
Invoked when the Copy Control Information (Cci) for a session has changed.
This is an Event identifier for ToiDrmVideoOutputRestrictionsChangedEvent.
Invoked when the video output restrictions for a session have changed.
PSP (pseudo-sync pulse) operation on.
PSP on, 2-line color striping on.
PSP on, 4-line color striping on.
APS signaling either not supported by the platform or allows copying
HDMI audio output.
SPDIF audio output.
No compressed audio.
No uncompressed audio.
CGMS-A no copying allowed
CGMS-A no more copies
CGMS-A no restriction
CGMS-A one more copy
The content can be copied at most 10 times.
The content can be copy freely.
The content cannot be copied. For live scenarios this means DVR is not allowed but timeshift is allowed.
The content can not be copied anymore.
The content can be copied only once.
SCMS copy freely
SCMS no copying allowed
SCMS no more copy
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 |
Output control data structure.
Struct fields
| Name | Description |
|---|---|
| assetRetentionLimit | Describes how long content can be stored as DVR in seconds. ToiDrmService.NO_RESTRICTION indicates the content can be stored forever. Type: number |
| cci | Current CCI (copy control information value). Type: ToiDrmService.ToiCopyPermission |
| cgmsaApsMode | CGMS-A APS mode. Type: ToiDrmService.ToiApsMode |
| cgmsaMode | CGMS-A mode Type: ToiDrmService.ToiCgmsaMode |
| hasAnalogSunset | Analog sunset enabled. Type: boolean |
| hasConstrainImage | Image constrain enabled. Type: boolean |
| hasDigitalOnly | Digital content only. Type: boolean |
| hasEpn | EPN (Encryption plus non-assertion) state. Type: boolean |
| macrovisionMode | Macrovision APS mode. Type: ToiDrmService.ToiApsMode |
| recordingAllowed | Indicates whether the stream can be recorded or not. Type: boolean |
| recordingForMobileAllowed | Indicates whether the stream can be recorded in formats for mobile devices. Type: boolean |
| scmsMode | SCMS mode Type: ToiDrmService.ToiScmsMode |
| timeshiftAllowed | Indicates whether timeshift operations can be enabled on the stream. Type: boolean |
| timeshiftRetentionLimit | The allowed maximum size of the timeshift buffer in seconds. ToiDrmService.NO_RESTRICTION indicates no limit on timeshift buffer. The value has no effect if timeshift is not allowed. Type: number |
| trickPlayControl | Trick play control. Type: ToiDrmService.ToiTrickPlayControl |
Trick play control structure. Restrictions apply for both PVR and timeshift.
Struct fields
| Name | Description |
|---|---|
| fastForwardPaceLimit | Fast forward pace limit, given as a multiplier of normal playback times 1000. 1000 indicates fast forward is forbidden, only normal speed(playing) is allowed. ToiDrmService.NO_RESTRICTION indicates no limit for fast forward pace. Any values below 1000 will be ignored and take the same effect as ToiDrmService.NO_RESTRICTION. Type: number |
| jumpingAllowed | Indicates whether the trick play can be jumping or not. Type: boolean |
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 |