videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackcontrolconfiguration.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of QMPXVideoPlaybackControlConfiguration |
14 * Description: Implementation of QMPXVideoPlaybackControlConfiguration |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: da1mmcf#17 % |
18 // Version : %version: da1mmcf#19 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 // INCLUDE FILES |
22 // INCLUDE FILES |
23 |
23 |
38 // |
38 // |
39 QMPXVideoPlaybackControlConfiguration::QMPXVideoPlaybackControlConfiguration( |
39 QMPXVideoPlaybackControlConfiguration::QMPXVideoPlaybackControlConfiguration( |
40 QMPXVideoPlaybackControlsController* controller) |
40 QMPXVideoPlaybackControlsController* controller) |
41 : mControlsController( controller ) |
41 : mControlsController( controller ) |
42 { |
42 { |
43 createControlList(); |
|
44 } |
43 } |
45 |
44 |
46 // ------------------------------------------------------------------------------------------------- |
45 // ------------------------------------------------------------------------------------------------- |
47 // QMPXVideoPlaybackControlConfiguration::~QMPXVideoPlaybackControlConfiguration() |
46 // QMPXVideoPlaybackControlConfiguration::~QMPXVideoPlaybackControlConfiguration() |
48 // Destructor. |
47 // Destructor. |
63 { |
62 { |
64 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()")); |
63 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()")); |
65 |
64 |
66 QMPXVideoPlaybackViewFileDetails* fileDetails = mControlsController->fileDetails(); |
65 QMPXVideoPlaybackViewFileDetails* fileDetails = mControlsController->fileDetails(); |
67 |
66 |
68 if ( fileDetails->mPlaybackMode != EMPXVideoLocal ) |
67 if ( fileDetails->mPlaybackMode == EMPXVideoStreaming || |
|
68 fileDetails->mPlaybackMode == EMPXVideoLiveStreaming ) |
69 { |
69 { |
70 // |
70 // |
71 // if it's not local mode, add branding animation control to show while initializing |
71 // streaming, add branding animation control to show while initializing |
72 // |
72 // |
73 addControlToList( EMPXBufferingAnimation ); |
73 addControlToList( EMPXBufferingAnimation ); |
74 } |
74 } |
75 |
75 |
76 addControlToList( EMPXStatusPane ); |
76 addControlToList( EMPXStatusPane ); |
130 break; |
130 break; |
131 } |
131 } |
132 case EMPXControlCmdTvOutConnected: |
132 case EMPXControlCmdTvOutConnected: |
133 case EMPXControlCmdAudionOnlyViewOpened: |
133 case EMPXControlCmdAudionOnlyViewOpened: |
134 { |
134 { |
135 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::updateControlList() audion only view")); |
135 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::updateControlList() audio only view")); |
136 |
136 |
137 widget->setVisible( false ); |
137 widget->setVisible( false ); |
138 |
138 |
139 deleteControlFromList( EMPXDetailsViewPlaybackWindow ); |
139 deleteControlFromList( EMPXDetailsViewPlaybackWindow ); |
140 |
140 |