I am using Drupal commercekickstart.. I have installed Commerce file module and Commerce license module also.If user purchasing their product after that their can download the files at the same time user can listen the songs through player inside this project.Is it possible? Anyone guide to me?

1 Answer 1


You could probably place a view on the confirmation / download page to link to the mp3 inside html5 audio tags.

<audio controls>
  <source src="mymusic.mp3" type="audio/mpeg">
Your browser does not support the audio element.

You could make the default view in a block, place it on the confirmation page where the link to download the mp3 is, and get the mp3 file with a contextual filter with a default value of get ID from URL.

  • can u explain it? I want to music store.
    – Nandhana
    Jul 1, 2015 at 13:10
  • At the end where they are given the link to download the file, use views and rewrite results, or override with a field template to load the file inside HTML5 audio tags. That will create the player you asked for. w3schools.com/html/tryit.asp?filename=tryhtml5_audio_all
    – Collins
    Jul 2, 2015 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.