pub struct Video<Dom: Dom = DefaultDom, Mutability = Mut>(/* private fields */);
Expand description
The HTML video element
The HTML Video element (<video>
) embeds a media player which
supports video playback into the document.
Implementations§
source§impl<Dom: Dom> Video<Dom>
impl<Dom: Dom> Video<Dom>
sourcepub fn autoplay<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
pub fn autoplay<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
The autoplay
attribute
If specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.
Note: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control. See our autoplay guide for additional information about how to properly use autoplay.
To disable video autoplay, autoplay=“false” will not work; the video
will autoplay if the attribute is there in the <video>
tag
at all. To remove autoplay, the attribute needs to be
removed altogether.
sourcepub fn buffered<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn buffered<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The buffered
attribute
An attribute you can read to determine the time ranges of the buffered media. This attribute contains a TimeRanges object.
sourcepub fn controls<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
pub fn controls<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
The controls
attribute
If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.
sourcepub fn crossorigin<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
pub fn crossorigin<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
The crossorigin
attribute
This enumerated attribute indicates whether to use CORS to fetch the
related image. CORS-enabled resources can be reused in the
<canvas>
element without being tainted. The allowed values
are:
anonymous
: Sends a cross-origin request without a credential. In other words, it sends theOrigin: HTTP
header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting theAccess-Control-Allow-Origin: HTTP
header), the image will be tainted, and its usage restricted.use-credentials
: Sends a cross-origin request with a credential. In other words, it sends the Origin: HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (throughAccess-Control-Allow-Credentials: HTTP
header), the image will be tainted and its usage restricted.
When not present, the resource is fetched without a CORS request
(i.e. without sending the Origin: HTTP
header), preventing
its non-tainted used in <canvas>
elements. If invalid, it
is handled as if the enumerated keyword anonymous was used.
sourcepub fn current_time<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
pub fn current_time<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
The currentTime
attribute
Reading currentTime returns a double-precision floating-point value indicating the current playback position of the media specified in seconds. If the media has not started playing yet, the time offset at which it will begin is returned. Setting currentTime sets the current playback position to the given time and seeks the media to that position if the media is currently loaded.
If the media is being streamed, it’s possible that the user agent may not be able to obtain some parts of the resource if that data has expired from the media buffer. Other media may have a media timeline that doesn’t start at 0 seconds, so setting currentTime to a time before that would fail. The getStartDate() method can be used to determine the beginning point of the media timeline’s reference frame.
sourcepub fn height<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn height<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The height
attribute
The height of the video’s display area, in CSS pixels (absolute values only; no percentages.)
sourcepub fn loop<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
pub fn loop<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
The loop
attribute
If specified, the browser will automatically seek back to the start upon reaching the end of the video.
sourcepub fn muted<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
pub fn muted<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
The muted
attribute
Indicates the default setting of the audio contained in the video. If set, the audio will be initially silenced. Its default value is false, meaning that the audio will be played when the video is played.
sourcepub fn playsinline<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<bool>,
pub fn playsinline<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<bool>,
The playsinline
attribute
Indicating that the video is to be played “inline”, that is within the element’s playback area. Note that the absence of this attribute does not imply that the video will always be played in fullscreen.
sourcepub fn poster<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn poster<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The poster
attribute
A URL for an image to be shown while the video is downloading. If this attribute isn’t specified, nothing is displayed until the first frame is available, then the first frame is shown as the poster frame.
sourcepub fn preload<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn preload<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The preload
attribute
This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience with regards to what content is loaded before the video is played. It may have one of the following values:
none
: Indicates that the video should not be preloaded.metadata
: Indicates that only video metadata (e.g. length) is fetched.auto
: Indicates that the whole video file can be downloaded, even if the user is not expected to use it.- empty string: Synonym of the auto value.
The default value is different for each browser. The spec advises it to be set to metadata.
Note:
The autoplay attribute has precedence over preload. If autoplay is specified, the browser would obviously need to start downloading the video for playback. > The specification does not force the browser to follow the value of this attribute; it is a mere hint.
sourcepub fn src<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn src<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The src
attribute
The URL of the video to embed. This is optional; you may instead use
the <source>
element within the video block to specify the
video to embed.
sourcepub fn width<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
pub fn width<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The width
attribute
The width of the video’s display area, in CSS pixels (absolute values only; no percentages).
pub fn on_enterpictureinpicture( self, f: impl FnMut(Event, HtmlVideoElement) + 'static ) -> Self
pub fn on_leavepictureinpicture( self, f: impl FnMut(Event, HtmlVideoElement) + 'static ) -> Self
source§impl<InitParam, Dom> Video<Template<InitParam, Dom>>where
Dom: InstantiableDom,
InitParam: 'static,
impl<InitParam, Dom> Video<Template<InitParam, Dom>>where
Dom: InstantiableDom,
InitParam: 'static,
pub fn on_instantiate( self, f: impl 'static + Fn(Video<Dom>, &InitParam) -> Video<Dom> ) -> Self
source§impl<InitParam, Dom> Video<Template<InitParam, Dom>, Const>where
Dom: InstantiableDom,
InitParam: 'static,
impl<InitParam, Dom> Video<Template<InitParam, Dom>, Const>where
Dom: InstantiableDom,
InitParam: 'static,
pub fn instantiate(&self, param: &InitParam) -> Video<Dom>
Trait Implementations§
source§impl<Dom: Dom> AriaElement for Video<Dom>
impl<Dom: Dom> AriaElement for Video<Dom>
source§fn role<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn role<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_activedescendant<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_activedescendant<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_atomic<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_atomic<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_autocomplete<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_autocomplete<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_braillelabel<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_braillelabel<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_brailleroledescription<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_brailleroledescription<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_busy<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_busy<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_checked<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_checked<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_colcount<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<i64>,
fn aria_colcount<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<i64>,
source§fn aria_colindex<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
fn aria_colindex<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_colindextext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_colindextext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_colspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
fn aria_colspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_controls<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_controls<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_current<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_current<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_describedby<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_describedby<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_description<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_description<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_details<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_details<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_disabled<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_disabled<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_errormessage<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_errormessage<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_expanded<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_expanded<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_flowto<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_flowto<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_haspopup<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_haspopup<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_invalid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_invalid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_keyshortcuts<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_keyshortcuts<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_label<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_label<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_labelledby<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_labelledby<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_level<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
fn aria_level<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_live<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_live<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_modal<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_modal<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_multiline<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_multiline<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_multiselectable<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_multiselectable<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_orientation<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_orientation<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_owns<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_owns<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_placeholder<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_placeholder<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_posinset<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
fn aria_posinset<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_pressed<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_pressed<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_readonly<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_readonly<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_relevant<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_relevant<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_required<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_required<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_roledescription<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_roledescription<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_rowcount<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<i64>,
fn aria_rowcount<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<i64>,
source§fn aria_rowindex<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
fn aria_rowindex<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_rowindextext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_rowindextext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_rowspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
fn aria_rowspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<u64>,
source§fn aria_selected<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_selected<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_setsize<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<i64>,
fn aria_setsize<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<i64>,
source§fn aria_sort<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn aria_sort<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn aria_valuemax<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
fn aria_valuemax<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
source§fn aria_valuemin<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
fn aria_valuemin<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
source§fn aria_valuenow<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
fn aria_valuenow<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<f64>,
source§fn aria_valuetext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn aria_valuetext<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§impl<Dom: Dom> Element for Video<Dom>
impl<Dom: Dom> Element for Video<Dom>
type Dom = Dom
type DomElement = HtmlVideoElement
source§fn class<'a, T>(self, class: impl RefSignalOrValue<'a, Item = T>) -> Self
fn class<'a, T>(self, class: impl RefSignalOrValue<'a, Item = T>) -> Self
source§fn classes<'a, T, Iter>(
self,
classes: impl RefSignalOrValue<'a, Item = Iter>
) -> Self
fn classes<'a, T, Iter>( self, classes: impl RefSignalOrValue<'a, Item = Iter> ) -> Self
source§fn attribute<'a>(
self,
name: &str,
value: impl RefSignalOrValue<'a, Item = impl Attribute>
) -> Self
fn attribute<'a>( self, name: &str, value: impl RefSignalOrValue<'a, Item = impl Attribute> ) -> Self
source§fn style_property<'a>(
self,
name: impl Into<String>,
value: impl RefSignalOrValue<'a, Item = impl AsRef<str> + 'a>
) -> Self
fn style_property<'a>( self, name: impl Into<String>, value: impl RefSignalOrValue<'a, Item = impl AsRef<str> + 'a> ) -> Self
source§fn effect(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
fn effect(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
source§fn effect_signal<T: 'static>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Fn(&Self::DomElement, T) + Clone + 'static
) -> Self
fn effect_signal<T: 'static>( self, sig: impl Signal<Item = T> + 'static, f: impl Fn(&Self::DomElement, T) + Clone + 'static ) -> Self
source§fn map_element(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
fn map_element(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
source§fn map_element_signal<T: 'static>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Fn(&Self::DomElement, T) + Clone + 'static
) -> Self
fn map_element_signal<T: 'static>( self, sig: impl Signal<Item = T> + 'static, f: impl Fn(&Self::DomElement, T) + Clone + 'static ) -> Self
source§fn handle(&self) -> ElementHandle<Self::Dom, Self::DomElement>
fn handle(&self) -> ElementHandle<Self::Dom, Self::DomElement>
source§impl<Dom: Dom> ElementEvents for Video<Dom>
impl<Dom: Dom> ElementEvents for Video<Dom>
fn on_animationcancel( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationend( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationiteration( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationstart( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_auxclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_blur(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self
fn on_click(self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static) -> Self
fn on_compositionend( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_compositionstart( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_compositionupdate( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_dblclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_focusin( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self
fn on_focusout( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self
fn on_focus(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self
fn on_fullscreenchange( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self
fn on_fullscreenerror( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self
fn on_gotpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_keydown( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self
fn on_keyup( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self
fn on_lostpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_mousedown( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseenter( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseleave( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mousemove( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseout( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseover( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseup( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_pointercancel( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerdown( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerenter( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerleave( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointermove( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerout( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerover( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerrawupdate( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerup( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_transitioncancel( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionend( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionrun( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionstart( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_scroll(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_scrollend(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_securitypolicyviolation( self, f: impl FnMut(SecurityPolicyViolationEvent, Self::DomElement) + 'static ) -> Self
fn on_touchcancel( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchend( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchmove( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchstart( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_wheel(self, f: impl FnMut(WheelEvent, Self::DomElement) + 'static) -> Self
fn on_copy(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_cut(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_paste(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
source§impl<Dom: Dom> HtmlElement for Video<Dom>
impl<Dom: Dom> HtmlElement for Video<Dom>
source§fn accesskey<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn accesskey<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn autocapitalize<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn autocapitalize<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn autofocus<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
fn autofocus<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<bool>,
source§fn contenteditable<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
fn contenteditable<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Selfwhere
T: AsAttribute<String>,
source§fn dir<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn dir<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn draggable<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn draggable<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn enterkeyhint<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn enterkeyhint<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn exportparts<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn exportparts<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn id<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn id<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn inputmode<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn inputmode<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn is<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn is<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn itemid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn itemid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn itemprop<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn itemprop<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn itemref<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn itemref<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn itemscope<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn itemscope<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn itemtype<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn itemtype<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn lang<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn lang<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn nonce<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn nonce<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn part<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn part<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn slot<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn slot<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn spellcheck<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn spellcheck<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn style<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn style<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn tabindex<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<i32>,
fn tabindex<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<i32>,
source§fn title<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn title<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§fn translate<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn translate<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
source§impl<Dom: Dom> HtmlElementEvents for Video<Dom>
impl<Dom: Dom> HtmlElementEvents for Video<Dom>
fn on_beforeinput( self, f: impl FnMut(InputEvent, Self::DomElement) + 'static ) -> Self
fn on_change(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_error(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_input(self, f: impl FnMut(InputEvent, Self::DomElement) + 'static) -> Self
fn on_drag(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self
fn on_dragend( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragenter( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragleave( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragover( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragstart( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_drop(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self
fn on_load(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
source§impl<Dom: Dom> ParentElement<Dom> for Video<Dom>
impl<Dom: Dom> ParentElement<Dom> for Video<Dom>
source§fn text<'a, T>(self, child: impl RefSignalOrValue<'a, Item = T>) -> Self
fn text<'a, T>(self, child: impl RefSignalOrValue<'a, Item = T>) -> Self
source§fn child(self, child: impl SignalOrValue<Item = impl ChildNode<Dom>>) -> Self
fn child(self, child: impl SignalOrValue<Item = impl ChildNode<Dom>>) -> Self
source§fn optional_child(
self,
child: impl SignalOrValue<Item = Option<impl ChildNode<Dom>>>
) -> Self
fn optional_child( self, child: impl SignalOrValue<Item = Option<impl ChildNode<Dom>>> ) -> Self
source§fn children<N>(self, children: impl IntoIterator<Item = N>) -> Self
fn children<N>(self, children: impl IntoIterator<Item = N>) -> Self
impl<Dom: Dom, Mutability> Value for Video<Dom, Mutability>
Auto Trait Implementations§
impl<Dom, Mutability> Freeze for Video<Dom, Mutability>where
<Dom as Dom>::Element: Freeze,
impl<Dom = Dry, Mutability = Mut> !RefUnwindSafe for Video<Dom, Mutability>
impl<Dom = Dry, Mutability = Mut> !Send for Video<Dom, Mutability>
impl<Dom = Dry, Mutability = Mut> !Sync for Video<Dom, Mutability>
impl<Dom, Mutability> Unpin for Video<Dom, Mutability>
impl<Dom = Dry, Mutability = Mut> !UnwindSafe for Video<Dom, Mutability>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'a, T> RefSignalOrValue<'a> for Twhere
T: RefValue<'a> + 'a,
impl<'a, T> RefSignalOrValue<'a> for Twhere
T: RefValue<'a> + 'a,
§type Map<'b: 'a, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b, R: RefSignalOrValue<'b, Item = R> + 'b> = R
type Map<'b: 'a, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b, R: RefSignalOrValue<'b, Item = R> + 'b> = R
§type Signal = Always<<T as RefSignalOrValue<'a>>::Item>
type Signal = Always<<T as RefSignalOrValue<'a>>::Item>
Always
for value types.