mediaelement/mediaelement

Audio 100% (for responsive)

bzmillerboy opened this issue · 6 comments

I know there has been support for

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

Hacked something together to get the job done. #316

IN 2.4.2

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.

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.