Maybe the most anticipated functionality for our camera package is finally here: you can now record videos with the CameraView!
What's Changed
- Camera Video Recording by @VladislavAntonyuk in #2710
- Fix camera view app crashes when switching camera on windows by @TheCodeTraveler in #2907
- Fix camera package fails to build with latest Maui version by @ne0rrmatrix in #2916
Requirements
The following tools are now required for CommunityToolkit.Maui.Camera:
- Download/install .NET SDK v9.0.306
- Install Xcode 26.0.1 (or higher)
- Read the latest .NET MAUI Release wiki to always find the latest-supported version) of Xcode for .NET MAUI
- We HIGHLY recommend using the open-source tool Xcodes to easily manage your installed Xcode versions
- Update to the latest stable version of Visual Studio (or Jet Brains Rider)
- After installing the latest stable .NET SDK, update to the latest stable version of the .NET MAUI workload:
- On macOS, open the Terminal and enter the following command:
sudo dotnet workload install maui; sudo dotnet workload update - On Windows, open the command prompt (or Powershell) and enter the following command:
dotnet workload install maui && dotnet workload update
- On macOS, open the Terminal and enter the following command:
- Add a
global.jsonfile to your application with the following parameters to ensure you're not using a unsupported preview version of .NET (example below)- The .NET MAUI Community Toolkit does not provide support for preview releases of .NET
global.json
{
"sdk": {
"version": "9.0.306",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}Full Changelog: 12.2.0...4.0.0-camera