The file is not saved in this example on iOS. It works fine on Linux. I think the issue is related to the fact that I am not asked to give permission to write to photos even though the NSPhotoLibraryAddUsageDescription in the info.plist. This is the code and It can be also tested on the Felgo live app.
https://felgo.com/web-editor/?snippet=fe6426d0
import Felgo 3.0
import QtMultimedia 5.9
App{
NavigationStack{
Page {
title: qsTr("Video")
// Right-hand side buttons
rightBarItem: NavigationBarRow {
// Capture image button
IconButtonBarItem {
title: qsTr("Capture image")
icon: IconType.camera
onClicked: camera.imageCapture.capture()
}
}
// Camera
Camera {
id: camera
imageCapture{
onImageSaved: console.log(qsTr("Image saved"))
onCaptureFailed: console.log(qsTr("Error capturing image: " + errorString))
}
}
// Live video output
VideoOutput {
id: videoOutput
anchors.fill: parent
source: camera
autoOrientation: true
fillMode: VideoOutput.PreserveAspectCrop
}
}
}
}