I am building a music streaming application using Cloudinary to store all uploaded audio files. Currently, Cloudinary does not have an audio tag so I am using the video helper like this:
<% if track.track.attached? %>
<%= cl_video_tag track.track.key,:source_types => [:mp3],:controls => true,:poster => false, class: "track-play play-track", id: "play-track"%>
I want to be able to do various actions like:
- collect track duration of file
- switch to next track when current track duration complete
- display a custom media player based off of info from the cloudinary media player
Any help, thoughts or links would be appreciated!
Please sign in to leave a comment.