Advertisement
RedReign

Playlists doc

May 21st, 2020
1,772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.39 KB | None | 0 0
  1. <p>Foundry Virtual Tabletop supports the use of audio to accentuate player actions or enrich the atmosphere during gaming sessions. This page details the use of Playlists and the sounds contained within them.</p>
  2. <hr>
  3. <h2>The Playlist Directory</h2>
  4. <figure class="right"><img src="https://i.imgur.com/kzVGqUc.png" title="The Playlist Directory Sidebar">
  5. <figcaption>The Gamemaster's view of the Playlist Directory sidebar.</figcaption>
  6. </figure>
  7. <p>The Playlist Directory allows Gamemasters and Assistants to create new playlists and modify existing ones. All players can access this sidebar, to view the currently playing playlists and adjust client-side volume controls.</p>
  8. <h3>Global Volume Controls</h3>
  9. <p>Global volume controls are client-sided sliders that modify all sounds of certain categories, allowing players to fine-tune volume levels on their end.</p>
  10. <p>The <b>Playlists</b> volume slider determines the master volume of playlists played by the Gamemaster.</p>
  11. <p>The <b>Ambient</b> volume slider adjusts the master volume of Ambient Sounds heard in a Scene.</p>
  12. <p>The <b>Interface</b> volume slider adjusts the master volume of sounds triggered through interface actions (such as chat messages and dice rolls). </p>
  13. <h3>Creating Playlists</h3>
  14. <p>In order to play audio tracks on demand, or as a sequence, they must be first added to a playlist. A playlist can contain multiple sounds, and the same sound can be in multiple playlists.</p>
  15. <p>Click the "Create Playlist" button at the bottom of the Playlist Directory sidebar to create a playlist. From there, a prompt will appear, allowing you to enter the name of the playlist.</p>
  16. <p class="note info">Playlists are added to the bottom of the list, but are sorted in alphabetical order once Foundry is refreshed.</p>
  17. <h3>Managing Playlists</h3>
  18. <p>Playlists on their own come with various buttons and toggles used to manage both the playlist itself and the playback of the sounds it contains.</p>
  19. <dl>
  20.     <dt>Edit Playlist</dt>
  21.     <dd>Opens a prompt to edit the playlist's name and its Playback Mode</dd>
  22.     <dt>Add Sound</dt>
  23.     <dd>Adds a Sound to the playlist. See the "Adding Sounds" section in this article.</dd>
  24.     <dt>Delete Playlist</dt>
  25.     <dd>Deletes the playlist after accepting a confirmation prompt.</dd>
  26.     <dt>Playback Mode</dt>
  27.     <dd>Cycles through the various playback modes. Playback Mode determines the behavior of the playlist when the "Play Playlist" button is pressed.<br>
  28.     <b>Sequential Playback:</b> Plays each sound in the playlist, one at a time, in order.<br>
  29.     <b>Shuffle Tracks:</b> Plays each sound in the playlist, one at a time, in a random order.<br>
  30.     <b>Simultaneous Playback:</b> Plays each sound in the playlist at the same time.<br>
  31.     <b>Soundboard Only: </b> Does not allow the playlist to be played as a whole. The playlist will always be expanded when Foundry reloads, and each sound can be played separately as normal.
  32.     </dd>
  33.     <dt>Play/Stop Playlist</dt>
  34.     <dd>Plays the tracks in the playlist according to the Playlist Mode. If stopping, all currently playing tracks in the playlist will stop playing.</dd>
  35. </dl>
  36. <p class="note info">Normally, only Gamemasters and Assistant users can view and manage playlists, but all players can see the names of playlists when they are played. Take care to keep your playlist and sound names spoiler-free!</p>
  37. <h3>Adding Sounds</h3>
  38. <figure class="right"><img src="https://i.imgur.com/OhQ6Nb0.png" title="The New Track Configuration Window">
  39.     <figcaption>The New Track configuration window.</figcaption>
  40. </figure>
  41. <p>Once a playlist has been created, individual sounds can be added to it by clicking the "Add Sound" button next to the playlist (notated by a plus sign icon). This will bring up the configuration window allowing you to add the sound to the chosen playlist. Once a sound has been created in a playlist, the playlist can be expanded to manage the individual sound, such as editing the name or sound source, toggling the track to loop when played, or deleting the sound from the playlist.</p>
  42. <dl>
  43.     <dt>Track Name</dt>
  44.     <dd>The name of the sound, as seen in the Playlists Directory. This is the name all players see in the Playlists Directory sidebar while the sound is playing.</dd>
  45.     <dt>Audio Source</dt>
  46.     <dd>The source file for the sound. This can either be a file stored in Foundry directories, or a direct URL link to a sound file online. FVTT supports .flac, .mp3, .wav, and .webm audio files.</dd>
  47.     <dt>Volume</dt>
  48.     <dd>The volume of the individual sound. The sound's volume is also affected by the Master Playlists volume slider.</dd>
  49.     <dt>Repeat</dt>
  50.     <dd>Determines whether the sound repeats when played. Note that currently, sounds do not loop seamlessly - there will be a short gap between loops, regardless of the sound file chosen.</dd>
  51. </dl>
  52. <hr>
  53. <h3>API References</h3>
  54. <p>To interact with playlists programmatically, consider using the following API concepts:</p>
  55. <ul>
  56. <li>The <a href="../../../../../api/Playlist.html" rel="nofollow" target="_blank" title="The Playlist Entity">Playlist</a> Entity</li>
  57. <li>The <a href="../../../../../api/Playlists.html" rel="nofollow" target="_blank" title="The Playlists Collection">Playlists</a> Collection</li>
  58. <li>The <a href="../../../../../api/PlaylistDirectory.html" rel="nofollow" target="_blank" title="The PlaylistDirectory Directory">PlaylistDirectory</a> Sidebar</li>
  59. </ul>
  60. <hr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement