Support » Plugin: mb.miniAudioPlayer - an HTML5 audio player for your mp3 files » Force download button on mobile

  • Resolved happyhappyharry

    (@happyhappyharry)


    Is it possible to force the download button to display on mobile devices? In the description it says “The download button is intentionally removed on touch devices as it is impossible to download the file on that devices.” However, that doesn’t seem to be correct. In Chrome on Android I can download files just fine using this plugin if I choose “request desktop site.”

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Have you found the solution to force the download button to display on mobile devices ?

    🙂

    No I haven’t. Any suggestions?

    you can change the value in the js file but must remember to make the change every time you update the plugin.

    in the plugins folder/wp-miniaudioplayer/js…
    open the file jquery.mb.miniAudioPlayer.min.js

    look for line with:

    
    jQuery.isMobile&&(master.player.opt.showVolumeLevel=!1,master.player.opt.autoplay=!1,master.player.opt.downloadable=1),!master.player.opt.mp3&&url.indexOf("mp3")>0&&(
    

    change opt.downloadable=!1)
    to opt.downloadable=1)

    done!

    @jaycbrf This worked! Thanks!

    @sevsnaive if you are still looking as well, here’s the solution!

    @pupunzi please add the ability to enable/disable downloading on mobile devices. It would be nice to not have to edit the plugin each time there’s an update. With modern touch devices, downloading is not a problem.

    Thanks for the fix. It did display the download link on the mobile view, but when I click the icon, it opens the mp3 file in a new tab rather than actually downloading it. Is anyone else experiencing this?

    My MP3 files are hosted offsite, so maybe that makes a difference?

    On my Android it downloads the file to downloads folder. Could be device or apps installed to handle mp3s

    ^^ thanks !!!!!!

    @brit77 I’m also using Android (Chrome browser on a Galaxy S7 to be exact) and it downloads the file to my downloads as well. What device are you using?

    You guys are right! I just tested on my android device, and the download worked fine. iOS doesn’t download. I should have realized before since Apple doesn’t provide a means for downloading/managing files….doh! I’ll test it again once I update to iOS11 as that supposedly includes some sort of file manager. Not holding out hope it will work with mp3s though.

    Thanks!

    maggew

    (@maggew)

    +1 vote for checkbox in WP Admin Options

    Thanks for the tweak @jaycbrf – very helpful!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Force download button on mobile’ is closed to new replies.