Skip to content

Should the README whip example be using 'sendonly' tracks? #19

Description

@cameronelliott

The readme example is currently:

//Send all tracks
for (const track of stream.getTracks()) {
	//You could add simulcast too here
	pc.addTrack(track);
}

But maybe it should be:

//Send all tracks
for (const track of stream.getTracks()) {
	//You could add simulcast too here
	pc.addTransceiver(track, { 'direction': 'sendonly' })
}

The RFC draft states 'SHOULD' for having sendonly transcievers.

Let me know if you want a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions