ToiMediaSession.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIMEDIASESSION_IDL
00016 #define TOIMEDIASESSION_IDL
00017
00018 #include "TToiOperationNotSupportedException.idl"
00019 #include "TToiNoDataException.idl"
00020 #include "TToiNotEnoughResourcesException.idl"
00021 #include "TToiInvalidArgumentException.idl"
00022 #include "TToiSessionViolationException.idl"
00023 #include "ToiEventTarget.idl"
00024
00025
00026 interface ToiMediaSessionStreamInfo;
00027
00044
00045
00046
00047 interface ToiMediaSession : ToiEventTarget {
00048
00051
00055 const long ON_PARAMETER_CHANGED = 1900;
00056
00058
00061
00062 typedef long TToiState;
00065
00076
00077 const TToiState STATE_CONNECTING = 0;
00078
00086
00087 const TToiState STATE_RUNNING = 1;
00088
00094
00095 const TToiState STATE_FAILED = 2;
00096
00103
00104 const TToiState STATE_CLOSED = 3;
00105
00107
00109 typedef sequence < octet > TToiDataRelayData;
00110
00112 typedef long TToiStreamId;
00113
00116 typedef sequence < TToiStreamId > TToiStreamIdSequence;
00117
00120 typedef sequence < octet > TToiCipherData;
00121
00123 typedef long TToiSessionId;
00124
00127 typedef long TToiSessionType;
00128
00133 const TToiSessionType TYPE_PLAYER = 1;
00134
00139 const TToiSessionType TYPE_RECORDER = 2;
00140
00145 const TToiSessionType TYPE_CONSUMER = 4;
00146
00151 const TToiSessionType TYPE_DISTRIBUTOR = 8;
00152
00155
00156 typedef long TToiCipher;
00159
00165
00166 const TToiCipher CIPHER_NONE = 0;
00167
00173
00174 const TToiCipher CIPHER_DVB_CSA = 1;
00175
00181
00182 const TToiCipher CIPHER_ARIB_MULTI2 = 2;
00183
00189
00190 const TToiCipher CIPHER_AES_128 = 3;
00191
00197
00198 const TToiCipher CIPHER_TRIPLE_DES = 4;
00199
00201
00203
00204 typedef long TToiCipherBlockMode;
00207
00213
00214 const TToiCipherBlockMode CIPHER_BLOCK_MODE_NONE = 0;
00215
00221
00222 const TToiCipherBlockMode CIPHER_BLOCK_MODE_ECB = 1;
00223
00229
00230 const TToiCipherBlockMode CIPHER_BLOCK_MODE_CBC = 2;
00231
00237
00238 const TToiCipherBlockMode CIPHER_BLOCK_MODE_CFB = 3;
00239
00245
00246 const TToiCipherBlockMode CIPHER_BLOCK_MODE_OFB = 4;
00247
00253
00254 const TToiCipherBlockMode CIPHER_BLOCK_MODE_CTR = 5;
00255
00257
00259
00260 typedef long TToiCipherResidueMode;
00263
00269
00270 const TToiCipherResidueMode CIPHER_RESIDUE_MODE_NONE = 0;
00271
00277
00278 const TToiCipherResidueMode CIPHER_RESIDUE_MODE_FRONT = 1;
00279
00285
00286 const TToiCipherResidueMode CIPHER_RESIDUE_MODE_BACK = 2;
00287
00293
00294 const TToiCipherResidueMode CIPHER_RESIDUE_MODE_CTS = 3;
00295
00301
00302 const TToiCipherResidueMode CIPHER_RESIDUE_MODE_OFB = 4;
00303
00305
00311
00312 TToiSessionId getId();
00313
00326
00327 TToiSessionType getType()
00328 raises (TToiSessionViolationException);
00329
00340
00341 string getUrl()
00342 raises (TToiSessionViolationException);
00343
00354
00355 TToiState getState();
00356
00371
00372 ToiMediaSessionStreamInfo getStreamInfo()
00373 raises (TToiNoDataException, TToiSessionViolationException);
00374
00392
00393 string getAssetId()
00394 raises (TToiOperationNotSupportedException, TToiSessionViolationException);
00395
00412
00413 string getParameter(in string name)
00414 raises (TToiInvalidArgumentException, TToiSessionViolationException);
00415
00432 void setParameter(in string name,
00433 in string value)
00434 raises (TToiInvalidArgumentException, TToiSessionViolationException);
00435
00445
00446
00447
00448 void releaseInstance();
00449
00450 };
00451
00452 #endif