public abstract class

OverflowStrategy

extends Object
java.lang.Object
   ↳ co.megacool.megacool.OverflowStrategy

Class Overview

The overflow strategy chosen for a recording determines how long recordings are compressed down to the target number of frames. The target length is set through setMaxFrames(int) (the default is 50).

Summary

Constants
String HIGHLIGHT This strategy will select the most interesting part (highlight) of the unfolding gameplay by analyzing changes in intensity (usually represented as changes in point value) over time.
String LATEST This strategy keeps the newest frames recorded.
String TIMELAPSE This strategy will speed up the recording to fit within the target number of frames.
Fields
protected final Context context
Protected Constructors
OverflowStrategy(Context context)
Public Methods
boolean equals(Object o)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String HIGHLIGHT

This strategy will select the most interesting part (highlight) of the unfolding gameplay by analyzing changes in intensity (usually represented as changes in point value) over time.

It depends upon having the developer call the Megacool.registerScoreChange during their game in order to keep track of changes in point value/intensity

Constant Value: "highlight"

public static final String LATEST

This strategy keeps the newest frames recorded. This usually works best when the highlight of the recording is the final moments, like a racing game.

Constant Value: "latest"

public static final String TIMELAPSE

This strategy will speed up the recording to fit within the target number of frames. The resulting length will be between 1.33x and 0.66x of the number of frames set with setMaxFrames(int).

This works well when something is constructed over a longer period of time, like a city built from scratch, or a drawing. This also works well for games like 2048, where seeing the long play reveals the player's strategy.

Constant Value: "timelapse"

Fields

protected final Context context

Protected Constructors

protected OverflowStrategy (Context context)

Public Methods

public boolean equals (Object o)