#import <CraftARTrackingContentVideo.h>

Instance Methods |
|
(id) | - initWithVideoFrom: |
(id) | - initWithVideoFrom:andPosterURL: |
(void) | - trackingStarted |
(void) | - trackingLost |
(void) | - didBecomeReadyToPlay |
(void) | - didFinishPlaying |
(Boolean) | - start |
(void) | - stop |
(Boolean) | - pause |
(void) | - setVolume: |
(void) | - playerItemReady: |
![]() |
Properties |
|
CraftARVideoPlaybackStatus | playbackStatus |
Status of the video. | |
Boolean | autoplay |
Boolean | loop |
Boolean | muted |
Boolean | hasTransparencyMask |
NSURL * | poster |
![]() |
Detailed Description
A video content is able to play a video on top of a reference image.
Method Documentation
- (void) didBecomeReadyToPlay |
Behaviour when media is ready to play. Default behaviour is to start playing if the reference is tracked. Can be overriden.
- (void) didFinishPlaying |
Behaviour when playback is finished. Default behaviour does nothing. Can be overriden.
- (id) initWithVideoFrom: | (NSURL *) | videoUrl |
Initialize content with a video from a URL
- Parameters
-
videoUrl Must be a url to a local or remote H.264 video.
- (id) initWithVideoFrom: | (NSURL *) | videoUrl | |
andPosterURL: | (NSURL *) | poster | |
Initialize content with a video from a URL and a poster URL
- Parameters
-
videoUrl Must be a url to a local or remote H.264 video. posterURL Must be a url to a local or remote image (png or jpg) to be drawn as video placeholder when the video is not loaded yet.
- (Boolean) pause |
Pause playback. Returns NO if not playing.
- (void) setVolume: | (float) | volume |
Set the audio volume
- Parameters
-
volume Should be between 0.0 and 1.0
- (Boolean) start |
Start playing, returns NO if not ready.
- (void) stop |
Stop playing if status is PLAYING
- (void) trackingLost |
Behaviour when this content's reference detection is lost. Default behaviour is to pause playback if playing. Can be overriden.
Implements CraftARTrackingContent.
- (void) trackingStarted |
Behaviour when this content's reference is detected. Default behaviour is to start playing if ready. Can be overriden.
Implements CraftARTrackingContent.
The documentation for this class was generated from the following file:
- CraftARProSDK.framework/Headers/CraftARTrackingContentVideo.h