import "IToiDrmService.idl";
Public Member Functions | |
void | GetCurrentOutputControl (in long mediaSessionId, out TToiOutputControl outputControl) raises (TToiInvalidArgumentException) |
void | QueryCopyPermission (in string assetUrl, out TToiCopyPermission copyPermission, out long remainingCopies) raises (TToiInvalidArgumentException) |
void | RegisterObserver (in IToiApplicationService::TToiApplicationId applicationId, in string address) raises (TToiInvalidArgumentException) |
void | ReleaseObserver (in string address) raises (TToiInvalidArgumentException) |
Classes | |
struct | TToiOutputControl |
Public Types | |
enum | TToiCopyPermission { COPY_FREE, COPY_NO_MORE, COPY_10, COPY_NEVER } |
void IToiDrmService::GetCurrentOutputControl | ( | in long | mediaSessionId, | |
out TToiOutputControl | outputControl | |||
) | raises (TToiInvalidArgumentException) |
Returns the current output control for a specific session.
mediaSessionId | The media session for which the CCI is requested. |
outputControl | The CCI. |
TToiInvalidArgumentException | The media session identifier is invalid. |
void IToiDrmService::QueryCopyPermission | ( | in string | assetUrl, | |
out TToiCopyPermission | copyPermission, | |||
out long | remainingCopies | |||
) | raises (TToiInvalidArgumentException) |
Queries whether an asset can be copied.
assetUrl | The URL to the asset |
copyPermission | Indicates the permission. | |
remainingCopies | If copyPermission is COPY_10, this argument indicates the number of remaining copies. |
TToiInvalidArgumentException | The asset identifier is invalid. |
void IToiDrmService::RegisterObserver | ( | in IToiApplicationService::TToiApplicationId | applicationId, | |
in string | address | |||
) | raises (TToiInvalidArgumentException) |
Register an observer of type IToiDrmObserver. The observer will receive events sent by this IToiDrmService instance.
applicationId | The identifier of the observing application. | |
address | The address where the IToiDrmService can find an IToiDrmObserver interface. |
TToiInvalidArgumentException | Raised if the specified address is invalid or if the application has already registered itself as an observer with the same address. |
void IToiDrmService::ReleaseObserver | ( | in string | address | ) | raises (TToiInvalidArgumentException) |
Release an observer previously registered with RegisterObserver.
address | The address where the IToiDrmService can find the registered IToiDrmObserver interface. |
TToiInvalidArgumentException | Raised if the specified address is invalid. |