Compare commits
No commits in common. "823f1313aff40500b17272ce4deff6a620c39811" and "a5b71969ae00afc518357d8af866b0ab9eb667c9" have entirely different histories.
823f1313af
...
a5b71969ae
4 changed files with 11 additions and 29 deletions
|
@ -39,10 +39,10 @@ Some utility commands:
|
||||||
openssl
|
openssl
|
||||||
gst_all_1.gstreamer
|
gst_all_1.gstreamer
|
||||||
gst_all_1.gst-plugins-base
|
gst_all_1.gst-plugins-base
|
||||||
# gst_all_1.gst-plugins-good
|
gst_all_1.gst-plugins-good
|
||||||
gst_all_1.gst-plugins-bad # contains gst-webrtc
|
gst_all_1.gst-plugins-bad # contains gst-webrtc
|
||||||
gst_all_1.gst-plugins-ugly # contains x264enc
|
gst_all_1.gst-plugins-ugly
|
||||||
# gst_all_1.gst-plugins-rs #contains whipclientsink
|
gst_all_1.gst-plugins-rs
|
||||||
mediamtx
|
mediamtx
|
||||||
];
|
];
|
||||||
cargoHash = nixpkgs.lib.fakeHash;
|
cargoHash = nixpkgs.lib.fakeHash;
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
webrtcAdditionalHosts: [localhost, 0.0.0.0, 127.0.0.1, 10.0.0.114]
|
|
||||||
|
|
||||||
logLevel: debug
|
|
||||||
webrtcLocalTCPAddress: :8188
|
|
||||||
api: yes
|
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
mystream:
|
mystream:
|
||||||
source: publisher
|
source: publisher
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
api: no
|
|
||||||
apiAddress: :9997
|
|
||||||
apiEncryption: no
|
|
||||||
|
|
||||||
paths:
|
|
||||||
mystream:
|
|
||||||
source: publisher
|
|
||||||
|
|
||||||
webrtc: yes
|
|
||||||
webrtcAddress: :8889
|
|
||||||
webrtcLocalUDPAddress: :8189
|
|
||||||
webrtcEncryption: no
|
|
15
src/main.rs
15
src/main.rs
|
@ -2,6 +2,7 @@ use std::sync::{atomic::AtomicBool, Arc};
|
||||||
|
|
||||||
use anyhow::Error;
|
use anyhow::Error;
|
||||||
use gstreamer::{prelude::*, Element, ElementFactory, Pipeline, State};
|
use gstreamer::{prelude::*, Element, ElementFactory, Pipeline, State};
|
||||||
|
use tracing::info;
|
||||||
use gstrswebrtc::{signaller::Signallable, webrtcsink::WhipWebRTCSink};
|
use gstrswebrtc::{signaller::Signallable, webrtcsink::WhipWebRTCSink};
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +22,6 @@ fn main() -> Result<(), Error> {
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
gstreamer::init()?;
|
gstreamer::init()?;
|
||||||
gstrswebrtc::plugin_register_static()?;
|
|
||||||
|
|
||||||
let pipeline = Pipeline::with_name("rstp-pipeline");
|
let pipeline = Pipeline::with_name("rstp-pipeline");
|
||||||
|
|
||||||
|
@ -36,12 +36,13 @@ fn main() -> Result<(), Error> {
|
||||||
.name("whip-sink_123059")
|
.name("whip-sink_123059")
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
if let Some(whipsink) = whipsink.dynamic_cast_ref::<gstrswebrtc::webrtcsink::WhipWebRTCSink>() {
|
// THIS IS THE LINE CAUSING THE ERROR
|
||||||
let signaller = whipsink.property::<Signallable>("signaller");
|
if let Some(whipsink) = whipsink.dynamic_cast_ref::<WhipWebRTCSink>() {
|
||||||
signaller.set_property_from_str(
|
//let signaller = whipsink.property::<Signallable>("signaller");
|
||||||
"whip-endpoint",
|
//signaller.set_property_from_str(
|
||||||
&format!("http://localhost:{}/{}/whip", 8889, "mystream"),
|
// "whip-endpoint",
|
||||||
);
|
// &format!("http://localhost:{}/whip_sink/{}", 8889, "mystream"),
|
||||||
|
//);
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline.add_many([&source, &convert, &whipsink]).unwrap();
|
pipeline.add_many([&source, &convert, &whipsink]).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue