W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2020

Re: [mediacapture-fromelement] The sequence canvas.transferControlToOffscreen() followed by canvas.captureStream() does not appear to be specified (#84)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 Jan 2020 18:04:03 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-574299953-1579025042-sysbot+gh@w3.org>
The closest we get to consistency is Chromium implementation, although the `width` and `height` of HTML `canvas` element is not set to the `width` and `height` of the `OffscreenCanvas` before the next "microtask"

```
// the width and height of OffscreenCanvas were set in Worker thread
// the below assertions occur in main thread after posting message from Worker
console.assert(canvas.width === width && canvas.height === height, [width, height, canvas.width, canvas.height]); // (index):24 Assertion failed: (4) [499, 259, 300, 150]
```

Nightly support for `canvas` attribute at `ImageBitmapRenderingContext` is WIP (https://bugzilla.mozilla.org/show_bug.cgi?id=1603339; https://plnkr.co/edit/eXESuVqOp5J9AAAft07E?p=preview include `console.log(ctx.canvas)` at line #17). 

Need to go through all of the tests that ran one by one before posting a comprehensive list of the issues that encountered at Chromium and Nightly, respectively.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/84#issuecomment-574299953 using your GitHub account
Received on Tuesday, 14 January 2020 18:04:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:36 UTC