harmony 鸿蒙Ringtone Error Codes

  • 2025-06-12
  • 浏览 (4)

Ringtone Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

20700001

Error Message

Tone type mismatch.

Description

This error code is reported if the tone type passed in the API does not match the expected type.

Possible Causes

Invalid parameter, such as providing a tone path for an alarm instead of a notification tone.

Solution

Pass the correct tone path in the API.

20700002 Parameter Check Failed

Error Message

Parameter check error.

Description

This error code is reported if a certain parameter passed in the API is invalid.

Possible Causes

The parameter is invalid. For example, the parameter value is not within the range supported.

Solution

Pass the correct parameters in the API.

20700003 Operation Not Supported

Error Message

Unsupported operation.

Description

This error code is reported if the current operation is not supported when the API is called.

Possible Causes

The device does not support the capability, such as lacking vibration support.

Solution

Refer to the device capability documentation.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Audio Kit

harmony 鸿蒙OH_AudioCapturer_Callbacks_Struct

harmony 鸿蒙OH_AudioDeviceDescriptorArray

harmony 鸿蒙OH_AudioRenderer_Callbacks_Struct

harmony 鸿蒙OH_AudioSession_DeactivatedEvent

harmony 鸿蒙OH_AudioSession_Strategy

harmony 鸿蒙_o_h_audio

harmony 鸿蒙Audio Error Codes

harmony 鸿蒙js-apis-audio-sys

harmony 鸿蒙js-apis-audio

0  赞