| Crates.io | libmoq |
| lib.rs | libmoq |
| version | 0.2.4 |
| created_at | 2025-12-14 23:01:38.398476+00 |
| updated_at | 2026-01-12 02:17:34.303272+00 |
| description | Media over QUIC, C bindings |
| homepage | |
| repository | https://github.com/moq-dev/moq |
| max_upload_size | |
| id | 1985245 |
| size | 150,351 |
C bindings for Media over QUIC.
cargo build --release
This will:
libmoq.a on Unix-like systems, moq.lib on Windows)target/include/moq.htarget/moq.pcThere's also a CMakeLists.txt file that can be used to import/build the library.
The library exposes the following C functions, see lib.rs for full details:
int32_t moq_log_level(const char *level);
int32_t moq_session_connect(const char *url, void (*callback)(void *user_data, int32_t code), void *user_data);
int32_t moq_session_close(int32_t id);
int32_t moq_broadcast_create(void);
int32_t moq_broadcast_close(int32_t id);
int32_t moq_broadcast_publish(int32_t id, int32_t session, const char *path);
int32_t moq_track_create(int32_t broadcast, const char *format);
int32_t moq_track_close(int32_t id);
int32_t moq_track_init(int32_t id, const uint8_t *extra, uintptr_t extra_size);
int32_t moq_track_write(int32_t id, const uint8_t *data, uintptr_t data_size, uint64_t pts);