parse

abstract suspend fun parse(context: Context, fileUri: Uri, fileSize: Long, chunkSize: Int): Flow<ParsedData>

Parse the given file Uri and extract an ImportedTrack.

Return

ImportedTrack if parsing is successful, or null if parsing fails.

Parameters

context

Application context for accessing content resolver or resources.

fileUri

Uri of the file to parse.