Piasy
Piasy

Reputation: 1009

Q: What's the difference between MediaCodecVideoEncoder and HardwareVideoEncoder in webrtc Android sdk?

I noticed that a new class HardwareVideoEncoder was introduced recently, what's the relationship between it and MediaCodecVideoEncoder? Is it planed to replace MediaCodecVideoEncoder?

Upvotes: 1

Views: 245

Answers (1)

Piasy
Piasy

Reputation: 1009

After reading commit history of WebRTC during the last two months, I think that HardwareVideoEncoder is designed as a new way to use MediaCodec.

So it should replace the older MediaCodecVideoEncoder, but not now, it's still under development and not ready yet.

Initial commit about it:

Interfaces for injectable video codecs.

These interfaces will be used by the future refactoring that will allow clients to provide custom codec implementations.

Upvotes: 1

Related Questions