Skip to content

Commit

Permalink
dimensions can be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Nov 23, 2021
1 parent 23a87ea commit 76567ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LiveKit/participant/LocalParticipant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class LocalParticipant: Participant {
transInit.direction = .sendOnly
transInit.streamIds = [self.streamId]

if let encodings = Utils.computeEncodings(dimensions: track.capturer.dimensions!,
if let encodings = Utils.computeEncodings(dimensions: track.capturer.dimensions,
publishOptions: publishOptions) {
logger.debug("using encodings \(encodings)")
transInit.sendEncodings = encodings
Expand Down

0 comments on commit 76567ea

Please sign in to comment.