Not able to play the media from Azure AI Video Indexer

Dilip Srivastava 0 Reputation points
2024-01-08T15:35:03.1733333+00:00

We were using the classic account and we were able to play the video uploaded to the AI Video Indexer. But with the ARM accounts, we are not able to play the video.

Although we can generate the access token from the web portal and play content using the management API, there is an issue when generating the Access Token through the Rest API. The error encountered is "InvalidAuthenticationTokenAudience."

Are there alternative methods to programmatically generate the AccessToken?

Azure AI Video Indexer
Azure AI Video Indexer
An Azure video analytics service that uses AI to extract actionable insights from stored videos.
68 questions
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,689 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 48,001 Reputation points
    2024-01-09T00:53:20.83+00:00

    @Dilip Srivastava Thanks for reaching out to us, are you following below steps to generate the access token?

    To get the access token

    Choose the following:

    • Permission type: Contributor or Reader
    • Scope: Account, Project or Video
      • For Project or Video you should also insert the matching ID.
    • Select Generate

    Please double check on your permission types and let me know how it works.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    Reference - Assign Azure roles using the REST API https://video2.skills-academy.com/en-us/azure/role-based-access-control/role-assignments-rest

    There are also other ways to assign roles in case you are interested in, please refer to the document here - https://video2.skills-academy.com/en-us/azure/azure-video-indexer/restricted-viewer-role

    0 comments No comments