Fix transcoded video player position (#272)

* Fix transcoded video player position

* Abbreviate change
This commit is contained in:
WithoutPants
2019-12-18 10:36:45 +11:00
committed by Leopere
parent 043745a84f
commit ea995dc374

View File

@@ -135,7 +135,8 @@ export class ScenePlayerImpl extends React.Component<IScenePlayerProps, IScenePl
};
getCurrentTimeHook = (_videoTag: any) => {
return _videoTag.currentTime + _videoTag.start;
let start = _videoTag.start || 0;
return _videoTag.currentTime + start;
}
}