Skip to content

Commit c12e507

Browse files
author
Minnie Liu
committed
Clean up
1 parent 3fc7391 commit c12e507

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

articles/communication-services/quickstarts/media-composition/get-started-media-comp.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@ ms.custom: mode-other
1616

1717
[!INCLUDE [Private Preview Disclaimer](../../includes/private-preview-include-section.md)]
1818

19-
---
20-
title: include file
21-
description: include file
22-
services: azure-communication-services
23-
author: peiliu
24-
manager: alexokun
25-
26-
ms.service: azure-communication-services
27-
ms.subservice: azure-communication-services
28-
ms.date: 08/18/2022
29-
ms.topic: include
30-
ms.custom: include file
31-
ms.author: peiliu
32-
---
33-
3419
Get started with Azure Communication Services by using the Communication Services C# Media Composition SDK to compose and stream videos.
3520

3621
## Prerequisites
@@ -73,14 +58,12 @@ To set up an environment for using media composition, take the steps in the foll
7358
1. Add a `using` directive to the top of **Program.cs** to include the `Azure.Communication` namespace.
7459

7560
```csharp
76-
7761
using System;
7862
using System.Collections.Generic;
7963

8064
using Azure;
8165
using Azure.Communication;
8266
using Azure.Communication.MediaComposition;
83-
8467
```
8568

8669
## Authenticate the media composition client
@@ -93,12 +76,12 @@ Open **Program.cs** in a text editor and replace the body of the `Main` method w
9376
```csharp
9477
// Find your Communication Services resource in the Azure portal
9578
var connectionString = "<connection_string>";
96-
MediaCompositionClient mediaCompositionClient = new MediaCompositionClient(connectionString);
79+
var mediaCompositionClient = new MediaCompositionClient(connectionString);
9780
```
9881

9982
## Create a media composition
10083

101-
Create a new media composition by defining the `inputs`, `layout`, `outputs`, as well as a user-friendly `id`. For more details on how to define the values, refer to [this page](./define-media-composition.md). These values are passed into the `CreateAsync` function exposed on the client. The code snippet below shows and example of defining a simple two by two grid layout:
84+
Create a new media composition by defining the `inputs`, `layout`, `outputs`, as well as a user-friendly `mediaCompositionId`. For more details on how to define the values, refer to [this page](./define-media-composition.md). These values are passed into the `CreateAsync` function exposed on the client. The code snippet below shows and example of defining a simple two by two grid layout:
10285

10386
```csharp
10487
var layout = new GridLayout(rows: 2, columns: 2, inputIds: new List<List<string>>{ new List<string> { "jill", "jack" }, new List<string> { "jane", "jerry" } })
@@ -205,7 +188,7 @@ var inputIdsToRemove = new List<string>()
205188
var response = await mediaCompositionClient.RemoveInputsAsync(mediaCompositionId, inputIdsToRemove);
206189
```
207190

208-
## Upsert or remove outputs
191+
### Upsert or remove outputs
209192

210193
To upsert outputs, you can use the `UpsertOutputsAsync` function from the client.
211194
```csharp
@@ -226,15 +209,15 @@ var outputIdsToRemove = new List<string>()
226209
var response = await mediaCompositionClient.RemoveOutputsAsync(mediaCompositionId, outputIdsToRemove);
227210
```
228211

229-
## Start running a created media
212+
## Start running a media composition
230213

231214
After defining the media composition with the correct properties, you can start composing the media by calling the `StartAsync` function using the `mediaCompositionId`.
232215

233216
```csharp
234217
var compositionSteamState = await mediaCompositionClient.StartAsync(mediaCompositionId);
235218
```
236219

237-
## Stop a running media composition
220+
## Stop running a media composition
238221

239222
To stop a media composition, call the `StopAsync` function using the `mediaCompositionId`.
240223

0 commit comments

Comments
 (0)