How to build a custom audio player with Framer
Evenings allows you to build a custom audio player directly into your website. Here is how you can make a custom live audio player if you are using Framer.
Step 01: Setting up Your Environment
Install Framer: If you haven't already, download and install Framer from the official Framer website. Framer offers both a web version and a desktop app for Mac.
Open Your Project: Start a new project or open an existing one in Framer.
Step 02: Adding the Component to Your Project
Create a New Code File: In Framer, navigate to the Code section and create a new code file by clicking the + button. Name your file appropriately, for example,
EveningsPlayer.tsx
.Paste Your Component Code: Copy the code of your component and paste it into the newly created code file in Framer.
Save the File: Make sure to save the file after pasting your code.
Step 03: Using Your Component in the Canvas
Access the Components Panel: Go to the Components panel in Framer, where you'll find your
EveningsPlayer
component listed under the Code section.Drag and Drop: Click and drag your
EveningsPlayer
component onto the canvas to create an instance of it.
Configure Properties: With the component selected, use the properties panel to set the
Station Slug.
TheStation Slug
field is the URL slug that is appended for your Evenings Player. For example, if your evenings URL ishttps://evenings.fm/garage
, your Station Slug will begarage
.
Step 04: Preview and Interact
Preview Mode: Enter Preview mode by clicking the play icon in the top right corner of the Framer interface.
Interact with Your Component: Click on your
EveningsPlayer
component to test its functionality. It should toggle between play and pause states, displaying the appropriate icon.
By following these steps, you should be able to successfully install and use your custom Framer component within your projects. That's it! Email contact@evenings.email with questions.
Last updated