အသံပိုင်းဆိုင်ရာ အမှားအယွင်း ပိုင်ဆိုင်မှု
ဥပမာ
အသံတစ်ခု၏ အမှားအယွင်းအခြေအနေကို ရယူပါ-
var x = document.getElementById("myAudio").error.code;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အမှားပစ္စည်သည် MediaError အရာဝတ္ထုကို ပြန်ပေးသည်။
MediaError အရာဝတ္တုတွင် အသံ၏အမှားအယွင်းအခြေအနေပါရှိသော ကုဒ်ပိုင်ဆိုင်မှုတစ်ခုရှိသည်။
မှတ်ချက်- ဤပိုင်ဆိုင်မှုသည် ဖတ်ရန်သာဖြစ်သည်။
Browser ပံ့ပိုးမှု
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:
|
❮ အသံအရာဝတ္ထု