0

I have a html video player element <video/>, and a m3u8 stream. It is possible to change the aspect ratio from 4:3 to 16:9 of the stream depending on the stream resolution ?!

cb4
  • 6,689
  • 7
  • 45
  • 57
Adrian
  • 671
  • 4
  • 17
  • 37

1 Answers1

0

The onloadedmetadata event will fire when the videoWidth and videoHeight are known (as well as duration etc), you can then use that to adjust the width/height of the display element

Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52