Raw mp3 file

maxcinsay
@maxcinsay
11 years ago
60 posts
Im creating anew skin and Im using http://mediaelementjs.com/, how can I access the raw url for the mp3 file for an specific user? I need to pass the url to the player. Thank you

updated by @maxcinsay: 12/19/13 03:02:34PM
brian
@brian
11 years ago
10,148 posts
There is no "raw" URL to an MP3 in Jamroom - it all go through JR's stream functions. Your URL will look like this:

jamroom_url/module/stream/field_name/item_id/key=[jrCore_media_play_key ]/file.mp3

I would recommend looking at the modules/jrAudio/templates/jrAudio_player_dark.tpl file to see how it uses the MP3 URL at then top of the file, and basically copy that.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 11/19/13 11:38:33AM

Tags