Takip türü Mülk
Örnek
Metin parçasının türünü alın:
var x = document.getElementById("myTrack").kind;
x'in sonucu şöyle olabilir:
subtitles
Tanım ve Kullanım
tür özelliği, izin tür özniteliğinin değerini ayarlar veya döndürür.
tür niteliği, metin parçasının türünü belirtir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
kind | Yes | 10.0 | Not supported | Not supported | Yes |
Sözdizimi
tür özelliğini döndür:
trackObject.kind
tür özelliğini ayarlayın:
trackObject.kind = "captions|chapters|descriptions|metadata|subtitles"
Mülk değerleri
Value | Description |
---|---|
captions | The track defines translation of dialogue and sound effects (suitable for deaf users) |
chapters | The track defines chapter titles (suitable for navigating the media resource) |
descriptions | The track defines a textual description of the video content (suitable for blind users) |
metadata | The track defines content used by scripts. Not visible for the user |
subtitles | The track defines subtitles, used to display subtitles in a video |
Teknik detaylar
Geri dönüş değeri: | Metin izinin türünü temsil eden bir Dize |
---|
Daha fazla örnek
Örnek
Metin parçasının türünü ayarlayın:
document.getElementById("myTrack").kind = "chapters";
İlgili Sayfalar
HTML referansı: HTML <track> tür özelliği
❮ İzleme Nesnesi