Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

isStreamable adds "_temp" suffix and file not found. #178

Open
waterdrake opened this issue Oct 16, 2023 · 0 comments
Open

isStreamable adds "_temp" suffix and file not found. #178

waterdrake opened this issue Oct 16, 2023 · 0 comments

Comments

@waterdrake
Copy link

I noticed that in onSuccess() of compression the String path that is returned has _temp appended to it if isStreamable is set to true. This is the code that does that:

private fun validatedFileName(name: String, isStreamable: Boolean?): String {
        val videoName = if (isStreamable == null || !isStreamable) name
        else "${name}_temp"

        if (!videoName.contains("mp4")) return "${videoName}.mp4"
        return videoName
    }

I tried to then check if that file exists in onSuccess() and it does not.

What is the purpose of this _temp suffix? Perhaps it should be removed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant