-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoConstraint (Dimensions + FPS) setting do not work #420
Comments
I have also added the captureDimensions field into the getStats api, just to verify whether capture dimensions and sent dimensions are the same. They are the same. |
This seems to be happening in the underlying twilio library. I did some digging (https://github.com/twilio/video-quickstart-android/issues?q=is%3Aissue+constraints) and it seems like some devices may not support certain constraints =(. |
Yes! I have been talking with the Support team, The engg. team is going to get back to me. Once I get a clear answer, let me update it here/ Raise approp. PR w.r.t the issue. |
@slycoder I got the answer from Twilio. There is no recommended way in 5.x.SDK. I have made the changes with 6.0, will raise the PR. Currently integrating audio switch & checking any issues with it. The audio focus listener is not used in the repo, trying to make sure it handles phone calls etc & stops the playback appropriately. |
Thank you for your investigation here and looking forward to any PRs you might have. |
@anooshcnayak I have exposed the camera constraint parameters in the JS side (though not with Android 6 SDK yet). You can help contribute in the PR: #459 |
Issue
Unable to change Video Dimension & FPS
I wanted to have custom dimensions & fps setting on this library. Thus, have taken a fork and changed the buildVideoConstraints function. But these changes do not reflect. I have published the getStats output below.
These issues are also in Master Branch:
Altered Code:
getStats Output:
Above output shows the following::
"frameRate":21,"dimensions":{"width":640,"height":480}}
(the master branch itself has maxFps set to 15 - those configs are all null and voidNote: Room type's tested are P2P (peer to peer) & Group
Steps to reproduce
Expected behaviour
DImensions & FPS as given in the config
Actual behaviour
No control on fps & dimension, set either by twilio or some other libraries
Environment
react-native-twilio-video-webrtc
Version: "master"
The text was updated successfully, but these errors were encountered: