Skip to content

Commit

Permalink
Add editconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Apr 14, 2023
1 parent 6038163 commit 7c8f7a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true
[*]
# Most of the standard properties are supported
max_line_length=100

# don't use wildcard for Java/Kotlin imports
[*.{java,kt}]
wildcard_import_limit = 999
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ public class Call(
val selectEdgeServerResult = client.selectEdgeServer(
type = type,
id = id,
request = GetCallEdgeServerRequest(
latencyMeasurements = measurements.associate { it.latencyUrl to it.measurements }
)
request = GetCallEdgeServerRequest(latencyMeasurements = measurements.associate { it.latencyUrl to it.measurements })
)
if (selectEdgeServerResult !is Success) {
return result as Failure
Expand All @@ -114,11 +112,7 @@ public class Call(
val credentials = selectEdgeServerResult.value.credentials
val url = credentials.server.url
val iceServers =
selectEdgeServerResult
.value
.credentials
.iceServers
.map { it.toIceServer() }
selectEdgeServerResult.value.credentials.iceServers.map { it.toIceServer() }

session = RtcSession(
client = client,
Expand Down Expand Up @@ -160,9 +154,7 @@ public class Call(
logger.v { "[initRenderer.onFirstFrameRendered] #sfu; sessionId: $sessionId" }
if (trackType != TrackType.TRACK_TYPE_SCREEN_SHARE) {
state.updateParticipantTrackSize(
sessionId,
videoRenderer.measuredWidth,
videoRenderer.measuredHeight
sessionId, videoRenderer.measuredWidth, videoRenderer.measuredHeight
)
}
onRender(videoRenderer)
Expand All @@ -173,9 +165,7 @@ public class Call(

if (trackType != TrackType.TRACK_TYPE_SCREEN_SHARE) {
state.updateParticipantTrackSize(
sessionId,
videoRenderer.measuredWidth,
videoRenderer.measuredHeight
sessionId, videoRenderer.measuredWidth, videoRenderer.measuredHeight
)
}
}
Expand Down

0 comments on commit 7c8f7a4

Please sign in to comment.