Camera Module

78.2.0

Changelog Summary

Category
Description

Camera Configuration

Updated TruvideoSdkCameraConfiguration initializer parameters.

⚠️ Breaking Changes

3. TruvideoSdkCameraConfiguration Initializer Updated

Change Summary:

  • The initializer parameters for TruvideoSdkCameraConfiguration have been reduced and reordered alphabetically.

  • Unused or redundant parameters (frontResolutions, frontResolution, backResolutions, backResolution, orientation) were removed for simplicity.

  • This update improves clarity, consistency, and ensures alignment with other SDK components.

Example Comparison:

Before:

TruvideoSdkCameraConfiguration(
    lensFacing: lensFacing,
    flashMode: flashMode,
    orientation: orientation,
    outputPath: "",
    frontResolutions: [],
    frontResolution: nil,
    backResolutions: [],
    backResolution: nil,
    mode: cameraModeConfiguration.makeCameraMediaMode(),
    imageFormat: imageFormat
)

Now:

Impact:

  • Code relying on positional arguments (without labels) will break.

  • Always use parameter labels for clarity and forward compatibility.

✅ Migration Checklist

Before updating to this SDK version:

  • Review and update any usage of TruvideoSdkCameraConfiguration to ensure parameters are in the new alphabetical order.

Last updated

Was this helpful?