I recorded a video and store its path. When i tried to play video using this code(Kotlin), i am getting a dialog that states "Can't Play this video" . Here is my code
SandriosCamera(parentFragment.activity, REQUEST_IMAGE_CAPTURE)
.setShowPicker(false)
.setVideoFileSize(10) //File Size in MB: Default is no limit
.setMediaAction(CameraConfiguration.MEDIA_ACTION_BOTH) // default is CameraConfiguration.MEDIA_ACTION_BOTH
.enableImageCropping(true) // Default is false.
.launchCamera();
to get path
val path : String = data!!.getStringExtra(CameraConfiguration.Arguments.FILE_PATH)
I recorded a video and store its path. When i tried to play video using this code(Kotlin), i am getting a dialog that states "Can't Play this video" . Here is my code
to get path
val path : String = data!!.getStringExtra(CameraConfiguration.Arguments.FILE_PATH)
and to play