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