disableRemoteOrientation method

Future disableRemoteOrientation()

@detail api @author luomingkang.264 @brief Turn off the effect of the orientation of the local user as the sound source.
After the effect is off, all the other users in the room listen to the local user as if the local user is in right front of each of them. @note - After the orientation effect as the sound source is disabled, you cannot enable it during the lifetime of the SpatialAudio instance. - Calling this API does not affect the orientation effect of the local user as a listener. See updateSelfPosition{@link #ISpatialAudio#updateSelfPosition} and updateRemotePosition{@link #ISpatialAudio#updateRemotePosition}.

Implementation

Future disableRemoteOrientation() async {
  $a() => ($instance as $p_a.ISpatialAudio).disableRemoteOrientation();
  $i() => ($instance as $p_i.ByteRTCSpatialAudio).disableRemoteOrientation();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}