parseAdditionalFragments(completionHandler:)
Incorporates additional fragments that the file received after the last time the format reader parsed it.
Declaration
optional func parseAdditionalFragments(completionHandler: @escaping @Sendable (MEFormatReaderParseAdditionalFragmentsStatus, (any Error)?) -> Void)optional func parseAdditionalFragments() async throws -> MEFormatReaderParseAdditionalFragmentsStatusParameters
- completionHandler:
The completion block to execute when the parse operation finishes.
Discussion
This method additional fragments of the media asset if they exist. Media asset formats that don’t support incremental fragments don’t need implement this method. Create the MEFormatReader object with the MEFormatReaderInstantiationOptions property allowIncrementalFragmentParsing set to true. This method does nothing if the value for MEFileInfo.FragmentsStatus is MEFileInfo.FragmentsStatus.containsFragments. Once this method returns an error, additional calls fail.