groupId property

String get groupId

The MediaTrackSettings dictionary's groupId property is a browsing-session unique string which identifies the group of devices which includes the source for the MediaStreamTrack. This lets you determine what value was selected to comply with your specified constraints for this property's value as described in the MediaTrackConstraints.groupId property you provided when calling either MediaDevices.getUserMedia.

If needed, you can determine whether or not this constraint is supported by checking the value of MediaTrackSupportedConstraints.groupId as returned by a call to MediaDevices.getSupportedConstraints. However, typically this is unnecessary since browsers will ignore any constraints they're unfamiliar with.

Because doesn't include this information, tracks associated with a WebRTC RTCPeerConnection will never include this property.

Implementation

external String get groupId;
set groupId (String value)

Implementation

external set groupId(String value);