pub struct HttpInput { /* private fields */ }Expand description
One explicit HTTP(S) media input.
Convert to Input with From and pass it to
FfmpegContext::builder. Existing
Input setters (set_format, codec options, …) apply after the
conversion. Conversion sets exit_on_error so a truncated body or
ResourceChanged fails the job instead of finishing as a short read.
Share a connection pool with HttpClient::input. Reconnect is off by
default (FFmpeg reconnect=0); for seekable VOD resume use
ReconnectPolicy::seekable_default.
Implementations§
Source§impl HttpInput
impl HttpInput
Sourcepub fn builder(url: impl Into<String>) -> HttpInputBuilder
pub fn builder(url: impl Into<String>) -> HttpInputBuilder
Start a one-shot builder that creates an exclusive HttpClient.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpInput
impl !UnwindSafe for HttpInput
impl Freeze for HttpInput
impl Send for HttpInput
impl Sync for HttpInput
impl Unpin for HttpInput
impl UnsafeUnpin for HttpInput
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