113 case KErrUnknown: |
113 case KErrUnknown: |
114 case KErrMMDecoder: |
114 case KErrMMDecoder: |
115 case KErrCorrupt: |
115 case KErrCorrupt: |
116 case KErrTooBig: |
116 case KErrTooBig: |
117 { |
117 { |
118 const QString qString = "Invalid Clip. Operation canceled"; |
118 showDialog( hbTrId( "txt_videos_info_invalid_clip_operation_canceled" ) ); |
119 showDialog( qString ); |
|
120 break; |
119 break; |
121 } |
120 } |
122 |
121 |
123 case KErrMMInvalidProtocol: |
122 case KErrMMInvalidProtocol: |
124 case KErrMMInvalidURL: |
123 case KErrMMInvalidURL: |
125 case KErrArgument: |
124 case KErrArgument: |
126 { |
125 { |
127 const QString qString = "Unable to connect: Invalid URL"; |
126 showDialog( hbTrId( "txt_videos_info_unable_to_connect_invalid_url" ) ); |
128 showDialog( qString ); |
|
129 break; |
127 break; |
130 } |
128 } |
131 |
129 |
132 case KErrSessionClosed: |
130 case KErrSessionClosed: |
133 { |
131 { |
134 if ( ! mVideoMpxWrapper->IsLive() ) |
132 if ( ! mVideoMpxWrapper->IsLive() ) |
135 { |
133 { |
136 const QString qString = "Resource Lost"; |
134 showDialog( hbTrId( "txt_videos_info_resource_lost" ) ); |
137 showDialog( qString ); |
|
138 } |
135 } |
139 else |
136 else |
140 { |
137 { |
141 handleClosePlaybackView(); |
138 handleClosePlaybackView(); |
142 } |
139 } |
143 break; |
140 break; |
144 } |
141 } |
145 case KErrTimedOut: |
142 case KErrTimedOut: |
146 { |
143 { |
147 const QString qString = "Unable to connect: Connection timeout"; |
144 showDialog( hbTrId( "txt_videos_info_unable_to_connect_connection_time" ) ); |
148 showDialog( qString ); |
|
149 break; |
145 break; |
150 } |
146 } |
151 case KErrNotFound: |
147 case KErrNotFound: |
152 { |
148 { |
153 const QString qString = "Unable to connect: File not found"; |
149 showDialog( hbTrId( "txt_videos_info_unable_to_connect_file_not_found" ) ); |
154 showDialog( qString ); |
|
155 break; |
150 break; |
156 } |
151 } |
157 case KErrMMNotEnoughBandwidth: |
152 case KErrMMNotEnoughBandwidth: |
158 { |
153 { |
159 const QString qString = "Unable to connect: Not enough bandwidth"; |
154 showDialog( hbTrId( "txt_videos_info_unable_to_connect_not_enough_band" ) ); |
160 showDialog( qString ); |
|
161 break; |
155 break; |
162 } |
156 } |
163 case KErrDisconnected: |
157 case KErrDisconnected: |
164 case KErrMMProxyServer: |
158 case KErrMMProxyServer: |
165 case KErrCouldNotConnect: |
159 case KErrCouldNotConnect: |
166 case KErrAbort: |
160 case KErrAbort: |
167 { |
161 { |
168 const QString qString = "Unable to connect"; |
162 showDialog( hbTrId( "txt_videos_info_unable_to_connect" ) ); |
169 showDialog( qString ); |
|
170 break; |
163 break; |
171 } |
164 } |
172 case KMPXVideoPlayOver2GDuringVoiceCallError: |
165 case KMPXVideoPlayOver2GDuringVoiceCallError: |
173 { |
166 { |
174 const QString qString = "Video play not allowed during voice call over 2G network"; |
167 showDialog( hbTrId( "txt_videos_info_video_play_not_allowed_during_voic" ), false ); |
175 showDialog( qString, false ); |
|
176 break; |
168 break; |
177 } |
169 } |
178 default: |
170 default: |
179 { |
171 { |
180 HbVideoBasePlaybackView::handlePluginError( aError ); |
172 HbVideoBasePlaybackView::handlePluginError( aError ); |