Skip to content

Commit

Permalink
(GH-176) Get live stream settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Feb 18, 2022
1 parent 0238622 commit 558e50f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Source/ZoomNet/Resources/IMeetings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public interface IMeetings
Task<string> GetInvitationAsync(long meetingId, CancellationToken cancellationToken = default);

/// <summary>
/// Update a meetings live stream information.
/// Update a meeting's live stream information.
/// </summary>
/// <param name="meetingId">The meeting ID.</param>
/// <param name="streamUrl">Streaming URL.</param>
Expand All @@ -452,7 +452,7 @@ public interface IMeetings
Task UpdateLiveStreamAsync(long meetingId, string streamUrl, string streamKey, string pageUrl, CancellationToken cancellationToken = default);

/// <summary>
/// Start a meetings live stream.
/// Start a meeting's live stream.
/// </summary>
/// <param name="meetingId">The meeting ID.</param>
/// <param name="displaySpeakerName">Display the name of the active speaker during a live stream.</param>
Expand All @@ -464,7 +464,7 @@ public interface IMeetings
Task StartLiveStreamAsync(long meetingId, bool displaySpeakerName, string speakerName, CancellationToken cancellationToken = default);

/// <summary>
/// Stop a meetings live stream.
/// Stop a meeting's live stream.
/// </summary>
/// <param name="meetingId">The meeting ID.</param>
/// <param name="cancellationToken">The cancellation token.</param>
Expand All @@ -473,6 +473,16 @@ public interface IMeetings
/// </returns>
Task StopLiveStreamAsync(long meetingId, CancellationToken cancellationToken = default);

/// <summary>
/// Get the details of a meeting's live stream.
/// </summary>
/// <param name="meetingId">The meeting ID.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>
/// The async task.
/// </returns>
Task<LiveStreamingSettings> GetLiveStreamSettingsAsync(long meetingId, CancellationToken cancellationToken = default);

/// <summary>
/// Retrieve all the templates that are available to be used by a user.
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions Source/ZoomNet/Resources/Meetings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,15 @@ public Task StopLiveStreamAsync(long meetingId, CancellationToken cancellationTo
.AsMessage();
}

/// <inheritdoc/>
public Task<LiveStreamingSettings> GetLiveStreamSettingsAsync(long meetingId, CancellationToken cancellationToken = default)
{
return _client
.GetAsync($"meetings/{meetingId}/livestream")
.WithCancellationToken(cancellationToken)
.AsObject<LiveStreamingSettings>();
}

/// <inheritdoc/>
public Task<MeetingTemplate[]> GetTemplatesAsync(string userId, CancellationToken cancellationToken = default)
{
Expand Down

0 comments on commit 558e50f

Please sign in to comment.