Cpup Posted December 22, 2022 Share Posted December 22, 2022 Hi, Is there a way of using main.stream.php in the product categories instead of after purchase. I'm selling audio files and synth presets, but want the customer to be able to play a demo of what's inside the pack before they purchase by clicking on, either, the product image or a 'Listen' button and then the audio player show as a dropdown. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 22, 2022 Share Posted December 22, 2022 I am aware of a Karaoke store that uses MediaElement: http://www.mediaelementjs.com/ Sample page (uses Blueprint skin - no longer available in CubeCart's Marketplace): https://www.regionalkaraoke.com/semi-vocal/with-male-vocal/abhi-toh-party-shuru-hui-hai-with-male-vocals-mp3.html It is my opinion that the main.stream.php template is too substantial to be used to play demo snippets. Quote Link to comment Share on other sites More sharing options...
Cpup Posted December 23, 2022 Author Share Posted December 23, 2022 Thanks @bsmither I find main.stream.php is in the wrong place to be honest, with a choice of download or listen after purchase. I was hoping there was a way of utilising the page before by triggering it in the pre-purchase side, or being able to add a media player in the product content. I wanted to avoid using an iframe in the product description if that's possible? Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 23, 2022 Share Posted December 23, 2022 (edited) Regarding the sample page mentioned earlier - I don't see that implementation as an iframe. From what I see, it's a javascript-powered enhancement wrapper around a standard HTML 5 <audio> tag. See: https://www.w3schools.com/html/html5_audio.asp CubeCart, being a general-purpose, but (thankfully) not full of bloat, ecommerce solution, thus relies on specific-purpose features to be implemented by the store owner. Which, actually, from my point of view, streamable purchased downloads is outside this general-purpose arena. So, maybe it was implemented to fit the paradigm of mobile devices? Just my uninformed opinion. Edited December 23, 2022 by bsmither Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.