Skip to content

Commit 531892f

Browse files
authored
Add missing ExperimentalPersistentRecording annotation (#418)
1 parent e923fbc commit 531892f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/camera/src/main/java/com/google/jetpackcamera/core/camera/CameraSession.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import androidx.camera.core.UseCaseGroup
5050
import androidx.camera.core.ViewPort
5151
import androidx.camera.core.resolutionselector.AspectRatioStrategy
5252
import androidx.camera.core.resolutionselector.ResolutionSelector
53+
import androidx.camera.video.ExperimentalPersistentRecording
5354
import androidx.camera.video.FallbackStrategy
5455
import androidx.camera.video.FileDescriptorOutputOptions
5556
import androidx.camera.video.FileOutputOptions
@@ -927,6 +928,7 @@ private fun getPendingRecording(
927928
}
928929

929930
context(CameraSessionContext)
931+
@OptIn(ExperimentalPersistentRecording::class)
930932
private suspend fun startVideoRecordingInternal(
931933
isInitialAudioEnabled: Boolean,
932934
context: Context,

0 commit comments

Comments
 (0)