Audio 100% (for responsive) #283

Closed
bzmillerboy opened this Issue Oct 29, 2011 · 6 comments

Comments

Projects
None yet
5 participants

I know there has been support for but it does appear this works for . Any solutions?

Collaborator

johndyer commented Nov 21, 2011

Sounds like a fun feature, but it would require some coding. Would you like to give it a shot and send a pull request?

Contributor

garrettjohnson commented Dec 6, 2011

Hacked something together to get the job done. johndyer#316

Collaborator

johndyer commented Dec 6, 2011

IN 2.4.2

@johndyer johndyer closed this Dec 6, 2011

I don't quite understand how to implement the responsive resizing on the audio player. I tried mimicking the example file with the responsive video player, but when the window shrinks, the player's heigh increases, and the controls disappear. I know it's something I'm doing wrong, but I'm not quite sure what.

I hate to impose on the generosity you gentlemen have shown by sharing your talents here, but do you think it would be possible to include an example implementation of the responsive audio player? Or, if you you wanted to drop some hints, I could try and put together an example and commit it back.

codfish commented Jun 11, 2013

Hey @eimajenthat , just in case you haven't gotten your answer, or for those people like me who stumble upon this page looking for an answer...if you just specify a width of '100%' (string), you should be good to go.

$("audio").mediaelementplayer({
    audioWidth: '100%'
});

@codonnell822 , thanks for the tip. I will try this next time the issue comes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment