Skip to content

player.getCurrentTime() returns wrong time position? #3

@patrick99e99

Description

@patrick99e99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions