Welcome! Version 7.0

Tutorials / FAQs / Documentation

Make sure your connection is secure ("httpS:" instead of just "http:"). Click the logo above for a secure connection.

| Menu ☰ |
× close
Home Products Services Blog Contact

CMSbyCW Demo Back to CMSbyCW Home

13-Sample Audio Playlist Code

13-Sample Audio Playlist Code

Now Playing:.. (Click and select a story below)

You can click on any of the numbered stories below to activate the "play" button on the playlist of our Audio Bible. When a story ends, it will automatically play and go to the next.

 

--------------------------------------------------

To use this Sample Audio Playlist Code: 

1) On the Source Tab, copy the entire code block above the line, I am borrowing the Audio Files from ChristianLifeGroups,.

2) Add a New Page or Post. then paste the code block.

3) All you need to change are the following:  name, and path, like so (in red font):  

const stories = [
  { name: "The Word Became Flesh – (John 1:1-18) KJV", path: "https://www.christianlifegroups.com/john/John_01_1-18_The_Word_Became_Flesh.mp3" },
  { name: "You Must Be Born Again – (John 3:1-15) KJV", path: "https://www.christianlifegroups.com/john/John_03_1-15_You_Must_Be_Born_Again.mp3" },
  { name: "For God So Loved the World – (John 3:16-21) KJV", path: "https://www.christianlifegroups.com/john/John_03_16-21_For_God_So_Loved_the_World.mp3" }

These Sample Codes are the ones I used in my actual full Audio Bible App, so I know this works! 

It's programmed to:

1) Highlight in yellow what is playing in the Playlist

2) Go to the next audio file

3) When the last audio file is played, it loops again to the first audio file.  

Hope it's useful to you too! 

Share:




Thank you for visiting our website!