This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Throws(Exception::class) | |
fun appendVideos(videoPathList: List<String>, targetFilePath: String) { | |
val movies = videoPathList.flatMap { file -> listOf(MovieCreator.build(file)) } | |
val finalMovie = Movie() | |
val videoTracksTotal = mutableListOf<Track>() | |
val audioTracksTotal = mutableListOf<Track>() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generic Adapter for a list of ITEMS and a BINDING class | |
*/ | |
class SimpleListBindingAdapter<in ITEM, BINDING : ViewDataBinding> : | |
RecyclerView.Adapter<SimpleListBindingAdapter<ITEM, BINDING>.BindingHolder> { | |
private var items = listOf<ITEM>() | |
@LayoutRes | |
private var layoutRes: Int = 0 |