Open AndroidDeveloperLB opened 3 years ago
Hi @AndroidDeveloperLB
The problem is that both methods are being called to generate the video in this part of the code
// Basic implementation
private fun basicVideoCreation() {
videoFile = getVideoFile(this@MainActivity, "test.mp4")
videoFile?.run {
muxerConfig = MuxerConfig(this, 600, 600, mimeType, 3, 1F, 1500000)
val muxer = Muxer(this@MainActivity, muxerConfig!!)
createVideo(muxer) // using callbacks
// or
createVideoAsync(muxer) // using co-routines
}
}
If you comment on one of the two calls it will work.
AAPT: error: resource style/Theme.MaterialComponents.DayNight (aka com.israelfl.bitmap2video:style/Theme.MaterialComponents.DayNight) not found. error: failed linking references.
Adding this fixes it:
But then when running, and choosing the button "make it!", I get a crash with this exceptioN:
Or this: