Skip to content

Should Sender replaceTrack and setTrack support receiving a null track #3

Closed
@itsthetaste

Description

@itsthetaste

I'm working on a PR for flutter-webrtc, trying to add the ability to send null into replaceTrack and setTrack, but this interface won't allow that.
Seems a simple fix, something like

Future replaceTrack(MediaStreamTrack? track);

Future setTrack(MediaStreamTrack? track, {bool takeOwnership = true});

I'll try and see if it works and submit a PR if ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions