ToiMediaPlayerBase.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIMEDIAPLAYERBASE_IDL
00016 #define TOIMEDIAPLAYERBASE_IDL
00017
00018 #include "TToiSessionViolationException.idl"
00019 #include "TToiUnavailableException.idl"
00020 #include "TToiInvalidArgumentException.idl"
00021 #include "TToiNoDataException.idl"
00022 #include "TToiPermissionDeniedException.idl"
00023 #include "TToiOperationNotSupportedException.idl"
00024 #include "TToiInvalidPreconditionException.idl"
00025 #include "TToiNotEnoughResourcesException.idl"
00026 #include "ToiMediaSession.idl"
00027 #include "TToiUnhandledValueException.idl"
00028 #include "ToiApplicationService.idl"
00029 #include "ToiOperationManager.idl"
00030 #include "ToiAssetManagerService.idl"
00031 #include "ToiEventTarget.idl"
00032
00033
00034 interface ToiMediaPlayerBaseComponentEntry;
00035
00036 interface ToiMediaPlayerBaseError;
00037
00038 interface ToiMediaPlayerBaseTimeshiftInfo;
00039
00040 interface ToiMediaPlayerBaseAudioStreamInfo;
00041
00042 interface ToiMediaPlayerBaseVideoStreamInfo;
00043
00044 interface ToiMediaPlayerBaseSubtitleStreamInfo;
00045
00046 interface ToiMediaPlayerBaseStreamInfo;
00047
00048 interface ToiMediaPlayerBaseTeletextStreamInfo;
00049
00058
00059
00060
00061 interface ToiMediaPlayerBase : ToiEventTarget {
00062
00065
00069 const long ON_STATE_CHANGED = 1700;
00070
00074 const long ON_DATA_AVAILABLE = 1701;
00075
00079 const long ON_POSITION_CHANGED = 1702;
00080
00084 const long ON_STREAM_INFO_CHANGED = 1703;
00085
00089 const long ON_ACTIVE_COMPONENT_CHANGED = 1704;
00090
00094 const long ON_PARAMETER_CHANGED = 1705;
00095
00099 const long ON_TIMESHIFT_STATE_CHANGED = 1706;
00100
00104 const long ON_CAPABILITIES_CHANGED = 1707;
00105
00107
00112
00113 typedef long TToiComponentType;
00116
00122
00123 const TToiComponentType COMPONENT_AUDIO = 0;
00124
00130
00131 const TToiComponentType COMPONENT_VIDEO = 1;
00132
00138
00139 const TToiComponentType COMPONENT_SUBTITLE = 2;
00140
00147
00148 const TToiComponentType COMPONENT_SUBTITLE_CAPTION = 3;
00149
00158
00159 const TToiComponentType COMPONENT_SUBTITLE_SUPERIMPOSE = 4;
00160
00168
00169 const TToiComponentType COMPONENT_TELETEXT_VBI = 5;
00170
00172
00173 typedef sequence < ToiMediaPlayerBaseComponentEntry > TToiComponentSequence;
00174
00176 typedef sequence < long > TToiPaceSequence;
00177
00183
00184 typedef long TToiErrorSource;
00187
00194
00195 const TToiErrorSource SOURCE_UNKNOWN = 0;
00196
00204
00205 const TToiErrorSource SOURCE_INTERNAL = 1;
00206
00213
00214 const TToiErrorSource SOURCE_BITBAND = 2;
00215
00217
00219
00220 typedef long TToiState;
00223
00234
00235 const TToiState STATE_IDLE = 0;
00236
00252
00253 const TToiState STATE_CONNECTING = 1;
00254
00268
00269 const TToiState STATE_PAUSED = 2;
00270
00285
00286 const TToiState STATE_PLAYING = 3;
00287
00304
00305 const TToiState STATE_FASTFORWARDING = 4;
00306
00323
00324 const TToiState STATE_REWINDING = 5;
00325
00335
00336 const TToiState STATE_FAILED = 6;
00337
00339
00341
00342 typedef long TToiTimeshiftState;
00345
00355
00356 const TToiTimeshiftState TIMESHIFT_STATE_INACTIVE = 0;
00357
00366
00367 const TToiTimeshiftState TIMESHIFT_STATE_BUFFERING = 1;
00368
00377
00378 const TToiTimeshiftState TIMESHIFT_STATE_STOPPED = 2;
00379
00389
00390 const TToiTimeshiftState TIMESHIFT_STATE_BUFFERING_FAILED = 3;
00391
00393
00396
00397 typedef long TToiAudioAudienceType;
00400
00406
00407 const TToiAudioAudienceType AUDIO_AUDIENCE_TYPE_UNKNOWN = 0;
00408
00414
00415 const TToiAudioAudienceType AUDIO_AUDIENCE_TYPE_NORMAL = 1;
00416
00422
00423 const TToiAudioAudienceType AUDIO_AUDIENCE_TYPE_VISUALLY_IMPAIRED = 2;
00424
00430
00431 const TToiAudioAudienceType AUDIO_AUDIENCE_TYPE_HEARING_IMPAIRED = 3;
00432
00434
00437
00438 typedef long TToiAudioChannelFormat;
00441
00447
00448 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_UNKNOWN = 0;
00449
00455
00456 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_SINGLE_MONO = 1;
00457
00463
00464 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_DUAL_MONO = 2;
00465
00471
00472 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_STEREO = 3;
00473
00479
00480 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_3_FRONT_1_BACK = 4;
00481
00487
00488 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_3_FRONT_2_BACK = 5;
00489
00496
00497 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_3_FRONT_2_BACK_LFE = 6;
00498
00505
00506 const TToiAudioChannelFormat AUDIO_CHANNEL_FORMAT_3_FRONT_2_SIDE_2_BACK_LFE = 7;
00507
00509
00511
00512 typedef long TToiAudioChannelMode;
00515
00521
00522 const TToiAudioChannelMode AUDIO_CHANNEL_MODE_NORMAL = 0;
00523
00530
00531 const TToiAudioChannelMode AUDIO_CHANNEL_MODE_DUAL_MONO_LEFT_ONLY = 1;
00532
00539
00540 const TToiAudioChannelMode AUDIO_CHANNEL_MODE_DUAL_MONO_RIGHT_ONLY = 2;
00541
00549
00550 const TToiAudioChannelMode AUDIO_CHANNEL_MODE_DUAL_MONO_STEREO = 3;
00551
00558
00559 const TToiAudioChannelMode AUDIO_CHANNEL_MODE_DUAL_MONO_MIXED = 4;
00560
00562
00565
00566 typedef long TToiAspectRatio;
00569
00575
00576 const TToiAspectRatio ASPECT_RATIO_UNKNOWN = 0;
00577
00583
00584 const TToiAspectRatio ASPECT_RATIO_4_3 = 1;
00585
00591
00592 const TToiAspectRatio ASPECT_RATIO_16_9 = 2;
00593
00595
00598
00599 typedef long TToiActiveFormatDescriptor;
00602
00608
00609 const TToiActiveFormatDescriptor ACTIVE_FORMAT_UNKNOWN = 0;
00610
00616
00617 const TToiActiveFormatDescriptor ACTIVE_FORMAT_16_9_TOP = 1;
00618
00624
00625 const TToiActiveFormatDescriptor ACTIVE_FORMAT_14_9_TOP = 2;
00626
00632
00633 const TToiActiveFormatDescriptor ACTIVE_FORMAT_MORE_THAN_16_9_CENTRE = 3;
00634
00640
00641 const TToiActiveFormatDescriptor ACTIVE_FORMAT_SAME_AS_CODED = 4;
00642
00648
00649 const TToiActiveFormatDescriptor ACTIVE_FORMAT_4_3_CENTRE = 5;
00650
00656
00657 const TToiActiveFormatDescriptor ACTIVE_FORMAT_16_9_CENTRE = 6;
00658
00664
00665 const TToiActiveFormatDescriptor ACTIVE_FORMAT_14_9_CENTRE = 7;
00666
00673
00674 const TToiActiveFormatDescriptor ACTIVE_FORMAT_4_3_SHOOT_AND_PROTECT_14_9_CENTRE = 8;
00675
00682
00683 const TToiActiveFormatDescriptor ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_14_9_CENTRE = 9;
00684
00691
00692 const TToiActiveFormatDescriptor ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_4_3_CENTRE = 10;
00693
00695
00698
00699 typedef long TToiSubtitleType;
00702
00708
00709 const TToiSubtitleType SUBTITLE_UNKNOWN = 0;
00710
00716
00717 const TToiSubtitleType SUBTITLE_NORMAL = 1;
00718
00724
00725 const TToiSubtitleType SUBTITLE_HEARING_IMPAIRED = 2;
00726
00728
00731
00732 typedef long TToiSubtitleFormat;
00735
00741
00742 const TToiSubtitleFormat SUBTITLE_DVB = 0;
00743
00749
00750 const TToiSubtitleFormat SUBTITLE_ARIB = 1;
00751
00757
00758 const TToiSubtitleFormat SUBTITLE_TELETEXT = 2;
00759
00765
00766 const TToiSubtitleFormat SUBTITLE_DVD = 3;
00767
00775
00776 const TToiSubtitleFormat SUBTITLE_XSUB = 4;
00777
00779
00781
00782 typedef long TToiReceiveDmfMode;
00785
00791
00792 const TToiReceiveDmfMode RECEIVE_DMF_MODE_AUTO = 0;
00793
00799
00800 const TToiReceiveDmfMode RECEIVE_DMF_MODE_NON_AUTO = 1;
00801
00807
00808 const TToiReceiveDmfMode RECEIVE_DMF_MODE_SELECT = 2;
00809
00815
00816 const TToiReceiveDmfMode RECEIVE_DMF_MODE_SPECIAL = 3;
00817
00819
00821
00822 typedef long TToiRecordDmfMode;
00825
00831
00832 const TToiRecordDmfMode RECORD_DMF_MODE_AUTO = 0;
00833
00839
00840 const TToiRecordDmfMode RECORD_DMF_MODE_NON_AUTO = 1;
00841
00847
00848 const TToiRecordDmfMode RECORD_DMF_MODE_SELECT = 2;
00849
00851
00856 const long PACE_PAUSE = 0;
00857
00863 const long PACE_PLAY = 1000;
00864
00870 const long PACE_FASTFORWARD = 5000;
00871
00877 const long PACE_REWIND = -5000;
00878
00885 const long POSITION_LIVE = -1616928864;
00886
00894 const long CAPABILITY_PAUSE = 1;
00895
00901 const long CAPABILITY_REWIND = 2;
00902
00908 const long CAPABILITY_FASTFORWARD = 4;
00909
00916 const long CAPABILITY_GETPOSITION = 8;
00917
00923 const long CAPABILITY_SETPOSITION = 16;
00924
00932 const long CAPABILITY_FREEZE = 32;
00933
00938 const long CAPABILITY_TIMESHIFT = 64;
00939
00946
00947 TToiState getState();
00948
00956
00957 ToiMediaPlayerBaseError getError();
00958
00972
00973 ToiMediaSession::TToiSessionId getSessionId()
00974 raises (TToiSessionViolationException);
00975
00986
00987 string getUrl()
00988 raises (TToiSessionViolationException);
00989
01009
01010 ToiMediaPlayerBaseStreamInfo getStreamInfo()
01011 raises (TToiSessionViolationException, TToiUnavailableException);
01012
01038
01039 ToiMediaPlayerBaseVideoStreamInfo getVideoStreamInfo(in ToiMediaPlayerBaseComponentEntry mediaComponent)
01040 raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException);
01041
01067
01068 ToiMediaPlayerBaseAudioStreamInfo getAudioStreamInfo(in ToiMediaPlayerBaseComponentEntry mediaComponent)
01069 raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException);
01070
01096
01097 ToiMediaPlayerBaseSubtitleStreamInfo getSubtitleStreamInfo(in ToiMediaPlayerBaseComponentEntry mediaComponent)
01098 raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException);
01099
01125
01126 ToiMediaPlayerBaseTeletextStreamInfo getTeletextStreamInfo(in ToiMediaPlayerBaseComponentEntry mediaComponent)
01127 raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException);
01128
01153
01154 long getCapabilities()
01155 raises (TToiSessionViolationException, TToiUnavailableException);
01156
01180
01181 long getPosition()
01182 raises (TToiSessionViolationException, TToiOperationNotSupportedException, TToiUnavailableException);
01183
01212
01213 long getPace()
01214 raises (TToiSessionViolationException, TToiOperationNotSupportedException, TToiUnavailableException);
01215
01231
01232 boolean isTimeshiftPlayback()
01233 raises (TToiSessionViolationException, TToiUnavailableException);
01234
01250
01251 ToiMediaPlayerBaseTimeshiftInfo getTimeshiftInfo()
01252 raises (TToiSessionViolationException, TToiUnavailableException);
01253
01262
01263 ToiMediaPlayerBaseError getTimeshiftError();
01264
01282
01283 TToiComponentSequence getActiveComponents()
01284 raises (TToiSessionViolationException, TToiUnavailableException);
01285
01306
01307 string getParameter(in string name)
01308 raises (TToiInvalidArgumentException, TToiUnavailableException);
01309
01332
01333
01334
01335 void subscribeParameter(in ToiEventListener eventListener,
01336 in string name)
01337 raises (TToiInvalidArgumentException, TToiUnavailableException);
01338
01358
01359
01360
01361 void unsubscribeParameter(in ToiEventListener eventListener,
01362 in string name)
01363 raises (TToiInvalidArgumentException, TToiUnavailableException);
01364
01369
01370
01371
01372 void releaseInstance();
01373
01374 };
01375
01376 #endif