HTML အကိုးအကား

အက္ခရာဖြင့် HTML HTML အမျိုးအစားအလိုက် HTML Browser ပံ့ပိုးမှု HTML အရည်အချင်းများ HTML ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ HTML ပွဲများ HTML အရောင်များ HTML Canvas HTML အသံ/ဗီဒီယို HTML အက္ခရာအစုံများ HTML Doctypes HTML URL ကုဒ် HTML ဘာသာစကားကုဒ်များ HTML နိုင်ငံကုဒ်များ HTTP မက်ဆေ့ခ်ျများ HTTP နည်းလမ်းများ PX မှ EM Converter ကီးဘုတ်ဖြတ်လမ်းများ


HTML အသံ/ဗီဒီယို DOM videoTracks ပိုင်ဆိုင်မှု

❮ HTML အသံ/ဗီဒီယို DOM ရည်ညွှန်းချက်

ဥပမာ

ရရှိနိုင်သော ဗီဒီယိုတေးသွားအရေအတွက်ကို ရယူပါ-

var vid = document.getElementById("myVideo");
alert(vid.videoTracks.length);

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

videoTracks ပိုင်ဆိုင်မှုသည် VideoTrackList အရာဝတ္တုကို ပြန်ပေးသည်။

VideoTrackList အရာဝတ္တုသည် ဗီဒီယိုအတွက် ရရှိနိုင်သော ဗီဒီယိုတေးသွားများကို ကိုယ်စားပြုသည်။

ရရှိနိုင်သော ဗီဒီယိုတစ်ပုဒ်စီကို VideoTrack Object တစ်ခုဖြင့် ကိုယ်စားပြုပါသည်။


Browser ပံ့ပိုးမှု

Property
videoTracks Not supported Not supported Not supported Not supported Not supported

အထားအသို

video.videoTracks

တန်ဖိုးကို ပြန်ပေးသည်။

Type Description
VideoTrackList Object Represents the available video tracks for the video.

VideoTrackList Object:

  • videoTracks.length - get the number of video tracks available in the video
  • videoTracks.getTrackById(id) - get VideoTrack object by id
  • videoTracks[index] - get VideoTrack object by index
  • videoTracks.selectedIndex - get the index of the current VideoTrack object

Note: The first available VideoTrack object is index 0

VideoTrack Object Represents a video track.

VideoTrack Object Properties:

  • id - get the id of the video track
  • kind - get the type of the video track (can be: "alternative", "captions", "main", "sign", "subtitles", "commentary", or "" (empty string)) 
  • label - get the label of the video track
  • language - get the language of the video track
  • selected - get or set if the track is active (true|false)

❮ HTML အသံ/ဗီဒီယို DOM ရည်ညွှန်းချက်