Re: [css-houdini-drafts] Proposal: Custom functions for modifying CSS values (#857)

@tabatkins Not sure if the context is sufficiently CSS related, though is essentially the opposite of `paintWorklet`, where instead of drawing images that are not retrievable, the `Worklet`, similar to using `postTask()`, draws the images or one or more input URL's fetched (optionally only within the range of a Media Fragment URI). The basic concept is a `videoWorklet`, where similar to Web Audio API `OfflineAudioContext` `startRendering()` method which  "does not render to the audio hardware, but instead renders as quickly as possible" https://webaudio.github.io/web-audio-api/#OfflineAudioContext.

Some prior art 

- https://github.com/w3c/mediacapture-worker (largely abandoned, though from what can gather related to `createImageBitmap` being implemented)

- https://domenic.github.io/streaming-mediastreams/

Issues filed by this user at WHATWG HTML where am banned from contributing (ask those folks why, only they know; here, ask questions, not here to ask question that you like or bbe liked by you - do not care if you like the questions or not)

- https://github.com/whatwg/html/issues/2981

- https://github.com/whatwg/html/issues/2824

Similar to `paintWorklet`, can be stateless and can populate an array of `ImageBitmap`s "as quickly as possible", or, convert the output to a `MediaStream` of kind `"video"`. We can already do this for audio.

The purpose of the following link was an attempt to abstract a _single_ HTML element in an HTML `document`, the `<video>` element which interacts with browsers' internal implementation of Web Media Player C++ code (for this use case no other HTML elements or even more limited object compared to `PaintWorkletGlobalScope`); in essence, trying to play a video "offline" for the sole purpose of extracted a particular range of images to further process (record; splice; cut; edit; et al., etc.) in order to create film similar to https://creativecommons.org/about/videos/a-shared-culture and https://mirrors.creativecommons.org/movingimages/webm/ScienceCommonsJesseDylan_240p.webm in the browser (a video, or image, collage).

Proof of concept that does not actually achieve the requirement, though attempts to emulate using the capabilities of HTML `<video>` element "offline", in this case an exported JavaScript Module (which `Worklet` is purported to be based on; without also incorporating `postTask` or `taskQueue`), where it is possible to reference `document` from `globalThis` https://plnkr.co/edit/5bvp9xv0ciMYf.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/857#issuecomment-504245462 using your GitHub account

Received on Friday, 21 June 2019 00:29:35 UTC