Skip to content

Commit 403f91f

Browse files
Merge pull request #107399 from Juliako/se
new topic
2 parents dabc3d1 + 336d6a6 commit 403f91f

File tree

3 files changed

+153
-45
lines changed

3 files changed

+153
-45
lines changed

articles/media-services/latest/TOC.yml

Lines changed: 49 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
displayName: release notes
99
href: release-notes.md
1010
- name: Quickstarts
11+
expanded: true
1112
items:
1213
- name: Live event with portal and Wirecast
1314
displayName: live, event, portal, wirecast
1415
href: live-events-wirecast-quickstart.md
1516
- name: Tutorials
16-
expanded: true
1717
items:
1818
- name: Encode remote file and stream video
1919
items:
@@ -42,7 +42,7 @@
4242
href: protect-with-drm.md
4343
- name: Samples
4444
items:
45-
- name: Media Services samples
45+
- name: Media Services v3 samples
4646
displayName: .NET, Java
4747
href: https://docs.microsoft.com/samples/browse/?products=azure-media-services
4848
- name: Media Services v3 REST samples
@@ -70,9 +70,7 @@
7070
items:
7171
- name: Transforms and Jobs
7272
href: transforms-jobs-concept.md
73-
displayName: preset, schema
74-
- name: Error codes
75-
href: job-error-codes.md
73+
displayName: preset, schema
7674
- name: Encoding content
7775
items:
7876
- name: Overview
@@ -91,9 +89,7 @@
9189
href: analyzing-video-audio-files-concept.md
9290
displayName: analyzing, presets, jobs
9391
- name: Transforms and Jobs
94-
href: transforms-jobs-concept.md
95-
- name: Job error codes
96-
href: job-error-codes.md
92+
href: transforms-jobs-concept.md
9793
- name: Live streaming
9894
items:
9995
- name: Overview
@@ -114,10 +110,6 @@
114110
href: live-event-states-billing.md
115111
- name: Latency
116112
href: live-event-latency.md
117-
- name: Become an on-premises encoder partner
118-
href: become-on-premises-encoder-partner.md
119-
- name: Live Event error codes
120-
href: live-event-error-codes.md
121113
- name: Packaging and delivery
122114
items:
123115
- name: Dynamic packaging
@@ -137,9 +129,7 @@
137129
displayName: URLs
138130
href: streaming-locators-concept.md
139131
- name: Streaming Policies
140-
href: streaming-policy-concept.md
141-
- name: Streaming Endpoint error codes
142-
href: streaming-endpoint-error-codes.md
132+
href: streaming-policy-concept.md
143133
- name: Content protection
144134
items:
145135
- name: Dynamic encryption and key delivery
@@ -211,20 +201,24 @@
211201
items:
212202
- name: Get started
213203
items:
214-
- name: Create an account - portal
215-
href: create-account-portal.md
216-
- name: Create an account - CLI
217-
href: create-account-cli-how-to.md
218-
displayName: storage
219-
- name: Reset the account credentials - CLI
204+
- name: Create an account
205+
items:
206+
- name: With portal
207+
href: create-account-portal.md
208+
- name: With CLI
209+
href: create-account-cli-how-to.md
210+
displayName: storage
211+
- name: Reset the account credentials
220212
href: cli-reset-account-credentials.md
221-
- name: Access APIs - portal
222-
href: access-api-portal.md
223-
- name: Access APIs - CLI
224-
href: access-api-cli-how-to.md
225-
- name: Scale Media Reserved Units - CLI
213+
- name: Access APIs
214+
items:
215+
- name: With portal
216+
href: access-api-portal.md
217+
- name: With CLI
218+
href: access-api-cli-how-to.md
219+
- name: Scale Media Reserved Units
226220
href: media-reserved-units-cli-how-to.md
227-
- name: Create an Asset - CLI
221+
- name: Create an Asset
228222
href: cli-create-asset.md
229223
- name: Developer guides
230224
items:
@@ -244,31 +238,33 @@
244238
href: configure-connect-python-howto.md
245239
- name: Upload content
246240
items:
247-
- name: From HTTPS - .NET
241+
- name: From HTTPS
248242
displayName: upload
249243
href: job-input-from-http-how-to.md
250-
- name: From a local file - .NET
251-
displayName: upload
252-
href: job-input-from-local-file-how-to.md
253-
- name: From a local file - REST
254-
displayName: upload
255-
href: upload-files-rest-how-to.md
256-
- name: From a local file - CLI
257-
href: cli-upload-file-asset.md
244+
- name: From a local file
245+
items:
246+
- name: With .NET
247+
displayName: upload
248+
href: job-input-from-local-file-how-to.md
249+
- name: With REST
250+
displayName: upload
251+
href: upload-files-rest-how-to.md
252+
- name: With CLI
253+
href: cli-upload-file-asset.md
258254
- name: Create transforms and jobs
259255
items:
260-
- name: Create transforms - CLI
256+
- name: Create transforms
261257
href: cli-create-transform.md
262-
- name: Create jobs - CLI
258+
- name: Create jobs
263259
href: cli-create-jobs.md
264260
- name: Jobs with multiple transform outputs
265261
href: job-multiple-transform-outputs.md
266262
- name: Encode content
267263
items:
268-
- name: HTTPS as Job input - .NET
264+
- name: HTTPS as Job input
269265
displayName: encode, encoding
270266
href: job-input-from-http-how-to.md
271-
- name: Local file as Job input - .NET
267+
- name: Local file as Job input
272268
displayName: encode, encoding
273269
href: job-input-from-local-file-how-to.md
274270
- name: Encode with a custom Transform
@@ -289,7 +285,15 @@
289285
displayName: subclipping, clip, edit, trim, clipping
290286
- name: With REST
291287
href: subclip-video-rest-howto.md
292-
displayName: subclipping, clip, edit, trim, clipping
288+
displayName: subclipping, clip, edit, trim, clipping
289+
- name: Job error codes
290+
href: job-error-codes.md
291+
- name: Stream live
292+
items:
293+
- name: Become an on-premises encoder partner
294+
href: become-on-premises-encoder-partner.md
295+
- name: Live Event error codes
296+
href: live-event-error-codes.md
293297
- name: Use Event Grid
294298
items:
295299
- name: Monitor events - Portal
@@ -304,7 +308,7 @@
304308
href: media-services-diagnostic-logs-howto.md
305309
- name: Protect content
306310
items:
307-
- name: Get content key policy - .NET
311+
- name: Get content key policy
308312
href: get-content-key-policy-dotnet-howto.md
309313
- name: Offline FairPlay for iOS
310314
href: offline-fairplay-for-ios.md
@@ -325,7 +329,9 @@
325329
displayName: filters
326330
- name: Deliver content
327331
items:
328-
- name: Publish an asset - CLI
332+
- name: Manage streaming endpoints
333+
href: manage-streaming-endpoints-howto.md
334+
- name: Publish an asset
329335
href: cli-publish-asset.md
330336
- name: Create a streaming locator and build URLs
331337
href: create-streaming-locator-build-url.md
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
3+
title: Manage streaming endpoints with Azure Media Services v3
4+
description: This article demonstrates how to manage streaming endpoints with Azure Media Services v3.
5+
services: media-services
6+
documentationcenter: ''
7+
author: Juliako
8+
writer: juliako
9+
manager: femila
10+
editor: ''
11+
12+
ms.service: media-services
13+
ms.workload: media
14+
ms.tgt_pltfrm: na
15+
ms.devlang: na
16+
ms.topic: article
17+
ms.date: 03/11/2020
18+
ms.author: juliako
19+
20+
---
21+
22+
# Manage streaming endpoints with Media Services v3
23+
24+
When your Media Services account is created a **default** streaming endpoint is added to your account in the **Stopped** state. To start streaming your content and take advantage of [dynamic packaging](dynamic-packaging-overview.md) and [dynamic encryption](content-protection-overview.md), the streaming endpoint from which you want to stream content has to be in the **Running** state.
25+
26+
This article shows you how to start your streaming endpoint.
27+
28+
> [!NOTE]
29+
> You are only billed when your Streaming Endpoint is in running state.
30+
31+
## Prerequisites
32+
33+
Review:
34+
35+
* [Media Services concepts](concepts-overview.md)
36+
* [Streaming Endpoint concept](streaming-endpoint-concept.md)
37+
* [Dynamic packaging](dynamic-packaging-overview.md)
38+
39+
## Use the Azure portal
40+
41+
1. Sign in at the [Azure portal](https://portal.azure.com/).
42+
1. On the left, select **Streaming Endpoints**.
43+
1. Select the streaming endpoint you want to start, click **Start**.
44+
45+
## Use the Java SDK
46+
47+
```java
48+
if (streamingEndpoint != null) {
49+
// Start The Streaming Endpoint if it is not running.
50+
if (streamingEndpoint.resourceState() != StreamingEndpointResourceState.RUNNING) {
51+
manager.streamingEndpoints().startAsync(config.getResourceGroup(), config.getAccountName(), STREAMING_ENDPOINT_NAME).await();
52+
}
53+
```
54+
55+
The samples [in this repository](https://docs.microsoft.com/samples/azure-samples/media-services-v3-dotnet/azure-media-services-v3-samples-using-net/) shows how to start the default streaming endpoint with .NET.
56+
57+
## Use the .NET SDK
58+
59+
```charp
60+
StreamingEndpoint streamingEndpoint = await client.StreamingEndpoints.GetAsync(config.ResourceGroup, config.AccountName, DefaultStreamingEndpointName);
61+
62+
if (streamingEndpoint != null)
63+
{
64+
if (streamingEndpoint.ResourceState != StreamingEndpointResourceState.Running)
65+
{
66+
await client.StreamingEndpoints.StartAsync(config.ResourceGroup, config.AccountName, DefaultStreamingEndpointName);
67+
}
68+
```
69+
70+
The samples [in this repository](https://docs.microsoft.com/samples/azure-samples/media-services-v3-java/azure-media-services-v3-samples-using-java/) shows how to start the default streaming endpoint with Java.
71+
72+
## Use CLI
73+
74+
```cli
75+
az ams streaming-endpoint start [--account-name]
76+
[--ids]
77+
[--name]
78+
[--no-wait]
79+
[--resource-group]
80+
[--subscription]
81+
```
82+
83+
For more information, see [az ams streaming-endpoint start](https://docs.microsoft.com/cli/azure/ams/streaming-endpoint?view=azure-cli-latest#az-ams-streaming-endpoint-start).
84+
85+
## Use REST
86+
87+
```rest
88+
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingEndpoints/myStreamingEndpoint1/start?api-version=2018-07-01
89+
```
90+
91+
For more information, see:
92+
93+
* The [start a StreamingEndpoint](https://docs.microsoft.com/rest/api/media/streamingendpoints/start) reference documentation.
94+
* Starting a streaming endpoint is an asynchronous operation.
95+
96+
For details on how to monitor a long-running operations see[Long-running operations](media-services-apis-overview.md)
97+
* This [Postman collection](https://github.com/Azure-Samples/media-services-v3-rest-postman/blob/master/Postman/Media%20Services%20v3.postman_collection.json) contains examples of multiple REST operations including on how to start a streaming endpoint.
98+
99+
## Next steps
100+
101+
* [Media Services v3 OpenAPI Specification (Swagger)](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01)
102+
* [Streaming Endpoint operations](https://docs.microsoft.com/rest/api/media/streamingendpoints)

articles/media-services/latest/streaming-endpoint-concept.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This section gives details about some of the Streaming Endpoint's properties. Fo
114114
> [!NOTE]
115115
> Streaming Endpoints located in the same data center can't share the same custom host name.
116116
117-
Currently, Media Services doesnt support SSL with custom domains.
117+
Currently, Media Services doesn't support SSL with custom domains.
118118

119119
- `maxCacheAge` - Overrides the default max-age HTTP cache control header set by the streaming endpoint on media fragments and on-demand manifests. The value is set in seconds.
120120
- `resourceState` -
@@ -161,4 +161,4 @@ Check out the [Azure Media Services community](media-services-community.md) arti
161161

162162
## Next steps
163163

164-
The sample [in this repository](https://github.com/Azure-Samples/media-services-v3-dotnet-quickstarts/blob/master/AMSV3Quickstarts/EncodeAndStreamFiles/Program.cs) shows how to start the default streaming endpoint with .NET.
164+
[Manage streaming endpoints](manage-streaming-endpoints-howto.md)

0 commit comments

Comments
 (0)