خاصية خطأ الصوت
مثال
احصل على حالة الخطأ في الصوت:
var x = document.getElementById("myAudio").error.code;
التعريف والاستخدام
تقوم خاصية الخطأ بإرجاع كائن MediaError.
يحتوي كائن MediaError على خاصية رمز تحتوي على حالة الخطأ في الصوت.
ملاحظة: هذه الخاصية للقراءة فقط.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
error | Not supported | 9.0 | Not supported | Not supported | Not supported |
بناء الجملة
audioObject.error.code
قيمة الإرجاع
Type | Description |
---|---|
Number | The code property of the MediaError Object returns a number representing the error state of the audio:
|
❮ كائن صوتي