Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22696

    Can you recommend an audio player for this template, that not only plays MP3s with no Flash, but that will stop playback when a portfolio page is scrolled?

    i.e… when you click on a thumb on the grid and that intro page opens I want an audioplayer there to play a clip. But if the user cliecks the arrow to slide to the next post, it needs to stop. Every one I’ve tried keeps playing.

    Can you help?

    Thanks guys

    #116864

    Hi mgma,

    The issue is that the audio player has no way of knowing the user has navigated away from the content. I’m not sure if there is a plugin out there that would be able to do what you are looking for.

    Regards,

    Devin

    #116865

    I’d be surprised if a player supports this out of the box. Actually you need to modify the portfolio code in js/avia.js – search for:

    case '#next':

    showItem = active.nextAll('.post-entry:not(.isotope-hidden):eq(0)').find('a:eq(0)');
    if(!showItem.length) { showItem = $('.post-entry:not(.isotope-hidden):eq(0)', container).find('a:eq(0)'); }
    showItem.trigger('click');

    break;
    case '#prev':

    showItem = active.prevAll('.post-entry:not(.isotope-hidden):eq(0)').find('a:eq(0)');
    if(!showItem.length) { showItem = $('.post-entry:not(.isotope-hidden):last', container).find('a:eq(0)'); }
    showItem.trigger('click');

    and bellow

    showItem.trigger('click');

    add your “player stop” command – it depends on the player script but popular plugins like: http://mediaelementjs.com/ offer such an api: http://mediaelementjs.com/#api

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Audio player on portfolio pages…’ is closed to new replies.