docs: 📝 add example to readme
This commit is contained in:
parent
96a837755d
commit
d3de9ed8c8
3 changed files with 2 additions and 5 deletions
|
@ -1,2 +1,4 @@
|
|||
# rust_webrtc
|
||||
|
||||
<img src=assets/example.png>
|
||||
|
||||
|
|
BIN
assets/example.png
Normal file
BIN
assets/example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
|
@ -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)))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue