'Position of current playing media in seconds.'

@property
def media_position(self):

    if (self._progress is None):
        return None
    position = self._progress
    if (self._player_state == STATE_PLAYING):
        position += (dt_util.utcnow() - self._progress_updated_at).total_seconds()
    return position
