position/duration should also be updated in case JS interface is not available