elixir-webrtc / ex_webrtc

An Elixir implementation of the W3C WebRTC API
Apache License 2.0
269 stars 8 forks source link

Allow `MediaStreamTrack.t()` as a parameter to `send_rtp/3` #72

Closed srcrip closed 4 months ago

srcrip commented 4 months ago

hey, in my experimentation, this handle_cast for :send_rtp always receives a full track, not an id. This change makes everything work, but if you want it to be different feel free to edit my pr.

srcrip commented 4 months ago

Actually now that I'm looking at my code closer I realized it was in fact my fault. I was sending the track explicitly.

Since that's an easy mistake to make, would it be ok if I edit this function to accept a track or track id and just handle both appropriately?

srcrip commented 4 months ago

ok I've switched things up a bit:

LVala commented 4 months ago

Thanks for the PR! SGTM, although the non-W3C functions in the API are quite experimental and may change in future versions, so this change might not be ever released, just keep that in mind.

We'll probably get back to it and merge on Monday.