pub struct SimpleRtmpStreamingBuilder { /* private fields */ }Expand description
Builder for a conventional H.264/AAC RTMP stream.
Implementations§
Source§impl SimpleRtmpStreamingBuilder
impl SimpleRtmpStreamingBuilder
pub fn new( context: ObsContext, name: impl Into<ObsString>, server: impl Into<String>, stream_key: impl Into<String>, ) -> Self
pub fn video_bitrate(self, bitrate_kbps: u32) -> Self
pub fn audio_bitrate(self, bitrate_kbps: u32) -> Self
Sourcepub fn prefer_hardware_video(self, prefer: bool) -> Self
pub fn prefer_hardware_video(self, prefer: bool) -> Self
Controls whether hardware H.264 encoders are ranked ahead of software encoders. Software remains available as a fallback either way.
Sourcepub fn build(self) -> Result<ObsOutputRef, ObsError>
pub fn build(self) -> Result<ObsOutputRef, ObsError>
Discovers, configures, validates, and creates the complete RTMP output graph.
Calling this does not start network I/O; use libobs_wrapper::data::output::ObsOutputTrait::start
when the application is ready to stream.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SimpleRtmpStreamingBuilder
impl Freeze for SimpleRtmpStreamingBuilder
impl Move for SimpleRtmpStreamingBuilder
impl RefUnwindSafe for SimpleRtmpStreamingBuilder
impl Send for SimpleRtmpStreamingBuilder
impl Sync for SimpleRtmpStreamingBuilder
impl Unpin for SimpleRtmpStreamingBuilder
impl UnsafeUnpin for SimpleRtmpStreamingBuilder
impl UnwindSafe for SimpleRtmpStreamingBuilder
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
Mutably borrows from an owned value. Read more