Skip to content

Commit

Permalink
add missing docs for mediaOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed Oct 7, 2022
1 parent 01c76e1 commit dd46375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Agora-Video-UIKit/AgoraVideoViewer+VideoControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ extension AgoraVideoViewer {
/// A token will only be fetched if a token URL is provided in AgoraSettings.
/// Default: `false`
/// - uid: UID to be set when user joins the channel, default will be 0.
/// - mediaOptions: Media options such as custom audio/video tracks, subscribing options etc.
public func join(
channel: String, as role: AgoraClientRole = .broadcaster,
fetchToken: Bool = false, uid: UInt? = nil,
Expand Down Expand Up @@ -273,6 +274,7 @@ extension AgoraVideoViewer {
/// - token: Valid token to join the channel
/// - role: [AgoraClientRole](https://docs.agora.io/en/Video/API%20Reference/oc/Constants/AgoraClientRole.html) to join the channel as. Default: `.broadcaster`
/// - uid: UID to be set when user joins the channel, default will be 0.
/// - mediaOptions: Media options such as custom audio/video tracks, subscribing options etc.
/// - Returns: `Int32?` representing Agora's joinChannelByToken response. If response is `nil`,
/// that means it has continued on another thread, or you area already in the channel.
@discardableResult
Expand Down
1 change: 1 addition & 0 deletions Sources/Agora-Video-UIKit/AgoraViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public struct AgoraViewer: UIViewRepresentable {
/// - channel: Channel name to join.
/// - token: Valid token to join the channel.
/// - role: AgoraClientRole to join the channel as. Default: .broadcaster.
/// - mediaOptions: Media options such as custom audio/video tracks, subscribing options etc.
public func join(
channel: String, with token: String?, as role: AgoraClientRole,
mediaOptions: AgoraRtcChannelMediaOptions? = nil) {
Expand Down

0 comments on commit dd46375

Please sign in to comment.