- Declared in:
- MKMediaFile.h
Class encapsulating a media file. Currently a fairly minimal implementation which is only capable of accessing a single stream from a file. Still to do is a mechanism for accessing multiple streams in a file and for decoding video.
Decodes the next frame of audio to the specified buffer, or a negative result in case of error (e.g. the end of the stream).
Returns the duration of the currently selected stream, in milliseconds.
Initialises the object with a (potentially remote) media file.
Returns the size of the output buffer required for decoding a frame in the current stream.
Selects any audio stream for playback. Returns
YES if an audio stream is found.
Selects a video stream for playback. Returns
YES if a video stream is found.