• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AVSession Management Error Codes
2 <!--Kit: AVSession Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @ccfriend; @liao_qian-->
5<!--SE: @ccfriend-->
6<!--TSE: @chenmingxi1_huawei-->
7
8> **NOTE**
9>
10> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
11
12## 6600101 Session Service Exception
13
14**Error Message**
15
16Session service exception.
17
18**Description**
19
20The session service is abnormal, and the application cannot obtain a response from the session service. For example, the session service is not running or the communication with the session service fails.
21
22**Possible Causes**
23
24The session service is killed during session restart.
25
26**Solution**
27
281. The system retries the operation automatically. If the error persists for 3 seconds or more, stop the operation on the session or controller.
29
302. Destroy the current session or session controller and re-create it. If the re-creation fails, stop the operation on the session.
31
32## 6600102 Session Does Not Exist
33
34**Error Message**
35
36The session does not exist.
37
38**Description**
39
40Parameters are set for or commands are sent to the session that does not exist.
41
42**Possible Causes**
43
44The session has been destroyed, and no session record exists on the server.
45
46**Solution**
47
481. If the error occurs on the application, re-create the session. If the error occurs on Media Controller, stop sending query or control commands to the session.
49
502. If the error occurs on the session service, query the current session record and pass the correct session ID when creating the controller.
51
52## 6600103 Session Controller Does Not Exist
53
54**Error Message**
55
56The session controller does not exist.
57
58**Description**
59
60A control command or an event is sent to the controller that does not exist.
61
62**Possible Causes**
63
64The controller has been destroyed.
65
66**Solution**
67
68Query the session record and create the corresponding controller.
69
70<!--Del-->
71## 6600104 Remote Session Connection Failure
72
73**Error Message**
74
75The remote session connection failed.
76
77**Description**
78
79The communication between the local session and the remote session fails.
80
81**Possible Causes**
82
83The communication between devices is interrupted.
84
85**Solution**
86
87Stop sending control commands to the session. Subscribe to output device changes, and resume the sending when the output device is changed.
88<!--DelEnd-->
89
90## 6600105 Invalid Session Command
91
92**Error Message**
93
94Invalid session command.
95
96**Description**
97
98The control command or event sent to the session is not supported.
99
100**Possible Causes**
101
102The session does not support this command.
103
104**Solution**
105
106Stop sending the command or event. Query the commands supported by the session, and send a command supported.
107
108## 6600106 Session Not Activated
109
110**Error Message**
111
112The session is not activated.
113
114**Description**
115
116A control command or event is sent to the session that is not activated.
117
118**Possible Causes**
119
120The session is in the inactive state.
121
122**Solution**
123
124Stop sending the command or event. Subscribe to the session activation status, and resume the sending when the session is activated.
125
126## 6600107 Too Many Commands or Events
127
128**Error Message**
129
130Too many commands or events.
131
132**Description**
133
134The session client sends too many messages or commands to the server in a period of time, causing the server to be overloaded.
135
136**Possible Causes**
137
138The server is overloaded with messages or events.
139
140**Solution**
141
142Control the frequency of sending commands or events.
143
144<!--Del-->
145## 6600108 Device Connection Failure
146
147**Error Message**
148
149Device connection failed.
150
151**Description**
152
153Connection to the device fails.
154
155**Possible Causes**
156
157The device connection logic is abnormal or the device status is abnormal.
158
159**Solution**
160
161Refresh the device list and check whether the device is offline.
162<!--DelEnd-->
163
164## 6600109 Remote Session Does Not Exist
165
166**Error Message**
167
168The remote connection is not established.
169
170**Description**
171
172The remote session does not exist, and the related API calls fail.
173
174**Possible Causes**
175
176The remote session has been destroyed or has not been created.
177
178**Solution**
179
180Query the session status again to determine whether the remote session exists.
181
182## 6611000 Unknown Error in the Cast Controller
183
184**Error Message**
185
186The error code for cast control is unspecified.
187
188**Description**
189
190An unknown error occurs in the cast controller.
191
192**Possible Causes**
193
1941. Failure in status switching: The device does not support a quick transition from the current transmission state to the required state.
195
1962. Device authentication failure: The authentication between the local and remote devices fails.
197
1983. Invalid instance: The current instance ID is invalid for AVTransport.
199
200**Solution**
201
202Initiate the session again.
203
204## 6611001 Unknown Error in the Remote Device
205
206**Error Message**
207
208An unspecified error occurs in the remote player.
209
210**Description**
211
212An unknown error occurs in the remote device.
213
214**Possible Causes**
215
216The remote device is abnormal.
217
218**Solution**
219
220Restart the remote device and initiate the session again.
221
222## 6611002 Loading Position Exceeds the Total Video Progress
223
224**Error Message**
225
226The playback position falls behind the live window.
227
228**Description**
229
230The loading position exceeds the total progress of the video to be played.
231
232**Possible Causes**
233
234The current progress exceeds the total progress.
235
236**Solution**
237
238Check and adjust the progress to avoid exceeding the total.
239
240## 6611003 Cast Controller Loading Timeout
241
242**Error Message**
243
244The process of cast control times out.
245
246**Description**
247
248The loading of the cast controller times out.
249
250**Possible Causes**
251
252The loading of the cast controller takes a long period of time.
253
254**Solution**
255
256The current session times out. Initiate a new session.
257
258## 6611004 Runtime Check Failure
259
260**Error Message**
261
262The runtime check failed.
263
264**Description**
265
266The runtime check fails.
267
268**Possible Causes**
269
2701. The application does not comply with the player's API requirements (for example, passing invalid parameters).
271
2722. The player is in an invalid state.
273
274**Solution**
275
276Verify the input parameters according to the API requirements to prevent exceptions.
277
278## 6611100 Cross-Device Data Transmission Locked
279
280**Error Message**
281
282Cross-device data transmission is locked.
283
284**Description**
285
286Cross-device data transmission is locked.
287
288**Possible Causes**
289
290The transmission is locked.
291
292**Solution**
293
294Restart the remote device and initiate the session again.
295
296## 6611101 Unsupported Seek Mode
297
298**Error Message**
299
300The specified seek mode is not supported.
301
302**Description**
303
304The specified seek mode is not supported.
305
306**Possible Causes**
307
308The device does not support the specified seek mode.
309
310**Solution**
311
312Verify the seek mode.
313
314## 6611102 Invalid Seek Target
315
316**Error Message**
317
318The position to seek to is out of the range of the media asset or the specified seek mode is not supported.
319
320**Description**
321
322The position to seek to is out of range.
323
324**Possible Causes**
325
326The position to seek to is out of the audio/video resource progress range or the specified seek mode is unknown.
327
328**Solution**
329
330Verify the position to seek to and the seek mode.
331
332## 6611103 Unsupported Playback Mode
333
334**Error Message**
335
336The specified playback mode is not supported.
337
338**Description**
339
340The specified playback mode is not supported.
341
342**Possible Causes**
343
344The device does not support the specified playback mode.
345
346**Solution**
347
348Verify the playback mode.
349
350## 6611104 Unsupported Playback Speed
351
352**Error Message**
353
354The specified playback speed is not supported.
355
356**Description**
357
358The specified playback speed is not supported.
359
360**Possible Causes**
361
362The current playback speed is not supported by AVTransport.
363
364**Solution**
365
366Verify the playback speed.
367
368## 6611105 Device Revocation
369
370**Error Message**
371
372The action failed because either the media source device or the media sink device has been revoked.
373
374**Description**
375
376The device is revoked.
377
378**Possible Causes**
379
380The local device or the remote device has been revoked.
381
382**Solution**
383
384Restart the remote device and initiate the session again.
385
386## 6611106 Invalid Input Parameter
387
388**Error Message**
389
390The parameter is invalid, for example, the url is illegal to play.
391
392**Description**
393
394An input parameter is invalid.
395
396**Possible Causes**
397
398An invalid parameter is passed in.
399
400**Solution**
401
402Verify the input parameters according to the API requirements to prevent exceptions.
403
404## 6611107 Memory Allocation Failure
405
406**Error Message**
407
408Allocation of memory failed.
409
410**Description**
411
412Memory allocation fails.
413
414**Possible Causes**
415
4161. The memory is insufficient.
417
4182. The system cannot allocate memory.
419
420**Solution**
421
422The device memory is insufficient. Restart the device and then initiate the session again.
423
424## 6611108 Operation Not Allowed
425
426**Error Message**
427
428Operation is not allowed.
429
430**Description**
431
432The operation is not allowed.
433
434**Possible Causes**
435
436The operation is not allowed.
437
438**Solution**
439
440Check the status of the remote device and perform the operation when the remote device is running.
441
442## 6612000 Unknown I/O Error
443
444**Error Message**
445
446An unspecified input/output error occurs.
447
448**Description**
449
450An unknown I/O error occurs.
451
452**Possible Causes**
453
454The message from the peer device does not comply with the standard or fails to be parsed.
455
456**Solution**
457
458Restart the remote device and initiate the session again.
459
460## 6612001 Network Connection Failure
461
462**Error Message**
463
464Network connection failure.
465
466**Description**
467
468Network connection fails.
469
470**Possible Causes**
471
472Network exceptions occur, or the peer network is disconnected.
473
474**Solution**
475
476Reconnect to the network and then initiate the session again.
477
478## 6612002 Network Timeout
479
480**Error Message**
481
482Network timeout.
483
484**Description**
485
486The network times out. As a result, it takes a long time for the server to complete the request.
487
488**Possible Causes**
489
490The network is abnormal, the peer network is disconnected, or the network environment is poor.
491
492**Solution**
493
494Reconnect to the network and then initiate the session again.
495
496## 6612003 Invalid Content-Type HTTP Header
497
498**Error Message**
499
500Invalid "Content-Type" HTTP header.
501
502**Description**
503
504The Content-Type HTTP header is invalid.
505
506**Possible Causes**
507
508The response from the remote device does not comply with the HTTP protocol standard and fails to be parsed.
509
510**Solution**
511
512Reconnect to the network and then initiate the session again.
513
514## 6612004 Unexpected HTTP Response Status Code from the HTTP Server
515
516**Error Message**
517
518The HTTP server returns an unexpected HTTP response status code.
519
520**Description**
521
522The HTTP server returns an unexpected HTTP response status code.
523
524**Possible Causes**
525
526The remote device is abnormal and returns an HTTP error code.
527
528**Solution**
529
530Reconnect to the network and then initiate the session again.
531
532## 6612005 File Does Not Exist
533
534**Error Message**
535
536The file does not exist.
537
538**Description**
539
540The file does not exist.
541
542**Possible Causes**
543
544The file to be played is not found on the network.
545
546**Solution**
547
548Check whether the resource is available. If not, replace the resource and initiate the session again.
549
550## 6612006 No Permission for I/O Operations
551
552**Error Message**
553
554No permission is granted to perform the IO operation.
555
556**Description**
557
558You do not have the permission to perform I/O operations.
559
560**Possible Causes**
561
562The file read permission is not granted.
563
564**Solution**
565
566Grant the file read permission.
567
568## 6612007 Operation Not Allowed by Network Security Configuration
569
570**Error Message**
571
572Access to cleartext HTTP traffic is not allowed by the app's network security configuration.
573
574**Description**
575
576The player attempts to access plaintext HTTP streams. This operation is not allowed by the network security configuration of the application.
577
578**Possible Causes**
579
580Network security access permission is insufficient.
581
582**Solution**
583
584Reconnect to the network and then initiate the session again.
585
586## 6612008 Data to Read Out of Range
587
588**Error Message**
589
590Reading data out of the data bound.
591
592**Description**
593
594The data to read exceeds the data range.
595
596**Possible Causes**
597
598The data to read exceeds the data range.
599
600**Solution**
601
602Check whether the resource is available. If not, replace the resource and initiate the session again.
603
604## 6612100 No Playable Content
605
606**Error Message**
607
608The media does not contain any contents that can be played.
609
610**Description**
611
612The media asset does not contain any playable content.
613
614**Possible Causes**
615
616There is no playable content in the media asset.
617
618**Solution**
619
620Check whether the resource is available. If not, replace the resource and initiate the session again.
621
622## 6612101 Failure in Reading Media Assets
623
624**Error Message**
625
626The media cannot be read.
627
628**Description**
629
630Media assets cannot be read.
631
632**Possible Causes**
633
634The file fails to be read, possibly because the file is damaged.
635
636**Solution**
637
638Verify file integrity.
639
640## 6612102 Resource Is Being Used
641
642**Error Message**
643
644This resource is already in use.
645
646**Description**
647
648The resource is already in use.
649
650**Possible Causes**
651
652The resource is already in use.
653
654**Solution**
655
656Check whether the resource is available. If not, replace the resource and initiate the session again.
657
658## 6612103 Content Expired
659
660**Error Message**
661
662The content using the validity interval has expired.
663
664**Description**
665
666The content has expired.
667
668**Possible Causes**
669
670The content has expired.
671
672**Solution**
673
674Check whether the resource is available. If not, replace the resource and initiate the session again.
675
676## 6612104 Requested Content Cannot Be Used
677
678**Error Message**
679
680Using the requested content to play is not allowed.
681
682**Description**
683
684Using the requested content is not allowed.
685
686**Possible Causes**
687
688Using the requested content is not allowed.
689
690**Solution**
691
692Check whether the resource is available. If not, replace the resource and initiate the session again.
693
694## 6612105 Unable to Verify the Allowed Content
695
696**Error Message**
697
698The use of the allowed content cannot be verified.
699
700**Description**
701
702The allowed content cannot be verified.
703
704**Possible Causes**
705
706The allowed content cannot be verified.
707
708**Solution**
709
710Check whether the resource is available. If not, replace the resource and initiate the session again.
711
712## 6612106 Frequent Resource Usage
713
714**Error Message**
715
716The number of times this content has been used as requested has reached the maximum allowed number of uses.
717
718**Description**
719
720The number of times that the content is requested has reached the maximum allowed.
721
722**Possible Causes**
723
724The number of times that the content is requested has reached the maximum allowed.
725
726**Solution**
727
728Control the frequency of queries and commands.
729
730## 6612107 Failure in Sending Resource Packages to the Remote Device
731
732**Error Message**
733
734An error occurs when sending packet from source device to sink device.
735
736**Description**
737
738The local device fails to send resource packages to the remote device.
739
740**Possible Causes**
741
742The network is abnormal, the peer device is abnormal, or the peer device cannot receive messages.
743
744**Solution**
745
746Reconnect to the network and then initiate the session again.
747
748## 6613000 Unknown Parsing Error
749
750**Error Message**
751
752Unspecified error related to content parsing.
753
754**Description**
755
756Unknown parsing error.
757
758**Possible Causes**
759
760The message from the peer device does not comply with the standard or fails to be parsed.
761
762**Solution**
763
764Restart the remote device and initiate the session again.
765
766## 6613001 Invalid Type
767
768**Error Message**
769
770Parsing error associated with media container format bit streams.
771
772**Description**
773
774Invalid type.
775
776**Possible Causes**
777
778The MIME type of the resource to play is not supported by AVTransport.
779
780**Solution**
781
782Use another type of resource and initiate the session again.
783
784## 6613002 Error in Parsing Media Manifest
785
786**Error Message**
787
788Parsing error associated with the media manifest.
789
790**Description**
791
792The media manifest fails to be parsed.
793
794**Possible Causes**
795
796The device does not support the current media storage format.
797
798**Solution**
799
800Check whether the resource format is correct. If not, change the resource format and initiate the session again.
801
802## 6613003 Unsupported Media Format
803
804**Error Message**
805
806An error occurs when attempting to extract a file with an unsupported media container format or an unsupported media container feature.
807
808**Description**
809
810The media format is not supported.
811
812**Possible Causes**
813
814The device does not support the current media storage format.
815
816**Solution**
817
818Check whether the resource format is correct. If not, change the resource format and initiate the session again.
819
820## 6613004 Unsupported Feature in the Media Manifest
821
822**Error Message**
823
824Unsupported feature in the media manifest.
825
826**Description**
827
828This feature is not supported in the media manifest.
829
830**Possible Causes**
831
832The device does not support the current media storage format.
833
834**Solution**
835
836Check whether the resource format is correct. If not, change the resource format and initiate the session again.
837
838## 6614000 Unknown Decoding Error
839
840**Error Message**
841
842Unspecified decoding error.
843
844**Description**
845
846Unknown decoding error.
847
848**Possible Causes**
849
850The decoder of the remote device is abnormal.
851
852**Solution**
853
854Restart the remote device and initiate the session again.
855
856## 6614001 Decoder Initialization Failure
857
858**Error Message**
859
860Decoder initialization failed.
861
862**Description**
863
864Initializing the decoder fails.
865
866**Possible Causes**
867
868The decoder of the remote device fails to be initialized.
869
870**Solution**
871
872Restart the remote device and initiate the session again.
873
874## 6614002 Decoder Query Failure
875
876**Error Message**
877
878Decoder query failed.
879
880**Description**
881
882Querying the decoder fails.
883
884**Possible Causes**
885
886When the device or software attempts to play or process a media file, the device or software cannot correctly decode the data in the file.
887
888**Solution**
889
890Check the file format and ensure that the file format is supported.
891
892## 6614003 Media Sample Decoding Failure
893
894**Error Message**
895
896Decoding the media samples failed.
897
898**Description**
899
900Decoding the media sample fails.
901
902**Possible Causes**
903
904The file type you are trying to access is not supported by the device.
905
906**Solution**
907
908Check the file format and ensure that the file format is supported.
909
910## 6614004 Content Format Is Beyond the Device Capability
911
912**Error Message**
913
914The format of the content to decode exceeds the capabilities of the device.
915
916**Description**
917
918The decoding capability of the device does not meet the requirements.
919
920**Possible Causes**
921
922The file type you are trying to access is not supported by the device.
923
924**Solution**
925
926Check the file format and ensure that the file format is supported.
927
928## 6614005 Decoding of the Content Format Is Not Supported
929
930**Error Message**
931
932The format of the content to decode is not supported.
933
934**Description**
935
936Decoding fails because the content format is not supported.
937
938**Possible Causes**
939
940The file type you are trying to access is not supported by the device.
941
942**Solution**
943
944Check the file format and ensure that the file format is supported.
945
946## 6615000 Unknown Error Related to the Audio Renderer
947
948**Error Message**
949
950Unspecified errors related to the audio renderer.
951
952**Description**
953
954An unknown error related to the audio renderer occurs.
955
956**Possible Causes**
957
958The audio renderer of the remote device is faulty and cannot identify the current audio track.
959
960**Solution**
961
962Check the file format and ensure that the file format is supported.
963
964## 6615001 Audio Renderer Initialization Failure
965
966**Error Message**
967
968Initializing the audio renderer failed.
969
970**Description**
971
972Initializing the audio renderer fails.
973
974**Possible Causes**
975
976The audio renderer of the remote device fails to be initialized.
977
978**Solution**
979
980Restart the remote device and initiate the session again.
981
982## 6615002 Audio Renderer Failure in Writing Data
983
984**Error Message**
985
986The audio renderer fails to write data.
987
988**Description**
989
990The audio renderer fails to write data.
991
992**Possible Causes**
993
994The audio renderer of the remote device cannot write data.
995
996**Solution**
997
998Restart the remote device and initiate the session again.
999
1000## 6616000 Unknown DRM Error
1001
1002**Error Message**
1003
1004Unspecified error related to DRM.
1005
1006**Description**
1007
1008An unknown DRM error occurs.
1009
1010**Possible Causes**
1011
1012The DRM of the remote device is abnormal.
1013
1014**Solution**
1015
1016Update the DRM component and initiate the session again.
1017
1018## 6616001 Device Does Not Support the Selected DRM Solution
1019
1020**Error Message**
1021
1022The chosen DRM protection scheme is not supported by the device.
1023
1024**Description**
1025
1026The device does not support the DRM solution selected.
1027
1028**Possible Causes**
1029
1030An unknown DRM error occurs.
1031
1032**Solution**
1033
1034Update the DRM component and initiate the session again.
1035
1036## 6616002 Device Provisioning Failure
1037
1038**Error Message**
1039
1040Device provisioning failed.
1041
1042**Description**
1043
1044An error occurs during device provisioning.
1045
1046**Possible Causes**
1047
1048The DRM-protected content cannot be played.
1049
1050**Solution**
1051
1052Check the DRM format of the file and ensure that the DRM format is supported.
1053
1054## 6616003 DRM-Protected Content to Play Is Incompatible
1055
1056**Error Message**
1057
1058The DRM-protected content to play is incompatible.
1059
1060**Description**
1061
1062The DRM-protected content to play is incompatible.
1063
1064**Possible Causes**
1065
1066The DRM-protected content cannot be played.
1067
1068**Solution**
1069
1070Update the DRM component and initiate the session again.
1071
1072## 6616004 License Obtaining Failure
1073
1074**Error Message**
1075
1076Failed to obtain a license.
1077
1078**Description**
1079
1080The license fails to be obtained.
1081
1082**Possible Causes**
1083
1084The DRM license is not complied with.
1085
1086**Solution**
1087
1088Check the DRM format of the file and ensure that the DRM format is supported.
1089
1090## 6616005 Operation Not Allowed by the License Policy
1091
1092**Error Message**
1093
1094The operation is disallowed by the license policy.
1095
1096**Description**
1097
1098The operation is not allowed by the license policy.
1099
1100**Possible Causes**
1101
1102The DRM license is not complied with.
1103
1104**Solution**
1105
1106Check the DRM format of the file and ensure that the DRM format is supported.
1107
1108## 6616006 DRM System Error
1109
1110**Error Message**
1111
1112An error occurs in the DRM system.
1113
1114**Description**
1115
1116The DRM system is faulty.
1117
1118**Possible Causes**
1119
1120The DRM of the remote device is abnormal.
1121
1122**Solution**
1123
1124Check the DRM format of the file and ensure that the DRM format is supported.
1125
1126## 6616007 DRM Privileges Revoked
1127
1128**Error Message**
1129
1130The device has revoked DRM privileges.
1131
1132**Description**
1133
1134The DRM privileges have been revoked from the device.
1135
1136**Possible Causes**
1137
1138The DRM privileges of the device are disabled or revoked. As a result, DRM-protected content cannot be played or processed.
1139
1140**Solution**
1141
1142Update the DRM component and initiate the session again.
1143
1144## 6616008 Expired DRM License Loaded
1145
1146**Error Message**
1147
1148The DRM license being loaded into the open DRM session has expired.
1149
1150**Description**
1151
1152An expired DRM license is loaded to an open DRM session.
1153
1154**Possible Causes**
1155
1156The DRM license has expired.
1157
1158**Solution**
1159
1160Update the DRM component and initiate the session again.
1161
1162## 6616100 Error in Processing the Key Response
1163
1164**Error Message**
1165
1166An error occurs when the DRM processes the key response.
1167
1168**Description**
1169
1170An error occurs when the DRM processes the key response.
1171
1172**Possible Causes**
1173
1174An error occurs when the DRM processes the key response.
1175
1176**Solution**
1177
1178Update the DRM component and initiate the session again.
1179