interface PlaylistSoundRenderContext {
    css: string;
    currentTime: string;
    durationTime: string;
    id: string;
    isOwner: boolean;
    name: string;
    pause: { disabled: boolean; icon: string; paused: boolean };
    play: PlaylistDirectoryControlContext;
    playing: boolean;
    playlistId: string;
    repeat: boolean;
    volume: PlaylistDirectoryVolumeContext;
}

Properties

css: string

The CSS class.

currentTime: string

The current playing timestamp.

durationTime: string

The duration timestamp.

id: string

The PlaylistSound ID.

isOwner: boolean

Whether the current user has ownership of this PlaylistSound.

name: string

The track name.

pause: { disabled: boolean; icon: string; paused: boolean }

PlaylistSound pause context.

Type declaration

  • disabled: boolean

    Whether the pause button is disabled.

  • icon: string

    The pause icon.

  • paused: boolean

    Whether the PlaylistSound is currently paused.

The play button context.

playing: boolean

Whether the PlaylistSound is currently playing.

playlistId: string

The parent Playlist ID.

repeat: boolean

Whether the track is set to loop.

PlaylistSound volume context.