KudanAR - iOS
ARVideoTexture Class Reference

#import <ARVideoTexture.h>

+ Inheritance diagram for ARVideoTexture:
+ Collaboration diagram for ARVideoTexture:

Instance Methods

(instancetype) - initWithVideoFile:audioFile:
 
(void) - spill
 
(void) - activate
 
- Instance Methods inherited from ARPlayableTexture
(void) - reset
 
(void) - play
 
(void) - pause
 
(typedef) - NS_ENUM
 
- Instance Methods inherited from ARTexture
(instancetype) - initWithUIImage:
 
(instancetype) - initWithEmpty
 
(instancetype) - initWithExistingTextureID:
 
(void) - generateTexture
 
(void) - uploadTexture
 
(void) - loadTextureFromUIImage:reverseLines:
 
(void) - uploadBGRATexture:width:height:
 
(void) - uploadBGRATextureSub:width:height:
 
(BOOL) - preRender
 
(void) - postRender
 
- Instance Methods inherited from <ARRendererDelegate>
(void) - rendererPreRender
 
(void) - rendererPostRender
 
(void) - rendererDidPause
 
(void) - rendererDidResume
 

Properties

BOOL isActive
 
double currentVideoTime
 
double lastRenderTime
 
- Properties inherited from ARPlayableTexture
float frameRate
 
ARPlayableTextureState playState
 
NSTimeInterval pauseTolerance
 
NSTimeInterval resetThreshold
 
BOOL lastFramePersist
 
id< ARPlayableTextureDelegatedelegate
 
- Properties inherited from ARTexture
unsigned textureID
 
unsigned long width
 
unsigned long height
 
BOOL isPowerOfTwo
 
ARTextureFilter minificationFilter
 
ARTextureFilter magnificationFilter
 

Additional Inherited Members

- Protected Attributes inherited from ARTexture
NSData * _rawImage
 

Detailed Description

A class representing the texture used to render videos.

Method Documentation

- (void) activate

Adds video texture to video manager. If there's no room spills the oldest video texture. Video manager can hold 3 video textures at once.

- (instancetype) initWithVideoFile: (NSString *)  videoFile
audioFile: (NSString *)  audioFile 

Initialises video texture with audio file.

Parameters
videoFileVideo name and extension in bundle.
audioFileVideo's audio track name and extension in bundle.
- (void) spill

Removes video texture from cache.

Property Documentation

- (double) currentVideoTime
readwritenonatomicassign

Current video time in seconds.

- (BOOL) isActive
readwritenonatomicassign

If video is active.

- (double) lastRenderTime
readwritenonatomicassign

Time of last frame rendered in seconds.


The documentation for this class was generated from the following file: