page_type | languages | products | description | urlFragment | ||
---|---|---|---|---|---|---|
sample |
|
|
Azure Spring Boot Sample project for Media Services client library |
azure-spring-boot-sample-mediaservices |
This sample project demonstrates how to use Azure Media Services with Spring Boot.
- Go to Azure portal and create the service by following this link.
- Mark down the
TENANT
,CLIENT ID
andCLIENT SECRET
from this link,REST API ENDPOINT
from the service.
-
Navigate to
src/main/resources
and openapplication.properties
. -
Fill in the
tenant
,client-id
,client-secret
andrest-api-endpoint
withTENANT
,CLIENT ID
,CLIENT SECRET
andREST API ENDPOINT
respectively.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}
Optional
If you are using network proxy then add below properties to run azure media services behind proxy.azure.mediaservices.proxy-host=put-your-network-proxy-host azure.mediaservices.proxy-port=put-your-network-proxy-port azure.mediaservices.proxy-scheme=put-your-network-proxy-scheme
cd azure-spring-boot-samples/azure-spring-boot-sample-mediaservices
mvn spring-boot:run
The video file video.mp4
under src/main/resources
folder is from GitHub repository big-buck-bunny-480p-5s without any modification and is under the Creative Commons Attribution 3.0 license.