Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/bin/gstreamer.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ Both elements support the following properties:
For `http://` URLs, `moq-native` automatically fetches the server's certificate fingerprint from `/certificate.sha256` and verifies TLS against it. You don't need `tls-disable-verify` for local development.
:::

`moqsink` additionally exposes these read-only properties for monitoring:

| Property | Type | Description |
| ------------------------ | ------ | ----------------------------------------------------------- |
| `connected` | bool | Whether the publish session is currently connected |
| `moq-version` | string | The negotiated MoQ protocol version; null when disconnected |
| `estimated-send-bitrate` | uint64 | Estimated send bitrate in bits per second; 0 when unavailable |

## Prerequisites

The plugin requires GStreamer development libraries. It is **not** built by default since most users don't have them installed.
Expand Down
4 changes: 4 additions & 0 deletions rs/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ fix:
test *args:
cargo test --all-targets {{ args }}

# moq-gst is outside default-members (needs GStreamer), so `test` above skips it.
test-moq-gst *args:
cargo test -p moq-gst --all-targets {{ args }}

build:
cargo build

Expand Down
3 changes: 3 additions & 0 deletions rs/moq-gst/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ url = "2"

[build-dependencies]
gst-plugin-version-helper = "0.8"

[dev-dependencies]
gst = { package = "gstreamer", version = "0.23" }
4 changes: 2 additions & 2 deletions rs/moq-gst/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ gst::plugin_define!(
env!("CARGO_PKG_DESCRIPTION"),
plugin_init,
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
// GStreamer only loads plugins whose license string is in its recognised set. "Apache 2.0" is not,
// so the registry silently refuses the plugin. The crate is MIT OR Apache-2.0, so declare the MIT side.
// GStreamer only loads plugins whose license is in its recognised set; the crate is
// MIT OR Apache-2.0, so declare the MIT side ("Apache 2.0" is rejected and the plugin never loads).
"MIT/X11",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_NAME"),
Expand Down
Loading
Loading