Skip to content

seekToTime is not accurate #167

Open
@ghost

Description

This is a part of my code (and it works as expected) :

let pos = 12345;
console.info( "check 1: ",  vid.getCurrentTime() );
vid.seekToTime( pos );
console.info( "check 2: ", vid.getCurrentTime() );
setTimeout( _ => { console.info( "check 3: ", vid.getCurrentTime() ); } , 500 );

the result is:

JS: check 1:  2174
JS: check 2:  12345
JS: check 3:  12713

now here is my problem: let's change the pos value to 10345

the result would be:

JS: check 1:  2095
JS: check 2:  10345
JS: check 3:  2948

just pay attention to the check 3 it shifts back! and that is my problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions