livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
176 stars 69 forks source link

Is there any way to start with a fixed resolution? #365

Closed mhy-priv closed 8 months ago

mhy-priv commented 8 months ago

need a fixed resolution(eg: 1080x1920) and bitrate, instead of resolution change based on available bandwidth.

mhy-priv commented 8 months ago

A solution found but for Chrome:

https://groups.google.com/g/discuss-webrtc/c/3JXbvEfNYd0?pli=1

Can I set 'contentHint' of MediaStreamTrack to 'detail', to indicate "the track should be treated as if video details are extra important"? I don't know if this feature has been supported yet.

https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/contentHint

davidliu commented 8 months ago

This is controlled by the adaptiveStream option in RoomOptions. Just turn that to false (or leave it out since by default it's false).

z00174311 commented 8 months ago

This is controlled by the adaptiveStream option in RoomOptions. Just turn that to false (or leave it out since by default it's false).

I don't think this method work, and i have tried leave it out but still not work.

zmf2022 commented 8 months ago

Do you solve it?