Struct silkenweb::elements::TrackBuilder [−][src]
pub struct TrackBuilder(_);
Implementations
impl TrackBuilder
[src]
impl TrackBuilder
[src]pub fn id(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
pub fn class(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
pub fn default(self, value: impl AttributeValue<bool>) -> TrackBuilder
[src]
This attribute indicates that the track should be enabled unless the user’s preferences indicate that another track is more appropriate. This may only be used on one track element per media element.
pub fn subtitles(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
How the text track is meant to be used. If omitted the default kind is subtitles. If the attribute is not present, it will use the subtitles. If the attribute contains an invalid value, it will use metadata. The following keywords are allowed: Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.
Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.
pub fn captions(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
Closed captions provide a transcription and possibly a translation of audio.
It may include important non-verbal information such as music cues or sound effects. It may indicate the cue’s source (e.g. music, text, character).
Suitable for users who are deaf or when the sound is muted.
pub fn kind(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
Textual description of the video content.
descriptions
: Suitable for users who are blind or where the video cannot be seen.chapters
: Chapter titles are intended to be used when the user is navigating the media resource.metadata
: Tracks used by scripts. Not visible to the user.label
: A user-readable title of the text track which is used by the browser when listing available text tracks.
pub fn src(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
Address of the track (.vtt file). Must be a valid URL. This attribute must be specified
and its URL value must have the same origin as the document — unless the <audio>
or
<video>
parent element of the track element has a crossorigin attribute.
pub fn srclang(self, value: impl AttributeValue<String>) -> TrackBuilder
[src]
Language of the track text data. It must be a valid BCP 47 language tag. If the kind attribute is set to subtitles, then srclang must be defined.
impl TrackBuilder
[src]
impl TrackBuilder
[src]pub fn on_blur(
self,
f: impl FnMut(FocusEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_click(
self,
f: impl FnMut(MouseEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_change(
self,
f: impl FnMut(Event, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(Event, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_dblclick(
self,
f: impl FnMut(MouseEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_focusout(
self,
f: impl FnMut(FocusEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_input(
self,
f: impl FnMut(InputEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(InputEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlTrackElement) + 'static
) -> TrackBuilder
pub fn effect(self, f: impl Effect<HtmlTrackElement>) -> TrackBuilder
[src]
Trait Implementations
impl Builder for TrackBuilder
[src]
impl Builder for TrackBuilder
[src]type Target = Track
pub fn build(self) -> <TrackBuilder as Builder>::Target
[src]
pub fn into_element(self) -> Element
[src]
impl DomElement for TrackBuilder
[src]
impl DomElement for TrackBuilder
[src]type Target = HtmlTrackElement
pub fn dom_element(&self) -> <TrackBuilder as DomElement>::Target
[src]
impl From<TrackBuilder> for ElementBuilder
[src]
impl From<TrackBuilder> for ElementBuilder
[src]pub fn from(builder: TrackBuilder) -> ElementBuilder
[src]
impl From<TrackBuilder> for Element
[src]
impl From<TrackBuilder> for Element
[src]pub fn from(builder: TrackBuilder) -> Element
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TrackBuilder
impl !RefUnwindSafe for TrackBuilder
impl !Send for TrackBuilder
impl !Send for TrackBuilder
impl !Sync for TrackBuilder
impl !Sync for TrackBuilder
impl Unpin for TrackBuilder
impl Unpin for TrackBuilder
impl !UnwindSafe for TrackBuilder
impl !UnwindSafe for TrackBuilder