Skip to content

Commit 54bb3f1

Browse files
authored
Merge pull request #92734 from Juliako/patch-120
Update stream-files-tutorial-with-rest.md
2 parents 2666655 + 997192a commit 54bb3f1

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

articles/media-services/latest/stream-files-tutorial-with-rest.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: media-services
1111
ms.workload:
1212
ms.topic: tutorial
1313
ms.custom: mvc
14-
ms.date: 04/22/2019
14+
ms.date: 10/21/2019
1515
ms.author: juliako
1616
---
1717

@@ -90,11 +90,12 @@ Clone a GitHub repository that contains the Postman collection and environment
9090
In this section, we send requests that are relevant to encoding and creating URLs so you can stream your file. Specifically, the following requests are sent:
9191

9292
1. Get Azure AD Token for Service Principal Authentication
93+
1. Start a Streaming Endpoint
9394
2. Create an output asset
94-
3. Create a **Transform**
95-
4. Create a **Job**
96-
5. Create a **Streaming Locator**
97-
6. List paths of the **Streaming Locator**
95+
3. Create a Transform
96+
4. Create a Job
97+
5. Create a Streaming Locator
98+
6. List paths of the Streaming Locator
9899

99100
> [!Note]
100101
> This tutorial assumes you are creating all resources with unique names.
@@ -115,6 +116,33 @@ In this section, we send requests that are relevant to encoding and creating URL
115116
116117
![Get AAD token](./media/develop-with-postman/postman-get-aad-auth-token.png)
117118
119+
120+
### Start a Streaming Endpoint
121+
122+
To enable streaming, you first have to start the [Streaming Endpoint](https://docs.microsoft.com/azure/media-services/latest/streaming-endpoint-concept) from which you want to stream the video.
123+
124+
> [!NOTE]
125+
> You are only billed when your Streaming Endpoint is in the running state.
126+
127+
1. In the left window of the Postman app, select "Streaming and Live".
128+
2. Then, select "Start StreamingEndpoint".
129+
3. Press **Send**.
130+
131+
* The following **POST** operation is sent:
132+
133+
```
134+
https://management.azure.com/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Media/mediaservices/:accountName/streamingEndpoints/:streamingEndpointName/start?api-version={{api-version}}
135+
```
136+
* If the request is successful, the `Status: 202 Accepted` is returned.
137+
138+
This status means that the request has been accepted for processing; however, the processing has not been completed. You can query for the operation status based on the value in the `Azure-AsyncOperation` response header.
139+
140+
For example, the following GET operation returns the status of your operation:
141+
142+
`https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/<resourceGroupName>/providers/Microsoft.Media/mediaservices/<accountName>/streamingendpointoperations/1be71957-4edc-4f3c-a29d-5c2777136a2e?api-version=2018-07-01`
143+
144+
The [track asynchronous Azure operations](https://docs.microsoft.com/azure/azure-resource-manager/resource-manager-async-operations) article explains in depth how to track the status of asynchronous Azure operations through values returned in the response.
145+
118146
### Create an output asset
119147
120148
The output [Asset](https://docs.microsoft.com/rest/api/media/assets) stores the result of your encoding job.

0 commit comments

Comments
 (0)