Coder Social home page Coder Social logo

jquery.mb.miniaudioplayer's Introduction

mb.miniAudioPlayer

An open source jQuery component to build a mini audio player for your mp3 or ogg files.

jquery.mb.miniPlayer is a GUI implementation of the jquery.jPlayer plug-in realized by © Happyworm LTD. (many thanks to Mark Boas)

mb.menu

jquery.mb.components, another way of thinking the web

jquery.mb.miniaudioplayer's People

Contributors

jmtt89 avatar pupunzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.mb.miniaudioplayer's Issues

Cannot call method 'replace' of undefined.

Hi. I'm hitting a weird error when trying to install the player. I have included the three resources on my site, jplayer.js, metadata.js and mb.miniplayer.js.

I'm triggering the player with the sample code you provide in the wiki

<a id="m1" class="audio {ogg:'http://www.miaowmusic.com/ogg/Miaow-07-Bubble.ogg'}" href="http://www.miaowmusic.com/mp3/Miaow-07-Bubble.mp3">miaowmusic - Bubble (mp3/ogg)</a>

<script>
  $(function(){
    $(".audio").mb_miniPlayer({
      width: 240,
      inLine: false
    });
  });
</script>

This throws an exception Uncaught TypeError: Cannot call method 'replace' of undefined on line 71 of mb.miniPlayer.js which is this line:

var downloadURL = $master.attr("href").replace(".mp3", "").split("/");

The weird ting however is that when I set a breakpoint there, $master.attr('href') does not seem to be undefined. Its actually "http://www.miaowmusic.com/mp3/Miaow-07-Bubble.mp3".

Any idea why there's an exception?

Doesn't playing on IE

The player is looking like fine, but the play function just doesn't work. I'm not getting any error on console. On Chrome and FF is working.
I tried on IE9+
Any idea?

Download button is Hidden on Android

Hi Matteo @pupunzi ,

Is it possible to keep the download "circle with arrow down" button visible on Android? If so, could you please share how to do so?

It works wonderfull on PC (Chrome browser) but on Android (Chrome browser), the button is just not visible.

<a id="m1" class="audio {skin:'kSkin', mp3:'[link-to-mp3]', loop:true, inLine:true, downloadable:true}" href="[link-to-mp3]"></a>

Thanks

Can it be smaller than your size 0?

Hi,

We are a small set-up selling music CDs.
Each CD has a webpage, on which there is its track listing.
I want to replace the current 'flash player' for each track, with a cross-browser HTML5 audio player .

We want it to be physically very small (max height ~16px), with the following controls:

Is miniAudioPlayer right for the job?

  • can there be multiple instance on a page?
  • Is it easy to change the display (to small images) i.e. smaller than your size 0
  • When one track is played, can we turn any others off?

Also - the webpage contents (with the track-listing and player) are maintain by content creators without any technical background. Can we minimise/simplify the html they have to enter to something like:
just a div and a track urlRef?

Which would be best place to start - your jquery or your WordPress plugin?

If not, can you direct me to a better place to start. (We don't want to be re-invent wheels)

Thanks

How to autoplay a playlist in mb.miniAudioPlayer

After making a WordPress playlist with mb.miniAudioPlayer, I notice that it will only play one selection at a time. Each selection must be clicked to get it to play. Is there any way to make the playlist play the next song automatically (i.e., auto-play)?

Also, how can I make the playlist window bigger (longer) so that it displays more than ten tracks? Here’s the page in question: https://musicinsideout.wwno.org/2020/11/21/winter-playlist/

Thanks,
Lars

Progress line twitch

Increase animation of progress line is incorrect. When track is playing, progress line jumps to some pixels back sometimes.

You can reproduce the bug in the first player of a "demo.html" page. Browser: Google Chrome.

.mb_miniPlayer is not a function

Hello,

with certain themes it doesn't work.
It seems that the script is no registered:

Uncaught TypeError: jQuery(...).not(...).not(...).mb_miniPlayer is not a function
    at initializeMiniAudioPlayer ((index):2292)
    at HTMLDocument.<anonymous> ((index):2302)
    at i (jquery-2.2.4.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2)
    at Function.ready (jquery-2.2.4.min.js:2)
    at HTMLDocument.J (jquery-2.2.4.min.js:2)

Player not showing in post

When I add an mp3 file, it shows up perfectly in the edit page, but when I go to the post page it looks like this:
image

It will play (which is more than the wordpress inbuilt player did) but the skin is missing. Tried to make my own skin - no difference.

mb_miniPlayer_changeFile search for 'length'

Hello,

using the mb_miniPlayer_changeFile throws the following exception:

jquery.js?ver=1.12.4-wp:2 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in http://www.miaowmusic.com/mp3/Miaow-04-Lismore.mp3
    at s (jquery.js?ver=1.12.4-wp:2)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at a.jPlayer._absoluteMediaUrls (jquery.mb.miniAudioPlayer.min.js?ver=1.9.3:10)
    at a.jPlayer.setMedia (jquery.mb.miniAudioPlayer.min.js?ver=1.9.3:10)
    at HTMLDivElement.<anonymous> (jquery.mb.miniAudioPlayer.min.js?ver=1.9.3:9)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
    at a.fn.init.a.fn.jPlayer (jquery.mb.miniAudioPlayer.min.js?ver=1.9.3:9)
    at a.fn.init.changeFile [as mb_miniPlayer_changeFile] (jquery.mb.miniAudioPlayer.min.js?ver=1.9.3:8)
    at HTMLButtonElement.onclick ((index):432)

I just test it with a simple example button

<button onclick="$('#mbmaplayer_1').mb_miniPlayer_changeFile('http://www.miaowmusic.com/mp3/Miaow-04-Lismore.mp3',false,'Lismore (mp3)')">Lismore (mp3)</button>

«&nbsp; around download link in list download shorcut

In the mb.miniAudioPlayer wordpress extension some «  are added on each side of the download link. Example :

<a class="map_download" href="https://ensemblealauda.fr/blog/wp-content/uploads/2022/02/Gloria-Melenaour-Tenor.mp3" download=" «&amp;nbsp;Gloria (Melenaour) - Ténor&amp;nbsp;» .mp3" style="display: inline-block; cursor: pointer;" title="download: «&amp;nbsp;Gloria (Melenaour) - Ténor&amp;nbsp;» ">d</a>

Thanks

How to embed mp3 player in datatable

Hi,

Assume i have 5 rows and have links of mp3 file in each row of a cell.

How to integrate the miniaudioplayer? Can the miniaudioplayer auto-detect all such links and add mp3 player near to it?
Thanks.

AUTOPLAY

autoPlay:true doesnt work
autoplay:true does work

Question about your project

Can ogg files be played on iOS devices these days?

I have had so much trouble trying to play Ogg files inside mobile safari on my iPhone or iPad.

Does your script support that feature?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.