This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: ensure orientation is correct on iOS

+9
+8
posedetection/src/iosMain/kotlin/com/performancecoachlab/posedetection/camera/CameraEngine.kt
··· 234 234 captureSession?.addOutput(movieFileOutput!!) 235 235 } 236 236 val outputURL = generateSegmentURL() 237 + movieFileOutput?.connections?.firstOrNull()?.let { connection -> 238 + (connection as AVCaptureConnection).let { avConnection -> 239 + if (avConnection.isVideoOrientationSupported()) { 240 + avConnection.videoOrientation = currentVideoOrientation() 241 + } 242 + } 243 + 244 + } 237 245 movieFileOutput?.startRecordingToOutputFileURL(outputURL, this) 238 246 } 239 247
+1
sample/composeApp/src/commonMain/kotlin/com/nate/posedetection/App.kt
··· 310 310 skeletonRepository = skeletonRepository, 311 311 drawSkeleton = true, 312 312 modifier = Modifier.weight(1f), 313 + frontCamera = true, 313 314 isRecording = isRecording, 314 315 onRecordToggled = { isRecording = it }, 315 316 onVideoSaved = { path = it }