def _position(self):
        """Get media position."""
        position = 0
        if self.state != STATE_IDLE:
            resp = self._player.query_position(_FORMAT_TIME)
            position = resp[1] // _NANOSEC_MULT
        return position