bitmovin-api-sdk-javascript icon indicating copy to clipboard operation
bitmovin-api-sdk-javascript copied to clipboard

player.getCurrentTime() returns wrong time position?

Open patrick99e99 opened this issue 4 years ago • 0 comments

I have been trying to overlay smpte timecode over the bitmovin player by doing: SmpteTimestamp.fromTimeWithAdjustments(player.getCurrentTime(), assetDescription);

I have videos which have the correct timecode printed on them via: https://tutorials.hybrik.com/print_timecode/

When I freeze frame on the bitmovin player, certain playback positions will show the timecode generated from SmpteTimestamp being either a frame behind or a frame head of the timecode that is printed on the video.

It appears that Bitmovin's player.getCurrentTime() is returning a value that is slightly off from what frame it is actually viewing when paused.

Here is a screenshot showing the smpte timestamp generated from the SmpteTimestamp.fromTimeWithAdjustments being one frame behind from the actual timecode that is printed on the video:

Screen Shot 2021-10-01 at 1 17 23 PM

patrick99e99 avatar Oct 01 '21 19:10 patrick99e99