ToiMediaService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIMEDIASERVICE_IDL
00016 #define TOIMEDIASERVICE_IDL
00017
00018 #include "TToiOperationNotSupportedException.idl"
00019 #include "TToiNoDataException.idl"
00020 #include "TToiNotEnoughResourcesException.idl"
00021 #include "TToiInvalidArgumentException.idl"
00022 #include "TToiSessionViolationException.idl"
00023 #include "ToiMediaSession.idl"
00024 #include "TToiPermissionDeniedException.idl"
00025 #include "TToiUnhandledValueException.idl"
00026 #include "ToiApplicationService.idl"
00027 #include "ToiEventTarget.idl"
00028
00029
00030 interface ToiMediaServiceSessionInfo;
00031 interface ToiMediaPlayer;
00032 interface ToiMediaPlayer;
00033 interface ToiMediaRecorder;
00034
00050
00051
00054 interface ToiMediaService : ToiEventTarget {
00055
00058
00062 const long ON_SESSION_STATE_CHANGED = 1600;
00063
00067 const long ON_SESSION_STREAM_INFO_CHANGED = 1601;
00068
00070
00074 const string REASON_UNKNOWN = "Unknown";
00075
00079 const string REASON_COMMAND_OPEN = "CommandOpen";
00080
00084 const string REASON_COMMAND_CLOSE = "CommandClose";
00085
00089 const string REASON_COMMAND_PAUSE = "CommandPause";
00090
00094 const string REASON_COMMAND_PLAY = "CommandPlay";
00095
00100 const string REASON_COMMAND_FASTFORWARD = "CommandFastForward";
00101
00105 const string REASON_COMMAND_REWIND = "CommandRewind";
00106
00110 const string REASON_COMMAND_PLAYFROMPOSITION = "CommandPlayFromPosition";
00111
00115 const string REASON_COMMAND_RECORD = "CommandRecord";
00116
00120 const string REASON_COMMAND_CONSUME = "CommandConsume";
00121
00125 const string REASON_POSITION_END = "PositionEnd";
00126
00130 const string REASON_POSITION_START = "PositionStart";
00131
00135 const string REASON_TIMESHIFT_BUFFER_OPEN = "TimeshiftBufferOpen";
00136
00140 const string REASON_TIMESHIFT_BUFFER_FULL = "TimeshiftBufferFull";
00141
00145 const string REASON_TIMESHIFT_BUFFER_DISCARDED = "TimeshiftBufferDiscarded";
00146
00150 const string REASON_ERROR_COMMAND_NOT_SUPPORTED = "ErrorCommandNotSupported";
00151
00155 const string REASON_ERROR_STREAM_CLIENT = "ErrorStreamClient";
00156
00160 const string REASON_ERROR_CONNECTION_FAILED = "ErrorConnectionFailed";
00161
00165 const string REASON_ERROR_INVALID_PRECONDITION = "ErrorInvalidPrecondition";
00166
00170 const string REASON_ERROR_PERMISSION_DENIED = "ErrorPermissionDenied";
00171
00175 const string REASON_ERROR_INVALID_DISKASSET = "ErrorInvalidDiskasset";
00176
00180 const string REASON_ERROR_UNSUPPORTED_DISKASSET_VERSION = "ErrorUnsupportedDiskAssetVersion";
00181
00185 const string REASON_ERROR_DISK_FULL = "ErrorStorageFull";
00186
00190 const string REASON_ERROR_LOWLEVEL_IO_FAILURE = "ErrorLowlevelIOFailure";
00191
00195 const string REASON_ERROR_POSITION_INVALID = "ErrorPositionInvalid";
00196
00200 const string REASON_ERROR_DISK_OVERHEATED = "ErrorStorageOverheated";
00201
00205 const string REASON_ERROR_HOST_UNREACHABLE = "ErrorHostUnreachable";
00206
00210 const string REASON_ERROR_UNEXISTING_RESOURCE = "ErrorUnexistingResource";
00211
00215 const string REASON_ERROR_NO_EXTERNAL_INPUT_SIGNAL = "ErrorNoExternalInputSignal";
00216
00218 typedef sequence < ToiMediaServiceSessionInfo > TToiSessionSequence;
00219
00248
00249
00250
00251
00252
00253 ToiMediaPlayer createPlayerInstance()
00254 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiPermissionDeniedException);
00255
00284
00285
00286
00287
00288
00289 ToiMediaPlayer createPipPlayerInstance()
00290 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException, TToiPermissionDeniedException);
00291
00319
00320
00321
00322
00323
00324 ToiMediaRecorder createRecorderInstance()
00325 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00326
00327 };
00328
00329 #endif