Skip to content

1.0.6

Choose a tag to compare

@WengYuehTing WengYuehTing released this 13 Sep 10:34
· 26 commits to main since this release

What's New

  • Added X2.0 Pro support with 1024 × 1920 and 1920 × 1024 resolution buckets at a default 30 fps.
  • Added native camera capture with smooth portrait/landscape transitions and optional microphone input.
  • Added dynamic return-size adjustment for frame interpolation without restarting generation.
  • Improved default uplink bitrate selection and added custom video encoding options.
  • Added Chinese/English localization to XLab and environment-aware SDK log details.

API Changes

  • Added RealtimeConnectionState.preparing and .ready; removed .disconnected and .error. After cleanup, the state returns to .ready when local media remains available, or .idle otherwise. Read RealtimeState.reason to determine why the operation ended.
  • Replaced setErrorListener / RealtimeErrorListener with RealtimeState.reason (.normal, .orientationChanged, or .failure(XmaxError)). Configuration and permission failures remain available through throws.
  • Removed setCameraPreviewReadyListener; observe .ready through setStateListener instead.
  • Removed public stopGeneration(); use disconnect() to end the realtime connection while retaining local media, or close() to release all resources. Added disconnect(reason:).
  • Added useMicrophone to camera stream creation, defaulting to false through convenience overloads.
  • Added minimumBitrate, maximumBitrate, and encoderPreference to RealtimeVideoFormat.
  • Added RealtimeModel.x2_0_pro and resolutionBuckets; removed supportedMediaSources. Nonempty resolution buckets require an exact width/height match.
  • Added MediaServicing.resolveFrameInterpolationSize(_:). Runtime interpolation changes now request an updated return size.
  • New camera and image streams initialize remote audio volume to 0; file-video streams initialize it to 1. Call setRemoteAudioVolume(_:) after creating the local stream to override this default.
  • Portrait/landscape changes detected by SDK video views disconnect an active realtime connection and report .orientationChanged, while retaining local preview.