Get the label of the text track:
The result of x could be:
The label property sets or returns the value of the label attribute of the track.
The label attribute specifies the label/title of the text track.
The title of the text track is used by the browser when listing available text tracks.
The label property is supported Internet Explorer, Opera, and Chrome.
Note: The label property is not supported in Firefox, Safari or Internet Explorer 9 and earlier versions.
Return the label property:
Set the label property:
Value | Description |
---|---|
label | Specifies the label/title of the text track |
Return Value: | A String, representing the label/title of the text track |
---|
Set the label of text track:
HTML reference: HTML <track> label attribute