Skip to content

Commit

Permalink
silence publish warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Dec 13, 2023
1 parent 010c28e commit 01d62cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/LiveKit/Participant/LocalParticipant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@ public class LocalParticipant: Participant {

/// publish a new audio track to the Room
@objc
@discardableResult
public func publish(audioTrack: LocalAudioTrack, publishOptions: AudioPublishOptions? = nil) async throws -> LocalTrackPublication {
try await publish(track: audioTrack, publishOptions: publishOptions)
}

/// publish a new video track to the Room
@objc
@discardableResult
public func publish(videoTrack: LocalVideoTrack, publishOptions: VideoPublishOptions? = nil) async throws -> LocalTrackPublication {
try await publish(track: videoTrack, publishOptions: publishOptions)
}
Expand Down

0 comments on commit 01d62cf

Please sign in to comment.