HTML | DOM Track srclang property
The DOM track srclang property is used to set or return the value of the srclang attribute which shows the language of the text track.
Note: srclang attribute is required with kind = “subtitles”
- It is used to return the Track srclang property.
- It is also used to set the Track srclang property.
trackObject.srclang = language_code
- language_code: It is used to specify the language of the text track. It is a two-letter code.
Return Value: It returns language code of the track in the form of string.
Before clicking on the button:
After clicking on the button:
- Google Chrome
- Internet Explorer 10.0+
My Personal Notes arrow_drop_up
Please Login to comment...