Austin Muts

Austin Muts

  • 1.4k
  • 329
  • 125.5k

How to retrieve Video from azure and display on browser using angular

May 6 2023 11:09 AM

I am retrieving videos from azure blob storage using asp.net core 6 web api and i want to display them on browser using  angular client side with no success.Can someone show me how to do this and display video on browser.

Below is my angular display code not working

public playerSrc: SafeResourceUrl | String = '';

 this.playerSrc = this.sanitizer.bypassSecurityTrustResourceUrl(docData);

 <video width="100%"  controls preload="metadata" style="margin-top: 50px; margin-bottom: 20px;">

          <source [src]="playerSrc" type="video/mp4">

            </video>


Answers (1)