10 #ifndef NS_RETURNS_INNER_POINTER
12 #define NS_RETURNS_INNER_POINTER
14 #import <Cocoa/Cocoa.h>
15 #undef NS_RETURNS_INNER_POINTER
21 #import <AVFoundation/AVFoundation.h>
85 - (void) setPlayerCallback:(
void (*)(
void* functionPtr,
bool canPlayMedia))callback target:(
void*)decoderCppObject;
87 - (bool) setURL:(NSURL*)url;
91 - (void) setPlaybackRate:(
double)rate;
93 - (bool) decodePreceedingVideoSamples;
95 - (bool) seekToSecond:(
float)second withRange:(
float)range frame:(
VuoVideoFrame *)frame;
97 - (bool) canBeginPlayback;
103 - (
VuoReal) getCurrentTimestamp;
105 - (bool) setAssetReaderTimeRange:(CMTimeRange)timeRange;
107 - (bool) copyNextVideoSampleBuffer;
109 - (
unsigned int) getAudioChannelCount:(AVAssetTrack*) track;
111 - (bool) audioEnabled;
115 - (double) getFrameRate;
117 - (bool) canPlayAudio;
119 - (
unsigned int) audioChannels;
121 + (void) releaseAssetReader:(AVAssetReader*)reader;