player icon indicating copy to clipboard operation
player copied to clipboard

webm file format is recognized as live video

Open ming535 opened this issue 1 year ago • 1 comments

Current Behavior:

Wen I was using a webm file, the MediaPlayer by default uses "Live Stream" mode. Setting the value of "streamType" doesn't change the behavior.

Expected Behavior:

  1. webm url should not be considered as a "Live Stream";
  2. Setting the "streamType" for webm file to "on-demand" should disable the "Live Stream" mode?

Steps To Reproduce:

I made a webm video below to show the issue.

MediaPlayer without streamType defaults to "Live Stream"

    <MediaPlayer src="https://yarx.s3.amazonaws.com/yR1eIHNkzlK2bkzrMhyk4.webm">
      <MediaProvider />
      <DefaultVideoLayout icons={defaultLayoutIcons} />
    </MediaPlayer>

MediaPlayer with streamType set to on-demand also makes the player to be "Live Stream"

    <MediaPlayer src="https://yarx.s3.amazonaws.com/yR1eIHNkzlK2bkzrMhyk4.webm" streamType="on-demand">
      <MediaProvider />
      <DefaultVideoLayout icons={defaultLayoutIcons} />
    </MediaPlayer>

Environment:

Anything Else?

Screenshot 2024-06-05 at 23 18 00

We can see the left bottom corner, there is a "Live" indicator. Is this the expected behavior?

ming535 avatar Jun 05 '24 15:06 ming535

The issue was resolved by adding a duration to MediaPlayer. Is this the expected behavior?

ming535 avatar Jun 06 '24 02:06 ming535

It's not but it would be an issue with video file itself, possibly how it was encoded. Closing as this is not an issue with the player itself, thanks!

mihar-22 avatar Jul 05 '24 03:07 mihar-22