KudanAR - iOS  1.6.0
ARVideoTexture Class Reference

#import <ARVideoTexture.h>

Inherits ARPlayableTexture, <ARRendererDelegate>, <AVAudioPlayerDelegate>, and <NSCopying>.

Instance Methods

(instancetype) - initWithVideoFile:audioFile:
 
(void) - spill
 
(void) - activate
 
- Instance Methods inherited from ARPlayableTexture
(void) - reset
 
(void) - play
 
(void) - pause
 
- 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
ARPlayableTextureState playState
 
float frameRate
 
NSTimeInterval pauseTolerance
 
NSTimeInterval resetThreshold
 
BOOL lastFramePersist
 
id< ARPlayableTextureDelegatedelegate
 
- Properties inherited from ARTexture
GLuint textureID
 
unsigned long width
 
unsigned long height
 
BOOL isPowerOfTwo
 
ARTextureFilter minificationFilter
 
ARTextureFilter magnificationFilter
 

Additional Inherited Members

- Protected Types inherited from ARPlayableTexture
enum  ARPlayableTextureState { ARPlayableTextureStateUninitialised, ARPlayableTextureStatePaused, ARPlayableTextureStatePlaying, ARPlayableTextureStateFinished }
 
- Protected Types inherited from ARTexture
enum  ARTextureFilter { ARTextureFilterNearest, ARTextureFilterLinear }
 
- Protected Attributes inherited from ARTexture
NSData * _rawImage
 

Detailed Description

An ARVideoTexture represents a texture capable of rendering videos.

Method Documentation

◆ activate

- (void) activate

Adds this video texture to the video manager, resets it and activates it. If there's no room this texture will overwrite the oldest video texture in the video manager's array of textures. The Video manager can hold 3 video textures at once.

◆ initWithVideoFile:audioFile:

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

Initialises video texture with audio file.

Parameters
videoFileFilepath to the video file. This can be either a full filepath or a path relative to the main bundle. Supported video formats are the same as those supported by Apple.
audioFileFilepath to the audio file. This can be either a full filepath or a path relative to the main bundle. Supported audio formats are the same as those supported by AVAudioPlayer.
Returns
A new ARVideoTexture with a video track from the given video file and an audio track from the given audio file.

◆ spill

- (void) spill

Removes video texture from cache.

Property Documentation

◆ currentVideoTime

- (double) currentVideoTime
readwritenonatomicassign

Current video time in seconds.

◆ isActive

- (BOOL) isActive
readwritenonatomicassign

Whether or not this video texture has been added to the video manager and is ready to be played. If a video is already active, it cannot be activated, meaning it a video texture cannot be added to the video manager more than once. If a video is not active, it cannot be spilled, meaning it effectively cannot be removed from the video manager, even if there is no room when a new video texture is added.

◆ lastRenderTime

- (double) lastRenderTime
readwritenonatomicassign

Time of last frame rendered in seconds.


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