Interface AVPlayerItemLegibleOutputPushDelegate

  • All Superinterfaces:
    AVPlayerItemOutputPushDelegate

    public interface AVPlayerItemLegibleOutputPushDelegate
    extends AVPlayerItemOutputPushDelegate
    [@protocol] AVPlayerItemLegibleOutputPushDelegate Extends AVPlayerItemOutputPushDelegate to provide additional methods specific to attributed string output.
    • Method Detail

      • legibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime

        default void legibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime​(AVPlayerItemLegibleOutput output,
                                                                                           NSArray<? extends NSAttributedString> strings,
                                                                                           NSArray<?> nativeSamples,
                                                                                           CMTime itemTime)
        legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime: A delegate callback that delivers new textual samples. For each media subtype in the array passed in to -initWithMediaSubtypesForNativeRepresentation:, the delegate will receive sample buffers carrying data in its native format via the nativeSamples parameter, if there is media data of that subtype in the media resource. For all other media subtypes present in the media resource, the delegate will receive attributed strings in a common format via the strings parameter. See for the string attributes that are used in the attributed strings.
        Parameters:
        output - The AVPlayerItemLegibleOutput source.
        strings - An NSArray of NSAttributedString, each containing both the run of text and descriptive markup.
        nativeSamples - An NSArray of CMSampleBuffer objects, for media subtypes included in the array passed in to -initWithMediaSubtypesForNativeRepresentation:
        itemTime - The item time at which the strings should be presented.