feat: video fixing options

This commit is contained in:
rebelonion 2024-05-20 11:15:11 -05:00
parent c2a10c233d
commit 10df1986e8
6 changed files with 112 additions and 3 deletions

View file

@ -9,6 +9,8 @@ interface DownloadAddonApiV2 {
fun setDownloadPath(context: Context, uri: Uri): String
fun getReadPath(context: Context, uri: Uri): String
suspend fun executeFFProbe(
videoUrl: String,
headers: Map<String, String> = emptyMap(),
@ -24,6 +26,10 @@ interface DownloadAddonApiV2 {
statCallback: (Double) -> Unit
): Long
suspend fun customFFMpeg(command: String, videoUrls: List<String>, logCallback: (String) -> Unit): Long
suspend fun customFFProbe(command: String, videoUrls: List<String>, logCallback: (String) -> Unit)
fun getState(sessionId: Long): String
fun getStackTrace(sessionId: Long): String?