What is the streaming protocol used in Weylus? #305
-
Does it stream over HTTP or RTSP? is it a standard protocol or a custom made one? I'm currently looking for a library to stream Weylus on android https://developer.android.com/media/platform/supported-formats#network |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
BTW it felt like this is the function that throws the video packet over the wire, but not really sure // this is used as callback in lib/encode_video.c via ffmpegs AVIOContext
#[no_mangle]
fn write_video_packet(video_encoder: *mut c_void, buf: *const c_uchar, buf_size: c_int) -> c_int {
let video_encoder = unsafe { (video_encoder as *mut VideoEncoder).as_mut().unwrap() };
(video_encoder.write_data)(unsafe {
std::slice::from_raw_parts(buf as *const u8, buf_size as usize)
});
0
} |
Beta Was this translation helpful? Give feedback.
-
Weylus sends fragmented mp4 frames with one video stream encoded using the H.264 codec as binary messages over the websocket connection. See Lines 946 to 960 in d30b8b3 Lines 917 to 941 in d30b8b3 |
Beta Was this translation helpful? Give feedback.
Weylus sends fragmented mp4 frames with one video stream encoded using the H.264 codec as binary messages over the websocket connection. See
Weylus/ts/lib.ts
Lines 946 to 960 in d30b8b3