replaced [] operator
Added warning comment for not thread save getVisualPlayPosition()