Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Adjust media service sample due to sdk upgrade, resolve #496. (#497)
Browse files Browse the repository at this point in the history
* Adjust media service sample due to sdk upgrade, resolve #496.

Signed-off-by: Pan Li <[email protected]>
  • Loading branch information
Incarnation-p-lee authored Dec 13, 2018
1 parent 89ff92c commit e0c8415
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ This sample project demonstrates how to use Azure Media Services via Spring Boot
### Create Azure Media Services on Azure

1. Go to [Azure portal](https://portal.azure.com/) and create the service by following this [link](https://docs.microsoft.com/en-us/azure/media-services/media-services-portal-create-account).
2. Mark down the `ACCOUNT NAME` and `PRIMARY KEY`.
2. Mark down the `TENANT`, `CLIENT ID` and `CLIENT SECRET` from this [link](https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-dotnet-quickstart#access-the-media-services-api),
`REST API ENDPOINT` from the service.

### Config the sample

1. Navigate to `src/main/resources` and open `application.properties`.
2. Fill in the `account-name` and `account-key` with `ACCOUNT NAME` and `PRIMARY KEY` respectively.
2. Fill in the `tenant`, `client-id`, `client-secret` and `rest-api-endpoint` with `TENANT`, `CLIENT ID`, `CLIENT SECRET`
and `REST API ENDPOINT` respectively.

### Run the sample

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
azure.mediaservices.account-name=put-your-media-services-account-name-here
azure.mediaservices.account-key=put-your-media-services-account-key-here
azure.mediaservices.tenant=${your-tenant-id}
azure.mediaservices.client-id=${your-client-id}
azure.mediaservices.client-secret=${your-client-secret}
azure.mediaservices.rest-api-endpoint=${your-rest-api-endpoint}

0 comments on commit e0c8415

Please sign in to comment.