pub struct GetVideoLinkParams<'a> {
pub audio_bit_rate: Option<u16>,
pub video_bit_rate: Option<u32>,
pub resolution: Option<Cow<'a, str>>,
pub fixed_bit_rate: bool,
}
Expand description
Parameters for retrieving a video file link, including options for controlling the audio bit rate, video bit rate, resolution, and fixed bitrate streaming.
Fields§
§audio_bit_rate: Option<u16>
Audio bit rate in kilobits per second (from 16 to 320).
video_bit_rate: Option<u32>
Video bit rate in kilobits per second (from 16 to 4000).
resolution: Option<Cow<'a, str>>
Resolution of the video in the format WIDTHxHEIGHT (e.g., 1280x960), with a range of 64x64 to 1280x960.
fixed_bit_rate: bool
If set to true, disables adaptive streaming and forces the video stream to have a constant bitrate.
Implementations§
Source§impl<'a> GetVideoLinkParams<'a>
impl<'a> GetVideoLinkParams<'a>
Sourcepub fn set_audio_bit_rate(&mut self, value: u16)
pub fn set_audio_bit_rate(&mut self, value: u16)
Sets the audio bit rate for the video link.
§Arguments
value
- Audio bit rate in kilobits per second (from 16 to 320).
Sourcepub fn with_audio_bit_rate(self, value: u16) -> Self
pub fn with_audio_bit_rate(self, value: u16) -> Self
Sets the audio bit rate and returns the updated GetVideoLinkParams
object.
§Arguments
value
- Audio bit rate in kilobits per second (from 16 to 320).
Sourcepub fn set_video_bit_rate(&mut self, value: u32)
pub fn set_video_bit_rate(&mut self, value: u32)
Sets the video bit rate for the video link.
§Arguments
value
- Video bit rate in kilobits per second (from 16 to 4000).
Sourcepub fn with_video_bit_rate(self, value: u32) -> Self
pub fn with_video_bit_rate(self, value: u32) -> Self
Sets the video bit rate and returns the updated GetVideoLinkParams
object.
§Arguments
value
- Video bit rate in kilobits per second (from 16 to 4000).
Sourcepub fn set_resolution(&mut self, value: impl Into<Cow<'a, str>>)
pub fn set_resolution(&mut self, value: impl Into<Cow<'a, str>>)
Sets the resolution for the video link.
§Arguments
value
- The resolution in the format WIDTHxHEIGHT (e.g., 1280x960).
Sourcepub fn with_resolution(self, value: impl Into<Cow<'a, str>>) -> Self
pub fn with_resolution(self, value: impl Into<Cow<'a, str>>) -> Self
Sets the resolution and returns the updated GetVideoLinkParams
object.
§Arguments
value
- The resolution in the format WIDTHxHEIGHT (e.g., 1280x960).
Sourcepub fn set_fixed_bit_rate(&mut self, value: bool)
pub fn set_fixed_bit_rate(&mut self, value: bool)
Sets the fixed_bit_rate
flag.
§Arguments
value
- A boolean indicating whether the video should have a fixed bitrate.
Sourcepub fn with_fixed_bit_rate(self, value: bool) -> Self
pub fn with_fixed_bit_rate(self, value: bool) -> Self
Sets the fixed_bit_rate
flag and returns the updated GetVideoLinkParams
object.
§Arguments
value
- A boolean indicating whether the video should have a fixed bitrate.