Persistence allows the player to remember certain values the user has set. For example, if a user adjusts the volume to certain value, return visits will automatically set volume to that level (for each browser).
By default, TOP will persist values specified on ConfigStorageKey (see example).
See below on how to persist only specific values or opt out of persisting any values.
To persist only the volume value (see ConfigStorageKey for available persist properties, also see example):
var player = TOP.createAndInitPlayer({
config: {
player: {
persist: ['volume'] // only volume will be persisted
}
}
});To not persist any values (see example):
var player = TOP.createAndInitPlayer({
config: {
player: {
persist: null // nothing persisted
}
}
});