Instructs the receiver to analyze the appended media data and determine whether to improve the results by re-encoding certain segments.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
When the value of
YES, call this method after you have appended all of your media data. After the receiver analyzes whether an additional pass is warranted, the value of
current will change (usually asynchronously) to describe how to set up for the next pass. Although it is possible to use Key-value observing to determine when the value of
current has changed, it is typically more convenient to invoke
respond in order to start the work for each pass.
After re-appending the media data for all of the time ranges of the new pass, call this method again to determine whether additional segments should be re-appended in another pass.
Calling this method effectively cancels any previous invocation of
request, meaning that
request can be invoked again for each new pass. The
respond method provides a convenient way to consolidate these invocations in your code.
After each pass, you have the option of keeping the most recent results by calling
mark instead of this method. If the value of
nil at the beginning of a pass, call
mark to tell the receiver to not expect any further media data.