1# Copyright 2015 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5AUTHOR = "Chrome OS Project, chromeos-video@google.com" 6NAME = "video_WebRtcCamera" 7PURPOSE = "Test getUserMedia camera acquisition and that we get sane video" 8CRITERIA = "This test will fail if WebRTC getUserMedia fails" 9ATTRIBUTES = "suite:av_webcam" 10TIME = "MEDIUM" 11TEST_CATEGORY = "Performance" 12TEST_CLASS = "video" 13TEST_TYPE = "client" 14DEPENDENCIES = "webcam" 15BUG_TEMPLATE = { 16 "labels": ["OS-Chrome"], 17 "components": ["OS>Kernel>Video"], 18} 19 20DOC = """ 21This test makes WebRTC GetUserMedia call and renders the camera's media 22stream in a video tag. It uses the real webcam on the device. 23 24This test will test VGA and 720p (if supported by the device) and check 25if the gUM call succeeds. 26 27The test also logs the number of black frames and frozen frames to perf 28(there should not be many such frames). Those performance statistics 29should be monitored in the perf dashboard; many frozen or black frames 30mean that the gUM call succeeded, but the CrOS device fails to deliver 31sane video frames. 32""" 33 34job.run_test("video_WebRtcCamera") 35