Force Javascript SDK Resolution and FPS

107 views
Skip to first unread message

Schnee Tzel

unread,
Dec 20, 2021, 11:29:09 AM12/20/21
to Ant Media Server
Is there a way to force the resolution and fps from a browser stream ?

It appears it is tided to the video element width and height and not the mediaConstraints. Do mediaContraint play any role at this ? 

I really need to set the stream from a browser to send 720p or 1080p @30fps to the server. Can't really figure it out, seems as if the SDK is intended to be used for video chats where the Resolution and FPS don't really matter that much. My use case requires 2 resolutions to be streamed from a browser (assuming capable hardware/bandwidth), 720p@30fps and/or 1080p@30fps, which ever the streamer can do based on their upload bandwidth. 

Yash Tandon

unread,
Dec 21, 2021, 4:18:33 AM12/21/21
to Ant Media Server
Hi Schnee,
Hope you are fine.
You can check this post to change the resolution for WebRTC stream https://stackoverflow.com/questions/60210329/how-can-i-change-the-ant-media-server-webrtc-resolution

Regards,
Yash

Schnee Tzel

unread,
Dec 21, 2021, 4:33:35 AM12/21/21
to Ant Media Server

It doesn't obey the mediaConstraints, I've set it for 1080p 30fps, yet it sends out whatever resolution and fps, so quality suffers greatly. It isn't limited by hardware or bandwidth, because I put together a quick trial of another popular service and it just works fine. With your implementation of WebRTC it is limiting the quality. I've already requested a refund, so don't worry much about it.

Yash Tandon

unread,
Dec 21, 2021, 2:12:45 PM12/21/21
to Ant Media Server
As I know, my colleague from development team is coordinating with you on the support side ticket regarding your issue.

Regards,
Yash

Schnee Tzel

unread,
Dec 21, 2021, 3:14:14 PM12/21/21
to Ant Media Server

Yes, thanks. I'm just posting here just in case another community member has a solution.
Reply all
Reply to author
Forward
0 new messages