IToiMediaService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ITOIMEDIASERVICE_IDL
00016 #define ITOIMEDIASERVICE_IDL
00017
00018 #include "TToiOperationNotSupportedException.idl"
00019 #include "TToiNoDataException.idl"
00020 #include "TToiNotEnoughResourcesException.idl"
00021 #include "TToiInvalidArgumentException.idl"
00022 #include "TToiSessionViolationException.idl"
00023 #include "IToiMediaSession.idl"
00024 #include "TToiPermissionDeniedException.idl"
00025 #include "TToiUnhandledValueException.idl"
00026 #include "IToiApplicationService.idl"
00027
00028 #include "IToiApplicationService.idl"
00044
00045
00046
00047 interface IToiMediaService {
00048
00052 const string REASON_UNKNOWN = "Unknown";
00053
00057 const string REASON_COMMAND_OPEN = "CommandOpen";
00058
00062 const string REASON_COMMAND_CLOSE = "CommandClose";
00063
00067 const string REASON_COMMAND_PAUSE = "CommandPause";
00068
00072 const string REASON_COMMAND_PLAY = "CommandPlay";
00073
00078 const string REASON_COMMAND_FASTFORWARD = "CommandFastForward";
00079
00083 const string REASON_COMMAND_REWIND = "CommandRewind";
00084
00088 const string REASON_COMMAND_PLAYFROMPOSITION = "CommandPlayFromPosition";
00089
00093 const string REASON_COMMAND_RECORD = "CommandRecord";
00094
00098 const string REASON_COMMAND_CONSUME = "CommandConsume";
00099
00103 const string REASON_POSITION_END = "PositionEnd";
00104
00108 const string REASON_POSITION_START = "PositionStart";
00109
00113 const string REASON_TIMESHIFT_BUFFER_OPEN = "TimeshiftBufferOpen";
00114
00118 const string REASON_TIMESHIFT_BUFFER_FULL = "TimeshiftBufferFull";
00119
00123 const string REASON_TIMESHIFT_BUFFER_DISCARDED = "TimeshiftBufferDiscarded";
00124
00128 const string REASON_ERROR_COMMAND_NOT_SUPPORTED = "ErrorCommandNotSupported";
00129
00133 const string REASON_ERROR_STREAM_CLIENT = "ErrorStreamClient";
00134
00138 const string REASON_ERROR_CONNECTION_FAILED = "ErrorConnectionFailed";
00139
00143 const string REASON_ERROR_INVALID_PRECONDITION = "ErrorInvalidPrecondition";
00144
00148 const string REASON_ERROR_PERMISSION_DENIED = "ErrorPermissionDenied";
00149
00153 const string REASON_ERROR_INVALID_DISKASSET = "ErrorInvalidDiskasset";
00154
00158 const string REASON_ERROR_UNSUPPORTED_DISKASSET_VERSION = "ErrorUnsupportedDiskAssetVersion";
00159
00163 const string REASON_ERROR_DISK_FULL = "ErrorStorageFull";
00164
00168 const string REASON_ERROR_LOWLEVEL_IO_FAILURE = "ErrorLowlevelIOFailure";
00169
00173 const string REASON_ERROR_POSITION_INVALID = "ErrorPositionInvalid";
00174
00178 const string REASON_ERROR_DISK_OVERHEATED = "ErrorStorageOverheated";
00179
00183 const string REASON_ERROR_HOST_UNREACHABLE = "ErrorHostUnreachable";
00184
00188 const string REASON_ERROR_UNEXISTING_RESOURCE = "ErrorUnexistingResource";
00189
00193 const string REASON_ERROR_NO_EXTERNAL_INPUT_SIGNAL = "ErrorNoExternalInputSignal";
00194
00196 struct TToiSessionInfo {
00198 IToiMediaSession::TToiSessionId Id;
00203 IToiMediaSession::TToiSessionType Type;
00205 string Url;
00207 IToiMediaSession::TToiState State;
00208 };
00209
00211 typedef sequence < TToiSessionInfo > TToiSessionSequence;
00212
00244
00245
00246
00247
00248 void CreatePlayerInstance(in IToiApplicationService::TToiApplicationId applicationId,
00249 out string playerAddress)
00250 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiPermissionDeniedException);
00251
00283
00284
00285
00286
00287 void CreatePipPlayerInstance(in IToiApplicationService::TToiApplicationId applicationId,
00288 out string pipAddress)
00289 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException, TToiPermissionDeniedException);
00290
00321
00322
00323
00324
00325 void CreateRecorderInstance(in IToiApplicationService::TToiApplicationId applicationId,
00326 out string recorderAddress)
00327 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00328
00360
00361
00362
00363 void CreateConsumerInstance(in IToiApplicationService::TToiApplicationId applicationId,
00364 out string consumerAddress)
00365 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
00366
00375
00376
00377
00378 void EnumerateSessions(in IToiMediaSession::TToiSessionType type,
00379 out TToiSessionSequence sessions);
00380
00415
00416
00417
00418 void OpenSession(in IToiApplicationService::TToiApplicationId applicationId,
00419 in IToiMediaSession::TToiSessionId sessionId,
00420 out string sessionAddress)
00421 raises (TToiInvalidArgumentException);
00422
00423
00424
00437 void RegisterObserver(in IToiApplicationService::TToiApplicationId applicationId,
00438 in string address)
00439 raises (TToiInvalidArgumentException);
00440
00449 void ReleaseObserver(in string address)
00450 raises (TToiInvalidArgumentException);
00451
00452 };
00453
00454 #endif