Vuo
1.2.6
|
Vuo AV Foundation Player interface implementation.
Typedefs | |
typedef void * | VuoAvPlayerObjPtr |
Pointer to a VuoAvPlayerObject, used to play videos using AV Foundation. | |
Functions | |
VuoAvPlayerObjPtr | VuoAvPlayer_make (const char *url) |
Create a new VuoAvPlayer instance. | |
void | VuoAvPlayer_release (VuoAvPlayerObjPtr player) |
Release a VuoAvPlayer instance. | |
bool | VuoAvPlayer_isReady (VuoAvPlayerObjPtr player) |
Is the decoder ready to begin playback? | |
void | VuoAvPlayer_setPlaybackRate (VuoAvPlayerObjPtr player, VuoReal rate) |
Set the rate at which video plays (forwards or backwards). | |
double | VuoAvPlayer_getFrameRate (VuoAvPlayerObjPtr player) |
The average framerate. | |
bool | VuoAvPlayer_seekToSecond (VuoAvPlayerObjPtr player, VuoReal second, VuoVideoFrame *frame) |
Seek playhead to second. | |
void | VuoAvPlayer_setOnPlaybackReadyCallbackObject (VuoAvPlayerObjPtr player, void(*callback)(void *id, bool canPlayMedia), void *id) |
Set the VuoVideoPlayer instance to call OnDecoderPlaybackReady. | |
bool | VuoAvPlayer_nextVideoFrame (VuoAvPlayerObjPtr player, VuoVideoFrame *videoFrame) |
Get the next video frame (forwards or backwards). | |
bool | VuoAvPlayer_nextAudioFrame (VuoAvPlayerObjPtr player, VuoAudioFrame *audioFrame) |
Get the next audio frame. | |
VuoReal | VuoAvPlayer_getCurrentTimestamp (VuoAvPlayerObjPtr player) |
Return the last decoded and accessed timestamp. | |
VuoReal | VuoAvPlayer_getDuration (VuoAvPlayerObjPtr player) |
Get the duration of this video. | |
bool | VuoAvPlayer_canPlayAudio (VuoAvPlayerObjPtr player) |
Return true if the asset either has no audio, or it does and can play it. | |
unsigned int | VuoAvPlayer_audioChannelCount (VuoAvPlayerObjPtr player) |
Return the number of audio channels available. | |
typedef void* VuoAvPlayerObjPtr |
Pointer to a VuoAvPlayerObject, used to play videos using AV Foundation.
unsigned int VuoAvPlayer_audioChannelCount | ( | VuoAvPlayerObjPtr | player | ) |
Return the number of audio channels available.
bool VuoAvPlayer_canPlayAudio | ( | VuoAvPlayerObjPtr | player | ) |
Return true if the asset either has no audio, or it does and can play it.
VuoReal VuoAvPlayer_getCurrentTimestamp | ( | VuoAvPlayerObjPtr | player | ) |
Return the last decoded and accessed timestamp.
VuoReal VuoAvPlayer_getDuration | ( | VuoAvPlayerObjPtr | player | ) |
Get the duration of this video.
double VuoAvPlayer_getFrameRate | ( | VuoAvPlayerObjPtr | player | ) |
The average framerate.
bool VuoAvPlayer_isReady | ( | VuoAvPlayerObjPtr | player | ) |
Is the decoder ready to begin playback?
VuoAvPlayerObjPtr VuoAvPlayer_make | ( | const char * | url | ) |
Create a new VuoAvPlayer instance.
bool VuoAvPlayer_nextAudioFrame | ( | VuoAvPlayerObjPtr | player, |
VuoAudioFrame * | audioFrame | ||
) |
Get the next audio frame.
bool VuoAvPlayer_nextVideoFrame | ( | VuoAvPlayerObjPtr | player, |
VuoVideoFrame * | videoFrame | ||
) |
Get the next video frame (forwards or backwards).
void VuoAvPlayer_release | ( | VuoAvPlayerObjPtr | player | ) |
Release a VuoAvPlayer instance.
bool VuoAvPlayer_seekToSecond | ( | VuoAvPlayerObjPtr | player, |
VuoReal | second, | ||
VuoVideoFrame * | frame | ||
) |
Seek playhead to second.
void VuoAvPlayer_setOnPlaybackReadyCallbackObject | ( | VuoAvPlayerObjPtr | player, |
void(*)(void *id, bool canPlayMedia) | callback, | ||
void * | id | ||
) |
Set the VuoVideoPlayer instance to call OnDecoderPlaybackReady.
void VuoAvPlayer_setPlaybackRate | ( | VuoAvPlayerObjPtr | player, |
VuoReal | rate | ||
) |
Set the rate at which video plays (forwards or backwards).