Skip to content

Latest commit

 

History

History
 
 

azure-spring-boot-sample-mediaservices

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
page_type languages products description urlFragment
sample
java
azure-media-services
Azure Spring Boot Sample project for Media Services client library
azure-spring-boot-sample-mediaservices

Sample for Azure Media Services Spring Boot client library for Java

Key concepts

This sample project demonstrates how to use Azure Media Services with Spring Boot.

Getting started

Create Azure Media Services on Azure

  1. Go to Azure portal and create the service by following this link.
  2. Mark down the TENANT, CLIENT ID and CLIENT SECRET from this link, REST API ENDPOINT from the service.

Examples

Config the sample

  1. Navigate to src/main/resources and open application.properties.

  2. Fill in the tenant, client-id, client-secret and rest-api-endpoint with TENANT, CLIENT ID, CLIENT SECRET and REST 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
    

Run with Maven

cd azure-spring-boot-samples/azure-spring-boot-sample-mediaservices
mvn spring-boot:run

Troubleshooting

Next steps

Contributing

License

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.