w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
978 stars 136 forks source link

Is there an interface demo here , not an instruction document ? #392

Closed yangfangfang1204 closed 2 years ago

yangfangfang1204 commented 2 years ago

i know the document is in https://w3c.github.io/webcodecs/,so there is demo about how to use the webcodecs api ,such as how to use frame.VideoFrame.copyTo ?

aboba commented 2 years ago

See the samples folder. Also, there is a demo written using WHATWG streams API here.

chcunningham commented 2 years ago

The samples folder @aboba mentioned is live-hosted here https://w3c.github.io/webcodecs/samples/

yangfangfang1204 commented 2 years ago

ok ,thanks , i know the sample https://w3c.github.io/webcodecs/samples/ , Is there any other demo, such as the demo of how to use copyTo, i know the document is in https://w3c.github.io/webcodecs/ , i think read a demo is better than read the document ?

sandersdan commented 2 years ago

I don't think there is a demo of copyTo() yet, there are WPT tests that cover it though: https://github.com/web-platform-tests/wpt/blob/master/webcodecs/videoFrame-copyTo.any.js