Video: Add WPT Test for MediaRecorder HEVC Support
Also, change the usage of createVideoFrame()
to
`createFlowingVideoStream() to resolve an issue:
For video encoding on macOS, when the second HEVC
compression session is created, and when GPU is x64
arch, MaxKeyFrameIntervalDuration
of VT may suddenly
became unsupported, this changes the encoder behaviour,
resulting CompressionCallback()
won't always be
triggered immediately when the first frames came,
So we need the video stream to constantly generate new
frames to make sure the test passes.
Bug: 40276507
Change-Id: If9a065a9c15b3cece6a2fa04c0fe5c59bbd3d1d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6008857
Reviewed-by: Dale Curtis dalecurtis@chromium.org
Commit-Queue: Sida Zhu zhusida@bytedance.com
Cr-Commit-Position: refs/heads/main@{#1381309}