solved MP3 Stream URL

alt=
@makuta
10 years ago
38 posts
I am currently working on a skin and it allows me to add songs to the floating music player and I would like to know the how to add the stream url to the player. This is what I have so far but it has not been working:

Code on display page:
{jrCore_list module="jrAudio" order_by=$order_by template="music_home_audio_row.tpl" require_image="audio_image" search="audio_title like `$_post._1`%" limit="7" page=$_post.p}

Code in the row tpl.
{jrCore_module_url module="jrAudio" assign="murl"}
{assign var="ext" value="`$params.field`_extension"}
{if isset($_items)}
{foreach from=$_items item="item"}
{if $item.audio_file_extension == 'mp3'}


{/if}
{/foreach}
{/if}
updated by @makuta: 02/27/15 01:41:06PM
brian
@brian
10 years ago
10,149 posts
Your stream URL in your row template needs to be like this:

{jrCore_module_url module="jrAudio" assign="murl"}
{$jamroom_url}/{$murl}/stream/audio_file/{$item._item_id}/key=[ jrCore_media_play_key ]/file.mp3

Note the special square brackets around the play key value - that needs to be exactly like that (without spaces before and after the word "jrCore_media_play_key") as the view_results listener will replace that with the proper play key that has been created for the viewing user.

Hope this helps!


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

updated by @brian: 01/04/15 06:55:18AM
alt=
@makuta
10 years ago
38 posts
Thank you. It worked.
brian
@brian
10 years ago
10,149 posts
Glad to hear that - thanks!


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

Tags