pub trait VideoSourceExt: 'static {
    fn natural_size(&self) -> Option<(i32, i32)>;
Expand description

Required Methods§

Available on crate feature v1_18 only.

Retrieves the natural size of the video stream. The natural size, is the size at which it will be displayed if no scaling is being applied.

NOTE: The sources take into account the potential video rotation applied by the videoflip element that is inside the source, effects applied on the clip which potentially also rotate the element are not taken into account.


true if the object has a natural size, false otherwise.


The natural width of the underlying source


The natural height of the underlying source