HTML Ses/Video DOM addTextTrack() Yöntemi
❮ HTML Ses/Video DOM Referansı
Örnek
Videoya yeni bir metin parçası ekleyin:
var
text1 = myVid.addTextTrack("caption");
text1.addCue(new TextTrackCue("Test text", 01.000, 04.000, "", "", "", true));
Tanım ve Kullanım
addTextTrack() yöntemi, yeni bir TextTrack nesnesi oluşturur ve döndürür.
Yeni TextTrack nesnesi, ses/video öğesi için metin parçaları listesine eklenir.
Tarayıcı Desteği
Method | |||||
---|---|---|---|---|---|
addTextTrack() | Not supported | Not supported | Not supported | Not supported | Not supported |
Sözdizimi
audio|video.addTextTrack(kind,label,language)
Parametre Değerleri
Value | Description |
---|---|
kind | Specifies the kind of text track. Possible values:
|
label | A string specifying the label for the text track. Is used to identify the text track for the users |
language | A two-letter language code that specifies the language of the text track. To view all available language codes, go to our Language code reference |
Teknik detaylar
Geri dönüş değeri: | Yeni metin izini temsil eden bir TextTrack Nesnesi |
---|
❮ HTML Ses/Video DOM Referansı