#import <ARPlayableTexture.h>
Inherits ARTexture.
Inherited by ARAnimatedTexture, and ARVideoTexture.
This class represents textures that are capable of changing, such as videos or 2D animations. This class should not be used directly. For Animations, please use ARAnimatedTexture. For Videos and Alpha Videos, please use ARVideoTexture.
◆ ARPlayableTextureState
An enum representing the current state of a playable texture
Enumerator |
---|
ARPlayableTextureStateUninitialised | Playable texture has not yet been initialised.
|
ARPlayableTextureStatePaused | Playable texture is currently paused and will continue to render the current frame.
|
ARPlayableTextureStatePlaying | Playable texture is currently playing.
|
ARPlayableTextureStateFinished | Playable texture has finished playback and will either reset or keep rendering the last frame.
|
◆ pause
Pause playback of the playable texture.
◆ play
Start playback of the playable texture.
◆ reset
Resets the playable texture back to the beginning of its sequence.
◆ delegate
Delegate to receive playable texture events. Currently, the only delegate is playableTextureDidFinish.
◆ frameRate
The frame rate of the playable texture. This is set automatically but can be set manually in order to change playback speed.
◆ lastFramePersist
- (BOOL) lastFramePersist |
|
readwritenonatomicassign |
Whether or not to continually render the last frame after the playable texture has finished playing. Default is NO.
◆ pauseTolerance
- (NSTimeInterval) pauseTolerance |
|
readwritenonatomicassign |
The amount of time, in seconds, where the texture will continue to play even if it is not visible and no frames are being rendered. This is useful for momentary losses of tracking. The recommended value is 0.5 seconds.
◆ playState
The current state of this playable texture.
◆ resetThreshold
- (NSTimeInterval) resetThreshold |
|
readwritenonatomicassign |
The amount of time, in seconds, to wait before resetting to the beginning, if the node is not being rendered. A value of 0 means the video will not reset.
The documentation for this class was generated from the following files:
- ARPlayableTexture.h
- ARPlayableTexture.m