-
Notifications
You must be signed in to change notification settings - Fork 1
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
FCE-423, FCE-298: Propose updated way of configuring video quality in SDKs; Re-think default activeEncodings settings in SDK; FCE-1032: Fix stopCapture #281
Changes from all commits
1314717
9cb6cf4
4b38d62
7cbd506
0fc8b05
8403865
8088bdf
be24d31
ee10165
c2a6f95
04ca414
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ import { ScreenShareOptions } from './useScreenShare'; | |
import { Platform } from 'react-native'; | ||
import { useFishjamEventState } from './internal/useFishjamEventState'; | ||
|
||
const defaultSimulcastConfig = () => ({ | ||
enabled: false, | ||
activeEncodings: [], | ||
}); | ||
const defaultSimulcastConfig = () => | ||
({ | ||
enabled: false, | ||
}) satisfies SimulcastConfig; | ||
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is philosophical question: should (in the end, it does not really matter here) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case, it doesn't really matter. The advantage of using satisfies instead of a type is that you preserve the actual value.
and you create an object
You still retail the autocompletion when using So in our case the user would now that the default value is always false. |
||
|
||
let screenShareSimulcastConfig: SimulcastConfig = defaultSimulcastConfig(); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just thinking - do we still know that this limit applies on latest iOS version? If not, maybe we should investigate it again 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue!
https://linear.app/swmansion/issue/FCE-1033