HTML Audio/Video DOM အမှား Property
❮ HTML အသံ/ဗီဒီယို DOM ရည်ညွှန်းချက်
ဥပမာ
ဗီဒီယို၏ အမှားအယွင်းအခြေအနေကို ရယူပါ-
var vid = document.getElementById("myVideo");
alert(vid.error.code);
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အမှားပစ္စည်သည် MediaError အရာဝတ္ထုကို ပြန်ပေးသည်။
MediaError အရာဝတ္ထုတွင် အသံ/ဗီဒီယို၏ အမှားအယွင်းအခြေအနေပါရှိသော ကုဒ်ပိုင်ဆိုင်မှုတစ်ခု ရှိသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
error | Not supported | 9.0 | Not supported | Not supported | Not supported |
အထားအသို
audio|video.error.code
တန်ဖိုးကို ပြန်ပေးသည်။
Type | Description |
---|---|
Number | The code property of the MediaError Object returns a number representing the error state of the audio/video:
|
❮ HTML အသံ/ဗီဒီယို DOM ရည်ညွှန်းချက်