Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Timeout in mediastream Picture-in-Picture test #631

Closed
beaufortfrancois opened this issue Nov 21, 2018 · 3 comments
Closed

Timeout in mediastream Picture-in-Picture test #631

beaufortfrancois opened this issue Nov 21, 2018 · 3 comments

Comments

@beaufortfrancois
Copy link

beaufortfrancois commented Nov 21, 2018

picture-in-picture/mediastream.html test times out in Safari. I believe it is because mediastreamVideoLoadedPromise is pending forever.

Even though <video> is marked as autoplay and <canvas> is drawn, onloadedmetadata is never fired. @jernoble is that a known issue?

  const canvas = document.createElement('canvas');
  const video = document.createElement('video');
  const mediastreamVideoLoadedPromise = new Promise((resolve, reject) => {
    canvas.getContext('2d').fillRect(0, 0, canvas.width, canvas.height);
    video.autoplay = true;
    video.srcObject = canvas.captureStream(60 /* fps */);
    video.onloadedmetadata = () => {
      resolve(video);
    };
    video.onerror = error => {
      reject(error);
    };
  });
  await mediastreamVideoLoadedPromise;
@jugglinmike
Copy link
Collaborator

This sounds like a possible test/browser bug rather than an issue in results collection. Is that right?

@beaufortfrancois
Copy link
Author

You're right. I've filed web-platform-tests/wpt#14177 instead. Sorry for this.

@jugglinmike
Copy link
Collaborator

No worries!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants