PlaybackStatus type definition problem

#1

I have the following code:

private onVideoStatusUpdate = (videoStatus: PlaybackStatus) => {
    this.setState(prevState => ({
      bufferProgress:
        videoStatus.playableDurationMillis / videoStatus.durationMillis
    }));
  };

Typescript complains saying

Property ‘playableDurationMillis’ does not exist on type ‘PlaybackStatus’.

Property ‘durationMillis’ does not exist on type ‘PlaybackStatus’.

How can I solve this?

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.