Comments (7)
Yes, we should consider introducing VideoFrame.canCopyTo()
, especially if we end up adding more format options to VideoFrameCopyToOptions
from standards-positions.
The use case is fine and the API is better than going through a canvas (more straightforward and async by nature).
from standards-positions.
This is a draft position. Unless anyone objects within a week we will change it to the official WebKit position.
@Djuffin, we discussed this proposal and we are "supportive" with a concern around the API Design.
The one thing that would be a nice addition is having some means to synchronously detect if copying to a colorspace would be possible without first needing to call .copyTo()
(i.e., some kind of support check). We can see it's feasible to, for example, create a VideoFrame
and perform support checks by seeing if it throws... but, to us, that feels like not so great developer ergonomics.
Have you thought about adding some kind of mechanism to check what colorspaces the browser supports?
from standards-positions.
VideoFrame.allocationSize() is synchronous and it throws if conversion is not supported.
from standards-positions.
Else, for inspiration, we just introduced ClipboardItem.supports('image/svg+xml')
to the Clipboard API. A similar approach could be feasible hereβ¦
from standards-positions.
Note that WebIDL will drop dictionary member on the floor, so VideoFrame.canCopyTo() can't rely on dictionary (it could take an object
though, and then iterate over the member names that way to reject on any unknown member name... and then check the details of each that is supported.)
from standards-positions.
Closing with "support" position. Please ping us on the W3C side when there's a PR for us to review!
from standards-positions.
Related Issues (20)
- WebAssembly: JS String Builtins
- Support Video Chapter in MediaMetadata
- HTML Fullscreen Without A Gesture HOT 1
- CSSPageRule to inherit from CSSGroupingRule HOT 4
- Gyroscope, Accelerometer, Magnetometer, Motion, Orientation HOT 1
- CSS calc-size() function
- Partitioned Popins
- Support Skip-Ad media session action HOT 3
- improved styling of <details> and <summary> elements HOT 2
- Local Peer-to-Peer API HOT 1
- Timing Info for ServiceWorker static routing API
- New `trusted-types-eval` keyword for CSP script-src HOT 9
- Reference Target for Cross-Root ARIA HOT 1
- VisibilityState performance entry
- ServiceWorkerAutoPreload HOT 2
- Add a noopener-allow-popups value to COOP HOT 3
- Prioritized Task Scheduling HOT 5
- Support 'color-interpolation: linearrgb' on SVG gradients HOT 2
- Partitioning :visited links history HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from standards-positions.