blob: e461dd90004ebbb9d1f44ad365269480967ef65d [file] [log] [blame]
Tests MediaStreamTrack.getSettings.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
video track settings:
settings.deviceId = <UUID>
settings.facingMode = user
settings.frameRate = 30
settings.height = 480
settings.width = 640
audio track settings:
settings.deviceId = <UUID>
settings.echoCancellation = true
settings.sampleRate = 44100
settings.volume = 1
According to the spec: "[every setting] MUST be a member of the set defined for that property by getCapabilities()"
PASS "deviceId" in track.getCapabilities() is true
PASS "facingMode" in track.getCapabilities() is true
PASS "frameRate" in track.getCapabilities() is true
PASS "height" in track.getCapabilities() is true
PASS "width" in track.getCapabilities() is true
PASS "deviceId" in track.getCapabilities() is true
PASS "echoCancellation" in track.getCapabilities() is true
PASS "sampleRate" in track.getCapabilities() is true
PASS "volume" in track.getCapabilities() is true
Validate sampleRate constraints appears correctly in track settings
audio track settings:
settings.deviceId = <UUID>
settings.echoCancellation = true
settings.sampleRate = 48000
settings.volume = 1
PASS successfullyParsed is true
TEST COMPLETE