Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing duration controls #27

Closed
protoplaytech opened this issue Nov 4, 2010 · 5 comments
Closed

Removing duration controls #27

protoplaytech opened this issue Nov 4, 2010 · 5 comments

Comments

@protoplaytech
Copy link

Hi John,

I would like to remove the duration controls in the Wordpress player. In just looking around in mediaelementplayer.js I removed...

    var time = controls.find('.mep-time');
    var currentTime = controls.find('.mep-currenttime').html('00:00');
    var duration = controls.find('.mep-duration').html('00:00');

...which certainly had the intended result but also borked the layout of the player. On a side note is there an option for repeat?

@johndyer
Copy link
Collaborator

johndyer commented Nov 5, 2010

So you still want the rest of the controls like play/pause and the progress bar right, just not the duration? And then you also want a looping feature?

I'm guessing I need to add options like this in JavaScript, and then replicate them in Wordpress:
{
loop: true,
controls: {play: true, progressBar: true, duration: true, volume:true}
}

Would that cover what you need?

@protoplaytech
Copy link
Author

Yes sir! That would be great.

@protoplaytech
Copy link
Author

Accidentally closed this.

@johndyer
Copy link
Collaborator

This is now in the core player, and I'll add them to Wordpress soon.

@johndyer
Copy link
Collaborator

This is now in the Wordpress shortcode
[audio src="myfile.mp3" duration="false"]

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants