-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Media Streaming Packet's Contracts. (#31695)
* Modifying media streaming contracts * Export API * Fixing wrong updates * Moving to nested fields * Removing versions * Getting rid of Newtonsoft * Export API * Fixing tests
- Loading branch information
Showing
10 changed files
with
105 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nication/Azure.Communication.CallAutomation/src/Azure.Communication.CallAutomation.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
...tion/Azure.Communication.CallAutomation/src/Models/MediaStreaming/MediaStreamingFormat.cs
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...re.Communication.CallAutomation/src/Models/MediaStreaming/MediaStreamingFormatInternal.cs
This file was deleted.
Oops, something went wrong.
35 changes: 24 additions & 11 deletions
35
...on/Azure.Communication.CallAutomation/src/Models/MediaStreaming/MediaStreamingMetadata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Azure.Communication.CallAutomation | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Azure.Communication.CallAutomation.Models.MediaStreaming | ||
{ | ||
/// <summary> | ||
/// Streaming metadata | ||
/// Metadata package for Media Streaming. | ||
/// </summary> | ||
public class MediaStreamingMetadata : MediaStreamingPackageBase | ||
{ | ||
/// <summary> | ||
/// Subscription Id. | ||
/// </summary> | ||
public string MediaSubscriptionId { get; } | ||
[JsonPropertyName("subscriptionId")] | ||
public string MediaSubscriptionId { get; set; } | ||
|
||
/// <summary> | ||
/// Format. | ||
/// The Encoding. | ||
/// </summary> | ||
public MediaStreamingFormat Format { get; } | ||
|
||
internal MediaStreamingMetadata(string mediaSubscriptionId, MediaStreamingFormat format) | ||
{ | ||
MediaSubscriptionId = mediaSubscriptionId; | ||
Format = format; | ||
} | ||
[JsonPropertyName("encoding")] | ||
public string Encoding { get; set; } | ||
/// <summary> | ||
/// Sample Rate. | ||
/// </summary> | ||
[JsonPropertyName("sampleRate")] | ||
public int SampleRate { get; set; } | ||
/// <summary> | ||
/// Channels. | ||
/// </summary> | ||
[JsonPropertyName("channels")] | ||
public int Channels { get; set; } | ||
/// <summary> | ||
/// Length. | ||
/// </summary> | ||
[JsonPropertyName("length")] | ||
public int Length { get; set; } | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
....Communication.CallAutomation/src/Models/MediaStreaming/MediaStreamingMetadataInternal.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.