Skip to content

RTCSessionDescription parameters should be readonly. #573

Closed
@jan-ivar

Description

@jan-ivar

The current language implies that content can modify the local description like this:

pc.localDescription.type = "answer";

which would be a travesty (an interface as an attribute is by reference).

In light of #302 I propose we solve this by changing RTCSessionDescription's parameters to readonly, and change createOffer and createAnswer to resolve with RTCSessionDescriptionInit instead.

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