Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2.53 KB

File metadata and controls

58 lines (42 loc) · 2.53 KB

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.

Prerequisites

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

  1. Change directory to folder azure-spring-boot-sample-mediaservices.
  2. Run below commands.
    mvn package
    java -jar target/azure-spring-boot-sample-mediaservices-0.0.1-SNAPSHOT.jar
    

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.