Nova skin audio pop up player

johnchansa
@johnchansa
11 years ago
195 posts
I have been trying to create a pop up player for audio tracks but Its not working out.Any suggestions?this is what I have:

1.song_row.tpl
<a onclick="popwin('{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}','audio_player',545,240,true);"><img src="{$jamroom_url}/modules/jrAudio/img/button_player_play.png" width="32" height="32" alt="{$item.audio_title}" title="{$item.audio_title}" onmouseover="$(this).attr('src','{$jamroom_url}/modules/jrAudio/img/button_player_play_hover.png');" onmouseout="$(this).attr('src','{$jamroom_url}/modules/jrAudio/img/button_player_play.png');"></a>


2.audio_player.tpl
{jrCore_include template="meta.tpl"}
<body>
<div class="container">
    <div class="row">
        <div class="col12 last">
            {jrCore_media_player type="jrAudio_blue_monday" module="jrAudio" item=$item}
        </div>
    </div>
</div>

</body>
</html>



updated by @johnchansa: 01/29/14 12:35:43AM
paul
@paul
11 years ago
4,326 posts
Something like this should do it -
<a onclick="popwin('{$jamroom_url}/audio_player/{$item._item_id}','audio_player',545,240,true);">
audio_player.tpl
{jrCore_include template="meta.tpl"}
<body>
<div class="container">
    <div class="row">
        <div class="col12 last">
            {jrCore_media_player type="jrAudio_blue_monday" module="jrAudio" item_id=$_post.option}
        </div>
    </div>
</div>

</body>
</html>



--
Paul Asher - JR Developer and System Import Specialist
johnchansa
@johnchansa
11 years ago
195 posts
Thanks a lot....I managed to also create pop-up players for other media like youtube and soundcloud.

Tags