haikuwebkit/LayoutTests/webrtc/video-rotation-no-cvo.html

43 lines
1.6 KiB
HTML
Raw Permalink Normal View History

Reenable GPUProcess Media flag in WebRTC tests https://bugs.webkit.org/show_bug.cgi?id=221911 Reviewed by Eric Carlson. * platform/mac-wk2/TestExpectations: * platform/mac/webrtc/captureCanvas-webrtc-software-encoder.html: * webrtc/captureCanvas-webrtc-software-h264-baseline.html: * webrtc/captureCanvas-webrtc-software-h264-high.html: * webrtc/captureCanvas-webrtc.html: * webrtc/concurrentVideoPlayback2.html: * webrtc/direction-change.html: * webrtc/disable-encryption.html: * webrtc/h264-baseline.html: * webrtc/h264-high.html: * webrtc/multi-audio.html: * webrtc/multi-video.html: * webrtc/peer-connection-track-end.html: * webrtc/peerconnection-page-cache-long.html: * webrtc/peerconnection-page-cache.html: * webrtc/remove-track.html: * webrtc/utf8-sdp.html: * webrtc/video-addTrack.html: * webrtc/video-addTransceiver.html: * webrtc/video-autoplay.html: * webrtc/video-disabled-black.html: * webrtc/video-h264.html: * webrtc/video-interruption.html: * webrtc/video-mediastreamtrack-stats.html: * webrtc/video-mute.html: * webrtc/video-remote-mute.html: * webrtc/video-replace-muted-track.html: * webrtc/video-replace-track-to-null.html: * webrtc/video-replace-track.html: * webrtc/video-rotation-no-cvo.html: * webrtc/video-rotation.html: * webrtc/video-setDirection.html: * webrtc/video-sframe.html: * webrtc/video-stats.html: * webrtc/video-unmute.html: * webrtc/video-with-data-channel.html: * webrtc/video.html: Canonical link: https://commits.webkit.org/234145@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@272912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-02-16 18:04:28 +00:00
<!-- webkit-test-runner [ CaptureVideoInUIProcessEnabled=true ] -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Testing video rotation without CVO</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
<video id="localVideo" autoplay playsInline width="320" height="240"></video>
<video id="remoteVideo" autoplay playsInline width="320" height="240"></video>
<script src ="routines.js"></script>
<script>
promise_test(async (test) => {
const localStream = await navigator.mediaDevices.getUserMedia({ video: { width: 320, height: 240 } });
if (window.testRunner)
window.testRunner.setMockCameraOrientation(90);
localVideo.srcObject = localStream;
const remoteStream = await new Promise((resolve, reject) => {
track = localStream.getVideoTracks()[0];
createConnections((firstConnection) => {
firstConnection.addTrack(track, localStream);
if (window.internals)
internals.applyRotationForOutgoingVideoSources(firstConnection);
}, (secondConnection) => {
secondConnection.ontrack = (trackEvent) => {
resolve(trackEvent.streams[0]);
};
});
setTimeout(() => reject("Test timed out"), 5000);
});
remoteVideo.srcObject = remoteStream;
await remoteVideo.play();
await waitForVideoSize(remoteVideo, 240, 320);
}, "Testing video exchange with rotation applied before transmission");
</script>
</body>
</html>