skip to Main Content

I am writing angular app to stream videos returned from backend. These videos are live streams that I tested that work using VLC Media Player > Open Network Stream without any issues.

Codec returned looks like this:

enter image description here

I am using video html element where I set the src of source to returned link from the backend:

<video #videoPlayer id="video" preload="auto" muted>
 <source #videoSrc type="video/mp4">
 Your browser does not support the video tag.
</video>

Can I play videos with codec like this on web browsers?

2

Answers


  1. Well, this is supported. There are no extra steps necessary to do this. One issue I see is that you have random hashtags in your elements…?? Here is a full example of a video element in HTML:

    <video id="video" preload="auto" muted>
     <source src="video.mp4" type="video/mp4">
     Your browser does not support the video tag.
    </video>
    
    Login or Signup to reply.
  2. <video controls>
    <source src="video.mp4" type="video/mp4" />
    <source src="video.webm" type="video/webm" />
    </video>
    

    can You please check this.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search