Skip to content

1.0.8

Choose a tag to compare

@WengYuehTing WengYuehTing released this 09 Oct 09:02
· 28 commits to main since this release

What's New

  • Added X2.1-preview with the same resolution buckets and default video configuration as X2.0-pro.
  • Added model-specific display names and session endpoints. X2.0-pro and X2.1-preview now use https://dev.xmaxai.com/open/api/v1 for session creation, heartbeats, and closure; X2.0 and storage services continue to use the client environment endpoint.
  • Added external video input replacement with automatic generation recovery, connection reuse for compatible formats, and latest-request cancellation.
  • Added network video generation from HTTP/HTTPS URLs, remote audio playback, and task-scoped completion callbacks.
  • Updated XLab to show model display names instead of uppercasing model identifiers.

API Changes

  • Added RealtimeModel.X2_1_PREVIEW (x2.1-preview) and the displayName and nullable baseUrl model properties.
  • Added replaceExternalVideoStream(videoFormat, targetSource) and RealtimeStreamReplacement, containing the new local stream and the remote stream when generation resumes successfully.
  • Added createNetworkVideoStream(uri, videoFormat, sampleMethod, onFinish). The completion callback runs once on the main thread after the server completion event and the first generated frame are ready; it does not indicate that the final remote frame has finished displaying.
  • Added RealtimeReferenceVideo, RealtimeVideoSampleMethod, and the optional RealtimeContext.referenceVideo property.