Want to add a audio playlist to my website to preview the beats and my mixes like a beatstars playlist or similar, but theres only apps to do that, is there any other way to go about it without? At this point, I'm thinkkin gabout putting my youtube videos on the beats, but I would like something better, Thanks!
Well my main thought is that you can create one product that houses all of your playlists through a giant JSON object inside a metafield for the product. I'm working on an example right now, it'll be extremely simple and still may take a bit of time (partner dashboard is currently down), but I'll post a preview link after.
Alright well here's kind of the idea. This is riddled with bugs at the moment when the playlist loops, I haven't debugged it yet but it probably has something to do with waiting for the .load() promise. It's still working fine so I figured I'd just post the general idea instead of debugging it. There's only 2 songs in each playlist.
So the big json variable would be what you keep stored in the products metafield. Then I loop through it and build an element for every object in my playlists array. If you're updating it, it would be as simple as following this structure for every playlist you add, not that it's really ideal to have to manually add this code every time. I believe it would be possible to do something like this on the homepage with a dynamic section, but it would be a completely different approach as it would involve a lot of manipulating with the schema. I'll probably continue to work on this little playlist thing if you check back on it periodically.