Skip to content
Snippets Groups Projects
Commit cab7d6b5 authored by Anthony's avatar Anthony
Browse files

Fix the out of sync between video and slidebar

parent 047b2063
No related branches found
No related tags found
3 merge requests!13Manifest side to side,!11Draft: 33 8 open an other manifest side by side from an annotation,!9Resolve "Bug on video time control"
...@@ -68,6 +68,8 @@ export class VideoViewer extends Component { ...@@ -68,6 +68,8 @@ export class VideoViewer extends Component {
if (video.muted !== muted) { if (video.muted !== muted) {
video.muted = muted; video.muted = muted;
} }
// Fix the out of sync between video and slidebar
video.currentTime = currentTime;
if (video.textTracks && video.textTracks.length > 0) { if (video.textTracks && video.textTracks.length > 0) {
const newMode = textTrackDisabled ? 'hidden' : 'showing'; const newMode = textTrackDisabled ? 'hidden' : 'showing';
if (video.textTracks[0].mode !== newMode) { if (video.textTracks[0].mode !== newMode) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment