-
Notifications
You must be signed in to change notification settings - Fork 170
Description
Describe the bug
Currently, our web-application won't play back any videos with 1.0.5. The timestamp of the video is 00:00:00/00:00:00, and it seems the media file is not loaded. I've managed to pinpoint this to the shouldComponentUpdate function of the video player:
shouldComponentUpdate(nextProps) {
if (nextProps.previewIsDisplayed !== this.props.previewIsDisplayed) {
return true;
}
return false;
}By Uncommenting this, the playback of the video is back to normal.
We use a .Net Core backend. The Application is started via Visual Studio in an IIS.
To Reproduce
I'm still investigating why exactly this happens, we call the compontent with
<TranscriptEditor
transcriptData={this.state.currentTranscript}
fileName={this.state.fileName}
mediaUrl={this.state.mediaUrl}
isEditable={this.state.isEditable}
sttJsonType={this.state.sttJsonType}
ref={this.transcriptEditorRef}
/>where the mediaUrl is a api call to our backend which returns the media file.
I was not able to reproduce this behaviour in the Demo App, I've even managed to play back the same api call with the shouldComponentUpdate function enabled.
Question
What is exactly the behaviour of previewIsDisplayed?