|
@@ -416,7 +416,10 @@ const MDEdit = ({children, field, onChange, ...props}) => {
|
|
|
const videos = [...document.querySelectorAll('video')]
|
|
|
const playing = videos.find(v => v.playing)
|
|
|
if (playing){
|
|
|
- const {currentTime} = playing
|
|
|
+ let {currentTime} = playing
|
|
|
+ currentTime -=2
|
|
|
+ currentTime = currentTime < 0 ? 0 : currentTime
|
|
|
+
|
|
|
const ast = buildAST(children)
|
|
|
let timeCodes = getTimeCodes(ast)
|
|
|
console.log(currentTime, timeCodes)
|