Replies: 2 comments
|
This is an API gap right now, actually! The solution would be being able to pass decoder options to sinks like |
0 replies
|
This will land in the next version: #406 With it, you can do: const sink = new VideoSampleSink(track, {
hardwareAcceleration: 'prefer-hardware',
}); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to customize the configuration used by the
VideoDecoderused internally? I'd like to do something like switching thehardwareAccelerationtoprefer-hardware. Looks like I could useEncodedPacketSinkand a customVideoDecoder, but I'd lose the convenience of the async generator for handling results. There's alsoCustomVideoDecoder, but I'm not sure if it's intended for this kind of override. Is there a recommended approach for what I'm looking to do?Thanks for any help!
All reactions