Class: AVAssetReaderTrackOutput

Inherits:
AVAssetReaderOutput show all

Overview

AVAssetReaderTrackOutput defines an interface for reading media data from a single AVAssetTrack object of an asset reader's asset.

Instance Attribute Summary (collapse)

Attributes inherited from AVAssetReaderOutput

#alwaysCopiesSampleData, #mediaType

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from AVAssetReaderOutput

#copyNextSampleBuffer

Methods inherited from NSObject

#!, #!=, #!~, #, #==, #===, #=~, #Rational, #__callee__, #__method__, #__send__, #__type__, `, alloc, allocWithZone:, #autoContentAccessingProxy, autoload, autoload?, autorelease_pool, #awakeAfterUsingCoder:, binding, block_given?, caller, cancelPreviousPerformRequestsWithTarget:, cancelPreviousPerformRequestsWithTarget:selector:object:, catch, class, classFallbacksForKeyedArchiver, #classForCoder, #classForKeyedArchiver, classForKeyedUnarchiver, #clone, conformsToProtocol:, #copy, copyWithZone:, #dealloc, #define_singleton_method, description, display, #doesNotRecognizeSelector:, #dup, #enum_for, #eql?, #equal?, #extend, fail, #finalize, format, #forwardInvocation:, #forwardingTargetForSelector:, framework, #freeze, #frozen?, getpass, gets, global_variables, #init, initialize, #initialize_clone, #initialize_copy, #initialize_dup, #inspect, instanceMethodForSelector:, instanceMethodSignatureForSelector:, #instance_eval, #instance_exec, #instance_of?, #instance_variable_defined?, #instance_variable_get, #instance_variable_set, #instance_variables, instancesRespondToSelector:, isSubclassOfClass:, #is_a?, iterator?, #kind_of?, lambda, load, load_bridge_support_file, load_plist, local_variables, loop, #method, #methodForSelector:, #methodSignatureForSelector:, #methods, #mutableCopy, mutableCopyWithZone:, new, #nil?, open, p, #performSelector:onThread:withObject:waitUntilDone:, #performSelector:onThread:withObject:waitUntilDone:modes:, #performSelector:withObject:afterDelay:, #performSelector:withObject:afterDelay:inModes:, #performSelectorInBackground:withObject:, #performSelectorOnMainThread:withObject:waitUntilDone:, #performSelectorOnMainThread:withObject:waitUntilDone:modes:, print, printf, #private_methods, proc, #protected_methods, #public_method, #public_methods, #public_send, putc, puts, raise, rand, readline, readlines, #replacementObjectForCoder:, #replacementObjectForKeyedArchiver:, require, resolveClassMethod:, resolveInstanceMethod:, #respond_to?, #respond_to_missing?, select, #send, setVersion:, #singleton_methods, sprintf, srand, superclass, #taint, #tainted?, #tap, test, throw, #to_plist, #to_s, trace_var, trap, #trust, #untaint, untrace_var, #untrust, #untrusted?, version

Constructor Details

This class inherits a constructor from NSObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NSObject

Instance Attribute Details

- (Hash) outputSettings (readonly)

The output settings used by the output. (read-only) The value is a dictionary that contains values for keys from either AVAudioSettings.h (linear PCM only) for audio tracks or for video tracks. A value of nil indicates that the output will return samples in their original format as stored in the target track.

Returns:

- (AVAssetTrack) track (readonly)

The track from which the receiver reads sample buffers. (read-only)

Returns:

Class Method Details

+ (AVAssetReaderTrackOutput) assetReaderTrackOutputWithTrack(track, outputSettings:outputSettings)

Returns an asset reader wrapping a specified track, with optional output settings.

Parameters:

  • track (AVAssetTrack)

    The track from which the reader should source sample buffers.

  • outputSettings (Hash)

    A dictionary of output settings to be used for sample output. Pass nil to receive samples as stored in the track.You use keys from one of AVAudioSettings.h, AVVideoSettings.h, or , depending on the media type and the output format you want. Initialization fails if the output settings cannot be used with the specified track.

Returns:

Instance Method Details

- (Object) initWithTrack(track, outputSettings:outputSettings)

Initializes an asset reader to wrap a specified track, with optional output settings.

Parameters:

  • track (AVAssetTrack)

    The track from which the reader should source sample buffers.

  • outputSettings (Hash)

    A dictionary of output settings to be used for sample output. Pass nil to receive samples as stored in the track.You use keys from one of AVAudioSettings.h, AVVideoSettings.h, or , depending on the media type and the output format you want. Initialization fails if the output settings cannot be used with the specified track.

Returns:

  • (Object)

    An asset reader wrapping track, using the setting defined by outputSettings.