Opencv videocapture android kotlin

I am trying to open a video from raw folder in android studio project. I am using kotlin and opencv 4.9.0.

val resourceId = R.raw.naturevideo
val videoUri = Uri.parse("android.resource://${this.packageName}/$resourceId")

videoCapture = VideoCapture(videoUri.toString())
        if (videoCapture!!.isOpened) {
            videoFrame = Mat()

is this correct? I am having this error: “opencv videocapture failed to stat file”