Skip to content

peach-collector.js properties documentation

Description of every property can be found in the Defining Events guide.

Defining Video Mode

setVideoModeBar();
setVideoModeMini();
setVideoModeNormal();
setVideoModeWide();
setVideoModePIP();
setVideoModeFullScreen();
setVideoModeCast();
setVideoModePreview();

// if any of the predefined mode do not apply, you can set a string
setVideoMode('mySpecialVideoMode');

Defining Audio Mode

setAudioModeNormal();
setAudioModeMuted();

// if any of the predefined mode do not apply, you can set a string
setAudioMode('mySpecialAudioMode');

Defining Stat Mode

setStartModeNormal();
setStartModeAutoPlay();
setStartModeAutoContinue();

// if any of the predefined mode do not apply, you can set a string
setStartMode('mySpecialStartMode');
setPlaylistID('playlist0001');
setInsertPosition('end');  

Properties about playback

setPreviousID('media00004');
setTimeSpent(5); // in seconds
setPlaybackPosition(5); // in seconds  
setPreviousPlaybackPosition(0); // in seconds  
setPlaybackRate(1);
setVolume(1);
setIsPlaying(true);
setTimeSpent(5); // in seconds
setCompletionRatio(1);
setPositionRatio(0.6);

Adding custom fields

setCustomField('myCustomField', 'myCustomValue');