Using the Web Player ==================== The web player is provided as a folder (and possibly zip file) which contains the preview-quality audio tracks and an HTML interface. You can upload the ``preview/`` directory somewhere and then point an `` However, this isn't totally obvious on every website platform! So here's some quick tips for various popular platforms. * Squarespace: `Embed blocks `_ * Wix.com: `Embedding a site or a widget `_ * Wordpress.com: If you have a `plugin-enabled site `_ you can type ``/html`` to get a raw HTML block If you know of others, please `let me know about them `_ so that I can share it here! Embedding options ----------------- With the default Camptown player, you can specifically change the layout of the embedded player by appending a layout fragment to the end of the embed URL, e.g. ``https//example.com/my-album/#compact``. The currently-supported options are: * ``#noartwork``: Remove the album artwork * ``#compact``: Show just the player and the track listing * ``#playeronly``: Show just the player controls * ``#notracklist``: Show everything except the track listing * ``#albumart``: Show the full-size album art Here are some examples of how these different setups look: Default ^^^^^^^ .. raw:: html ``#noartwork`` ^^^^^^^^^^^^^^ .. raw:: html ``#compact`` ^^^^^^^^^^^^ .. raw:: html ``#playeronly`` ^^^^^^^^^^^^^^^ .. raw:: html ``#notracklist`` ^^^^^^^^^^^^^^^^ .. raw:: html ``#albumart`` ^^^^^^^^^^^^^ .. raw:: html Hosting options --------------- Static file hosting ^^^^^^^^^^^^^^^^^^^ If you already have your own website on a host that lets you upload and serve up raw files (such as `Dreamhost `_ or `Nearly Free Speech `_ or the like), you can upload the player directly to your website and then point the `` For example: .. code-block:: html will look like: .. raw:: html All things considered, this is probably your best and cheapest option, if you already have compatible web hosting. itch.io ^^^^^^^ If you're using the :doc:`itch.io uploader `, they provide a `player embed `_. For example, this code: .. code-block:: html renders as: .. raw:: html Due to Bandcrash's existing integration with the itch.io uploader (as well as itch.io's pre-existing payments platform), this is likely the easiest approach for most users. Note that due to the way that itch.io embeds work, you cannot use the embed options. Backblaze B2 ^^^^^^^^^^^^ `Backblaze `_ is a well-known provider of mass file storage. They started out as an offsite backup system but eventually productized their storage fabric, called `B2 `_. This approach is incredibly affordable; at the time of writing, it costs only $0.006/GB/month for storage and (effectively) $0.007/GB/month for outgoing transfer, and there's an incredibly generous free cap of 10GB of storage and 30GB/month of transfer. So, for most musicians, it will be *effectively* free (at least, as of November 2023). Hosting your Bandcrash player on B2 is also fairly straightforward. After signing up for B2, go to the `B2 dashboard `_ and create a new bucket for your file hosting, set to public and no encryption: .. image:: b2-create-bucket.jpg :scale: 33 % :alt: B2 bucket creation interface When you want to upload an album, select "Upload/Download" and then "New Folder," and give the folder a meaningful name: .. image:: b2-bucket-ui.jpg :scale: 33 % :alt: B2 bucket selection .. image:: b2-new-folder.jpg :scale: 33 % :alt: Create a new folder Click on the folder and you'll have an empty folder with an enticing "Upload" button. .. image:: b2-empty-folder.jpg :scale: 33 % :alt: An empty folder on B2 Click "Upload," and then drag the contents of your album's "preview" folder onto the upload widget (or, alternately, click the "click to select a file" link and select your preview folder's contents). .. image:: b2-select-refactor.jpg :scale: 33 % :alt: Selecting the preview files Finally, after the upload finishes you'll have a directory full of files. Scroll down to the ``index.html`` file, click the little "i" button to the right of it, and copy the "Friendly URL" link: .. image:: b2-refactor-friendly-link.jpg :scale: 33% :alt: File friendly link This is the embeddable URL for the album. On your website, point an `` will embed as: .. raw:: html However, you should use a fronting CDN to serve up these files. This adds extra expense and setup complexity, but it prevents you from getting a large, unexpected bill if your site is hit by a deluge of bots or trolls. Backblaze has provided some guides for some common CDNs; the two most worth considering are: * `Bunny `_ (starts at $1/month, and is well-regarded) * `Cloudflare `_ (essentially free for this use case, but there are political reasons to avoid them) This list is non-exhaustive, and there are other CDNs out there with a different mix of performance, expense, and features. Advanced users will also probably want to use the `B2 command-line tools `_ to manage their uploads, which can be a little easier to deal with especially if you have a tendency to fiddle a lot.