Options
All
  • Public
  • Public/Protected
  • All
Menu

The client-side Playlist document which extends the common BasePlaylist model.

mixes

ClientDocumentMixin

see

Playlists The world-level collection of Playlist documents

see

PlaylistSound The PlaylistSound embedded document within a parent Playlist

see

PlaylistConfig The Playlist configuration application

Hierarchy

  • any
    • Playlist

Index

Constructors

  • Returns Playlist

Properties

_playbackOrder: string[]

Playlists may have a playback order which defines the sequence of Playlist Sounds

playing: any

Accessors

  • get playbackOrder(): string[]
  • The order in which sounds within this playlist will be played (if sequential or shuffled) Uses a stored seed for randomization to guarantee that all clients generate the same random order.

    Returns string[]

  • get visible(): any
  • inheritdoc

    Returns any

Methods

  • prepareDerivedData(): void
  • inheritdoc

    Returns void

  • Begin simultaneous playback for all sounds in the Playlist.

    Returns Promise<Playlist>

    The updated Playlist document

  • playNext(soundId: string, [options={}]?: { direction: number }): Promise<Playlist>
  • Play the next Sound within the sequential or shuffled Playlist.

    Parameters

    • soundId: string
    • [options={}]: { direction: number } = {}

      Additional options which configure the next track

      • direction: number

    Returns Promise<Playlist>

    The updated Playlist document

  • Begin playback of a specific Sound within this Playlist. Determine which other sounds should remain playing, if any.

    Parameters

    Returns Promise<Playlist>

    The updated Playlist

  • Stop playback of a specific Sound within this Playlist. Determine which other sounds should remain playing, if any.

    Parameters

    Returns Promise<Playlist>

    The updated Playlist

  • End playback for any/all currently playing sounds within the Playlist.

    Returns Promise<Playlist>

    The updated Playlist document

  • Cycle the playlist mode

    Returns Promise<Playlist>

    A promise which resolves to the updated Playlist instance

  • toAnchor(__namedParameters?: { classes: any[] }): any
  • inheritdoc

    Parameters

    • __namedParameters: { classes: any[] } = {}
      • classes: any[]

    Returns any

  • _onClickDocumentLink(event: any): Promise<Playlist>
  • inheritdoc

    Parameters

    • event: any

    Returns Promise<Playlist>

  • _preUpdate(changed: any, options: any, user: any): Promise<any>
  • inheritdoc

    Parameters

    • changed: any
    • options: any
    • user: any

    Returns Promise<any>

  • _onUpdate(changed: any, options: any, userId: any): void
  • inheritdoc

    Parameters

    • changed: any
    • options: any
    • userId: any

    Returns void

  • _onDelete(options: any, userId: any): void
  • inheritdoc

    Parameters

    • options: any
    • userId: any

    Returns void

  • _onCreateEmbeddedDocuments(embeddedName: any, documents: any, createData: any, options: any, userId: any): void
  • inheritdoc

    Parameters

    • embeddedName: any
    • documents: any
    • createData: any
    • options: any
    • userId: any

    Returns void

  • _onUpdateEmbeddedDocuments(embeddedName: any, documents: any, changes: any, options: any, userId: any): void
  • inheritdoc

    Parameters

    • embeddedName: any
    • documents: any
    • changes: any
    • options: any
    • userId: any

    Returns void

  • _onDeleteEmbeddedDocuments(embeddedName: any, documents: any, ids: any, options: any, userId: any): void
  • inheritdoc

    Parameters

    • embeddedName: any
    • documents: any
    • ids: any
    • options: any
    • userId: any

    Returns void

  • toCompendium(pack: any, options?: {}): any
  • inheritdoc

    Parameters

    • pack: any
    • options: {} = {}

      Returns any

    • _getNextSound(soundId: any): any
    • Get the next sound in the cached playback order. For internal use.

      Parameters

      • soundId: any

      Returns any

    • _getPreviousSound(soundId: any): any
    • Get the previous sound in the cached playback order. For internal use.

      Parameters

      • soundId: any

      Returns any

    • _sortSounds(a: any, b: any): any
    • Define the sorting order for the Sounds within this Playlist. For internal use.

      Parameters

      • a: any
      • b: any

      Returns any

    • Handle callback logic when an individual sound within the Playlist concludes playback naturally

      Parameters

      Returns Promise<any>

    • Handle callback logic when playback for an individual sound within the Playlist is started. Schedule auto-preload of next track

      Parameters

      Returns Promise<void>

    • _updateContentLinkPlaying(changed: any): void
    • Update the playing status of this Playlist in content links.

      Parameters

      • changed: any

        The data changes.

      Returns void