Closed hgaharwar closed 3 years ago
Hey @hgaharwar Please find herewith the solution
You can create VideoEditor like this
In VideoEdtior Activity var darftPath : String = externalCacheDir?.absolutePath + "/video.mp4" mVideoEditor = TrinityCore.createEditor(activity.this, darftPath )
In VideoExportAcitiy var darftPath : String = externalCacheDir?.absolutePath + "/video.mp4" mVideoExport = TrinityCore.createExport(darftPath) mVideoExport.export(info, this)
InRecordActivity onCreate Method put this code to delete cache prior to start new record try { if (File(externalCacheDir!!.absolutePath).exists()) { File(externalCacheDir!!.absolutePath).deleteRecursively() } } catch (e: java.lang.Exception) { e.printStackTrace() }
I did very well using this code. Thanks @wlanjie for this great library. You deserve a lot thanks
Not able to create INSTANCE for TRINITY CORE in export activity