This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofAVFoundationVideoPlayer Class Reference
#include <ofAVFoundationVideoPlayer.h>
Inheritance diagram for ofAVFoundationVideoPlayer:

Protected Attributes | |
CMVideoFormatDescriptionRef | _videoInfo |
id | timeObserver |
CMSampleBufferRef | videoSampleBuffer |
CMSampleBufferRef | audioSampleBuffer |
CMTime | videoSampleTime |
CMTime | videoSampleTimePrev |
CMTime | audioSampleTime |
CMTime | synchSampleTime |
CMTime | duration |
CMTime | currentTime |
float | volume |
float | speed |
float | frameRate |
NSInteger | videoWidth |
NSInteger | videoHeight |
playerLoopType | loop |
BOOL | bWillBeUpdatedExternally |
BOOL | bReady |
BOOL | bLoaded |
BOOL | bPlayStateBeforeLoad |
BOOL | bUpdateFirstFrame |
BOOL | bNewFrame |
BOOL | bPlaying |
BOOL | bWasPlayingBackwards |
BOOL | bFinished |
BOOL | bAutoPlayOnLoad |
BOOL | bSeeking |
BOOL | bSampleVideo |
BOOL | bSampleAudio |
BOOL | bIsUnloaded |
BOOL | bStream |
int | frameBeforeReady |
float | positionBeforeReady |
BOOL | bIsStopped |
NSLock * | asyncLock |
NSCondition * | deallocCond |
Properties | |
AVPlayer * | player |
AVAsset * | asset |
AVPlayerItem * | playerItem |
AVAssetReader * | assetReader |
AVAssetReaderTrackOutput * | assetReaderVideoTrackOutput |
AVAssetReaderTrackOutput * | assetReaderAudioTrackOutput |
AVPlayerItemVideoOutput * | videoOutput |
Method Documentation
◆ close
- (void) close |
◆ getAudioSampleBuffer
- (CMSampleBufferRef) getAudioSampleBuffer |
◆ getAudioSampleTime
- (CMTime) getAudioSampleTime |
◆ getAudioSampleTimeInSec
- (double) getAudioSampleTimeInSec |
◆ getAutoplay
- (BOOL) getAutoplay |
◆ getCurrentFrame
- (CVImageBufferRef) getCurrentFrame |
◆ getCurrentFrameNum
- (int) getCurrentFrameNum |
◆ getCurrentTime
- (CMTime) getCurrentTime |
◆ getCurrentTimeInSec
- (double) getCurrentTimeInSec |
◆ getDuration
- (CMTime) getDuration |
◆ getDurationInFrames
- (int) getDurationInFrames |
◆ getDurationInSec
- (double) getDurationInSec |
◆ getFrameRate
- (float) getFrameRate |
◆ getHeight
- (NSInteger) getHeight |
◆ getLoop
- (playerLoopType) getLoop |
◆ getPosition
- (float) getPosition |
◆ getSpeed
- (float) getSpeed |
◆ getVideoSampleBuffer
- (CMSampleBufferRef) getVideoSampleBuffer |
◆ getVideoSampleTime
- (CMTime) getVideoSampleTime |
◆ getVideoSampleTimeInSec
- (double) getVideoSampleTimeInSec |
◆ getVolume
- (float) getVolume |
◆ getWidth
- (NSInteger) getWidth |
◆ isFinished
- (BOOL) isFinished |
◆ isLoaded
- (BOOL) isLoaded |
◆ isNewFrame
- (BOOL) isNewFrame |
◆ isPaused
- (BOOL) isPaused |
◆ isPlaying
- (BOOL) isPlaying |
◆ isReady
- (BOOL) isReady |
◆ loadWithFile:async:
- (BOOL) loadWithFile: | (NSString*) | file | |
async: | (BOOL) | bAsync | |
◆ loadWithPath:async:
- (BOOL) loadWithPath: | (NSString*) | path | |
async: | (BOOL) | bAsync | |
◆ loadWithURL:async:stream:
- (BOOL) loadWithURL: | (NSURL*) | url | |
async: | (BOOL) | bAsync | |
stream: | (BOOL) | isStream | |
◆ pause
- (void) pause |
◆ play
- (void) play |
◆ seekToEnd
- (void) seekToEnd |
◆ seekToStart
- (void) seekToStart |
◆ seekToTime:
- (void) seekToTime: | (CMTime) | time |
◆ seekToTime:withTolerance:
- (void) seekToTime: | (CMTime) | time | |
withTolerance: | (CMTime) | tolerance | |
◆ setAutoplay:
- (void) setAutoplay: | (BOOL) | bAutoplay |
◆ setEnableAudioSampling:
- (void) setEnableAudioSampling: | (BOOL) | value |
◆ setEnableVideoSampling:
- (void) setEnableVideoSampling: | (BOOL) | value |
◆ setFrame:
- (void) setFrame: | (int) | frame |
◆ setLoop:
- (void) setLoop: | (playerLoopType) | loop |
◆ setPosition:
- (void) setPosition: | (float) | position |
◆ setSpeed:
- (void) setSpeed: | (float) | speed |
◆ setStreaming:
- (void) setStreaming: | (BOOL) | value |
◆ setSynchSampleTime:
- (void) setSynchSampleTime: | (CMTime) | time |
◆ setSynchSampleTimeInSec:
- (void) setSynchSampleTimeInSec: | (double) | time |
◆ setVolume:
- (void) setVolume: | (float) | volume |
◆ setWillBeUpdatedExternally:
- (void) setWillBeUpdatedExternally: | (BOOL) | value |
◆ stepByCount:
- (void) stepByCount: | (long) | frames |
◆ stop
- (void) stop |
◆ togglePlayPause
- (void) togglePlayPause |
◆ unloadVideo
- (void) unloadVideo |
◆ unloadVideoAsync
- (void) unloadVideoAsync |
◆ update
- (void) update |
return if, video is not yet loaded, video is finished playing.
Member Data Documentation
◆ _videoInfo
|
protected |
◆ asyncLock
|
protected |
◆ audioSampleBuffer
|
protected |
◆ audioSampleTime
|
protected |
◆ bAutoPlayOnLoad
|
protected |
◆ bFinished
|
protected |
◆ bIsStopped
|
protected |
◆ bIsUnloaded
|
protected |
◆ bLoaded
|
protected |
◆ bNewFrame
|
protected |
◆ bPlaying
|
protected |
◆ bPlayStateBeforeLoad
|
protected |
◆ bReady
|
protected |
◆ bSampleAudio
|
protected |
◆ bSampleVideo
|
protected |
◆ bSeeking
|
protected |
◆ bStream
|
protected |
◆ bUpdateFirstFrame
|
protected |
◆ bWasPlayingBackwards
|
protected |
◆ bWillBeUpdatedExternally
|
protected |
◆ currentTime
|
protected |
◆ deallocCond
|
protected |
◆ duration
|
protected |
◆ frameBeforeReady
|
protected |
◆ frameRate
|
protected |
◆ loop
|
protected |
◆ positionBeforeReady
|
protected |
◆ speed
|
protected |
◆ synchSampleTime
|
protected |
◆ timeObserver
|
protected |
◆ videoHeight
|
protected |
◆ videoSampleBuffer
|
protected |
◆ videoSampleTime
|
protected |
◆ videoSampleTimePrev
|
protected |
◆ videoWidth
|
protected |
◆ volume
|
protected |
Property Documentation
◆ asset
|
readwritenonatomicstrong |
◆ assetReader
|
readwritenonatomicstrong |
◆ assetReaderAudioTrackOutput
|
readwritenonatomicstrong |
◆ assetReaderVideoTrackOutput
|
readwritenonatomicstrong |
◆ player
|
readwritenonatomicstrong |
◆ playerItem
|
readwritenonatomicstrong |
◆ videoOutput
|
readwritenonatomicstrong |
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/video/ofAVFoundationVideoPlayer.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/video/ofAVFoundationVideoPlayer.m