• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Media Error Codes
2<!--Kit: Media Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @wang-haizhou6-->
5<!--Designer: @HmQQQ-->
6<!--Tester: @xchaosioda-->
7<!--Adviser: @zengyawen-->
8
9> **NOTE**
10>
11> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
12
13## 5400101 Memory Allocation Failed
14
15**Error Message**
16
17No memory.
18
19**Description**
20
21Failed to allocate memory.
22
23**Possible Causes**
24
251. The number of instances exceeds 16.
262. The new or malloc process fails, causing a null pointer.
27
28**Solution**
29
30Destroy this instance and re-create it. If the re-creation fails, stop related operations.
31
32## 5400102 Unsupported Operation
33
34**Error Message**
35
36Operation not allowed.
37
38**Description**
39
40This operation is not allowed.
41
42**Possible Causes**
43
44This operation is not allowed in the current state.
45
46**Solution**
47
48Switch the instance to the correct state and perform the operation.
49
50## 5400103 I/O Error
51
52**Error Message**
53
54I/O error.
55
56**Description**
57
58An I/O error occurs.
59
60**Possible Causes**
61
62The data interaction between the media and other modules (graphics, audio, network, HDI, and camera) is abnormal.
63
64**Solution**
65
66Ensure that the network is normal, destroy this instance, and re-create it. If the re-creation fails, stop related operations.
67
68## 5400104 Operation Timeout
69
70**Error Message**
71
72Operation timeout.
73
74**Description**
75
76The operation timed out.
77
78**Possible Causes**
79
801. The network connection times out. (The default network timeout period is 15 seconds, and the timer starts after the buffered event is reported.)
812. Accessing other modules times out.
82
83**Solution**
84
851. Check whether the network is normal.
862. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
87
88## 5400105 Play Service Dead
89
90**Error Message**
91
92Service died.
93
94**Description**
95
96The playback service is dead.
97
98**Possible Causes**
99
100The playback service is dead.
101
102**Solution**
103
104Destroy this instance and re-create it. If the re-creation fails, stop related operations.
105
106## 5400106 Format Not Supported
107
108**Error Message**
109
110Unsupported format.
111
112**Description**
113
114The format is not supported.
115
116**Possible Causes**
117
118The file format is not supported.
119
120**Solution**
121
122Use a supported format.
123
124For details about the supported formats, see [Media Kit Overview](../../media/media/media-kit-intro.md).
125
126## 5400107 Audio Focus Conflict
127
128**Error Message**
129
130Audio interrupted.
131
132**Description**
133
134Recording fails due to audio focus conflicts.
135
136**Possible Causes**
137
138Another process occupies the audio focus.
139
140**Solution**
141
142Destroy the current instance and check whether another process is recording. If you can stop the other process, you can create the current instance again.
143
144## 5400108 Parameter Value Out of Range
145
146**Error Message**
147
148The parameter check failed, parameter value out of range.
149
150**Description**
151
152The parameter check fails because the value is beyond the allowable range.
153
154**Possible Causes**
155
156The value of the parameter exceeds the expected range.
157
158**Solution**
159
160Adjust the parameter value to fall within the acceptable range.
161
162<!--Del-->
163## 5400109 Session ID Does Not Exist
164
165**Error Message**
166
167Sessions not exist. Return by promise.
168
169**Description**
170
171This error is reported when the session ID does not exists.
172
173**Possible Causes**
174
175The session ID does not exist.
176
177**Solution**
178
179Pass in a correct session ID.
180<!--DelEnd-->
181
182## 5411001 Failed to Parse or Connect to the Server Address
183
184**Error Message**
185
186Can not find host.
187
188**Description**
189
190An error occurred when parsing or connecting to the server address.
191
192**Possible Causes**
193
1941. The server address is incorrect.
1952. The server address fails to be parsed.
196
197**Solution**
198
199Try another server address.
200
201## 5411002 Network Connection Timeout
202
203**Error Message**
204
205Connection timeout.
206
207**Description**
208
209Network connection times out.
210
211**Possible Causes**
212
213The network is abnormal.
214
215**Solution**
216
2171. Check whether the network is normal.
2182. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
219
220## 5411003 Data or Link Exception Caused by Network Exceptions
221
222**Error Message**
223
224Network abnormal.
225
226**Description**
227
228Data or links are abnormal due to network exceptions.
229
230**Possible Causes**
231
232The network is abnormal.
233
234**Solution**
235
236Destroy this instance and re-create it. If the re-creation fails, stop related operations.
237
238## 5411004 Network Disabled
239
240**Error Message**
241
242Network unavailable.
243
244**Description**
245
246The network is unavailable.
247
248**Possible Causes**
249
250The network is disabled.
251
252**Solution**
253
2541. Check whether the network is disabled.
2552. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
256
257## 5411005 Access Denied
258
259**Error Message**
260
261No permission.
262
263**Description**
264
265No access permission.
266
267**Possible Causes**
268
269No access permission.
270
271**Solution**
272
2731. Check whether you have the access permission.
2742. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
275
276## 5411006 Client Request Parameter Is Incorrect or Exceeds the Processing Capability
277
278**Error Message**
279
280Network access denied.
281
282**Description**
283
284The client request parameter is incorrect or exceeds the processing capability.
285
286**Possible Causes**
287
288The client request parameter is incorrect or exceeds the processing capability.
289
290**Solution**
291
2921. Correct the request parameter.
2932. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
294
295## 5411007 No Resource Available
296
297**Error Message**
298
299Cannot find available network resources.
300
301**Description**
302
303No network resource is available.
304
305**Possible Causes**
306
307The server address is abnormal.
308
309**Solution**
310
3111. Check whether the server address is correct.
3122. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
313
314## 5411008 Server Fails to Verify the Client Certificate
315
316**Error Message**
317
318SSL client cert needed.
319
320**Description**
321
322The SSL client is untrusted, and the server fails to verify the client certificate.
323
324**Possible Causes**
325
326The certificate is not carried, is invalid, or has expired.
327
328**Solution**
329
3301. Check whether the SSL certificate is normal.
3312. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
332
333## 5411009 SSL Connection Failed
334
335**Error Message**
336
337SSL connection failed.
338
339**Description**
340
341The SSL connection fails.
342
343**Possible Causes**
344
345The SSL connection fails.
346
347**Solution**
348
3491. Check whether the SSL connection has expired.
3502. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
351
352## 5411010 Client Fails to Verify the Server Certificate
353
354**Error Message**
355
356SSL server cert untrusted.
357
358**Description**
359
360The SSL server is untrusted, and the client fails to verify the server certificate.
361
362**Possible Causes**
363
364The certificate is not carried, is invalid, or has expired.
365
366**Solution**
367
3681. Check whether the SSL certificate is normal.
3692. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
370
371## 5411011 Unsupported Request Due to Network Protocol Errors
372
373**Error Message**
374
375Unsupported request.
376
377**Description**
378
379The client request parameter is incorrect or exceeds the processing capability.
380
381**Possible Causes**
382
383The client request parameter is incorrect or exceeds the processing capability.
384
385**Solution**
386
3871. Check whether the client request parameter is correct.
3882. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
389
390## 5410002 Seek in SEEK_CONTINUOUS Mode Is Not Supported
391
392**Error Message**
393
394Seek continuous is unsupported.
395
396**Description**
397
398The media source or device does not support the seek operation in SEEK_CONTINUOUS mode.
399
400**Possible Causes**
401
402The media source or device does not support the seek operation in SEEK_CONTINUOUS mode.
403
404**Solution**
405
4061. This error code informs the client about the behavior when seeking is not supported in SEEK_CONTINUOUS mode. The client does not need to handle this.
407
408## 5410003 Super Resolution Is Not Supported
409
410**Error Message**
411
412Super resolution not supported.
413
414**Description**
415
416The media source or device does not support super resolution.
417
418**Possible Causes**
419
420Super resolution is available only for non-HDR and non-DRM videos with a resolution of 1080p or lower. If the media source does not meet the super resolution requirements or the current device does not support super resolution, this error is reported when an API related to super resolution is called.
421
422**Solution**
423
424Do not call super resolution related APIs for the media source on the current device.
425
426## 5410004 Super Resolution Is Not Enabled
427
428**Error Message**
429
430Super resolution not enabled.
431
432**Description**
433
434Super resolution is not enabled. As a result, super resolution related APIs are unavailable.
435
436**Possible Causes**
437
438Super resolution is not enabled by using [PlaybackStrategy](./arkts-apis-media-i.md#playbackstrategy12).
439
440**Solution**
441
442Enable super resolution before calling related APIs.
443