librtmp2 0.1.1

librtmp2 — RTMP/RTMPS protocol library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Publish flow
//!
//! Mirrors `src/session/publish.h` and `src/session/publish.c`.

use super::stream::Stream;
use crate::types::Result;

/// Begin publishing on a stream.
pub fn publish_begin(stream: &mut Stream, _stream_key: &str) -> Result<()> {
    stream.is_publishing = true;
    Ok(())
}