blob: ce369568362b01c9ec1141472b6828fcf30370ee [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Project,"
NAME = "video_WebRtcCamera"
PURPOSE = "Test getUserMedia camera acquisition and that we get sane video"
CRITERIA = "This test will fail if WebRTC getUserMedia fails"
ATTRIBUTES = "suite:av_webcam"
TEST_CATEGORY = "Performance"
TEST_CLASS = "video"
TEST_TYPE = "client"
"labels": ["OS-Chrome"],
"components": ["OS>Kernel>Video"],
DOC = """
This test makes WebRTC GetUserMedia call and renders the camera's media
stream in a video tag. It uses the real webcam on the device.
This test will test VGA and 720p (if supported by the device) and check
if the gUM call succeeds.
The test also logs the number of black frames and frozen frames to perf
(there should not be many such frames). Those performance statistics
should be monitored in the perf dashboard; many frozen or black frames
mean that the gUM call succeeded, but the CrOS device fails to deliver
sane video frames.
job.run_test("video_WebRtcCamera", capability=capability)