build

Constructs the MediaStream based on the provided properties.

Return

An instance of MediaStream.

Throws

If the configuration for MediaStream is invalid.