AxisCommunications / media-stream-library-js

JavaScript library to handle media streams on the command line (Node.js) and in the browser.
MIT License
297 stars 100 forks source link

Player crashed on Random time parsing ? #711

Open cubecleveland opened 2 years ago

cubecleveland commented 2 years ago

Hi, we get random crahsed of the react player

App of react in dev mode crashed with this image proobably has to do with time parsing... any way to get around that ?

lekoaf commented 2 years ago
/**
   * When playing a recording, the time the video started
   * (used for labeling with an absolute time) formatted
   * as an ISO time, e.g.: 2021-02-03T12:21:57.465715Z
   */
  readonly startTime?: string
  /**
   * When playing a recording, the total duration of the video
   * if known by the user (and not reported from backend) in
   * seconds.
   */
  readonly duration?: number

Are you setting these two properties correctly in the <Player /> component?

cubecleveland commented 2 years ago

Thanks for the response, im just playing a live feed, what should those args be ?