Simulcast not working with mediasoup client in android phone

I am using realme 3 android device and redmi pro 7. Video communication is working correctly but i am seeing simulcast is not working. This is code snippet

const encodings =
[
{ maxBitrate: 180000, scaleResolutionDownBy: 4 },
{ maxBitrate: 360000, scaleResolutionDownBy: 2 },
{ maxBitrate: 1500000, scaleResolutionDownBy: 1 }
];

this._camProducer = await this._sendTransport.produce(
{
track,
encodings,
codecOptions :
{
videoGoogleStartBitrate : 1000
}
});

then i am getting this callback run*.

this._sendTransport.on(
‘produce’, async ({ kind, rtpParameters, appData }, callback, errback) =>
{
try
{
const { id } = await this._protoo.request(
‘produce’,
{
transportId : this._sendTransport.id,
kind,
rtpParameters,
appData
});

					callback({ id });
				}
				catch (error)
				{
					errback(error);
				}
			});

When console logging i am gettting this output
Screenshot from 2019-12-04 18-51-04

But the same code when running in chrome browser simulcast is working. Is simulcast works in android ??

By default hardware acelerated codecs are used on Android, thus simulcast ddoesn’t work. If you switch to the software codecs you will be able to use simulcast.

In order to do that you need to initialize the plugin by hand. Here is how we do it for Jitsi Meet: https://github.com/jitsi/jitsi-meet/commit/49e3b03885bd0c00fcd9b64c2f4d6b77ad68b62a

thanks @saghul it works. But now device heats up quickly. i have enabled software mode for encoding only.
i want to know , desktop chrome browser uses hardware codec or software codec to make simulcast works??
is there any android or ios device where hardware accelerated encoding simulcast will work?

I’m afraid not. You need the software encoder for simulcast to work.

In desktop, chrome browser uses software codec for simulcast??

Yes, it uses the software codecs.