@Szczork Please take a look at [the realization](https://github.com/edx/edx-platform/blob/master/common/lib/xmodule/xmodule/js/src/video/03_video_player.js#L891) of `videoPlayer.duration()` method. As you can see, it returns a rounded number. The API function `videoPlayer.player.getDuration()` returns a float.

Are you sure that this comparison is safe?