docs: 📝 add example to readme

This commit is contained in:
Ahmet Kaan Gümüş 2025-05-13 05:35:35 +03:00
parent 96a837755d
commit d3de9ed8c8
3 changed files with 2 additions and 5 deletions

View file

@ -1,2 +1,4 @@
# rust_webrtc
<img src=assets/example.png>

BIN
assets/example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

View file

@ -43,11 +43,6 @@ pub async fn get_audio_stream() -> Result<MediaStream, Error> {
.first()
.ok_or(Error::MediaStream("Get First Media Track".to_owned()))?;
log!(
"Local Constraints = {:#?}",
audio_stream_track.get_constraints()
);
let audio_stream_track_apply_constraints_promise = audio_stream_track
.apply_constraints_with_constraints(&media_track_constraints)
.map_err(|err_val| Error::MediaStream(format!("{:?}", err_val)))?;