Set Track Details

Configures the details of the currently loaded track.

Syntax

store.dispatch({ type: "trackData/SET_TRACK_DETAILS", payload: { title, creator, description } });

Parameters

title

The name of the track.

creator

The author of the track.

description

A short description about the track.

Examples

Switches the title of the track to “My Track” and removes the author and description.

store.dispatch({
  type: "trackData/SET_TRACK_DETAILS",
  payload: {
    title: "My Track",
    creator: "",
    description: ""
  }
});