NAME
HTML::Object::DOM::MediaTrack - HTML Object
SYNOPSIS
use HTML::Object::DOM::MediaTrack;
my $this = HTML::Object::DOM::MediaTrack->new ||
die( HTML::Object::DOM::MediaTrack->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
This is a shared interface for HTML::Object::DOM::AudioTrack and HTML::Object::DOM::VideoTrack
INHERITANCE
+-----------------------+ +---------------------------+ +-------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::MediaTrack |
+-----------------------+ +---------------------------+ +-------------------------------+
METHODS
id
A string which uniquely identifies the track within the media. This ID can be used to locate a specific track within an audio track list by calling AudioTrackList
.getTrackById(). The ID can also be used as the fragment part of the URL if the media supports seeking by media fragment per the Media Fragments URI specification.
See also Mozilla documentation for audio id and See also Mozilla documentation for video id
kind
A string specifying the category into which the track falls. For example, the main audio track would have a kind of "main".
See also Mozilla documentation for audio kind and Mozilla documentation for video kind
label
A string providing a human-readable label for the track. For example, an audio commentary track for a movie might have a label of "Commentary with director John Q. Public and actors John Doe and Jane Eod." This string is empty if no label is provided.
See also Mozilla documentation for audio label and Mozilla documentation for vide label
language
A string specifying the audio track's primary language, or an empty string if unknown. The language is specified as a BCP 47 (RFC 5646) language code, such as "en-US" or "pt-BR".
See also Mozilla documentation for audio language and Mozilla documentation for video language
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
HTML::Object::DOM::AudioTrack, HTML::Object::DOM::VideoTrack
COPYRIGHT & LICENSE
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.