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

What options are available #72

Open
PedroKTFC opened this issue Jan 2, 2015 · 2 comments
Open

What options are available #72

PedroKTFC opened this issue Jan 2, 2015 · 2 comments

Comments

@PedroKTFC
Copy link

I'm using osmplayer with the Media Front extension on a Drupal website. I want to tailor its appearance and behaviour but couldn't find any documentation that explains how to configure it. For example, I want to disable the full screen button (I've done this by editing the template file but is this the best way?), I want the controls to always be visible and not automatically hide, I want next/previous track buttons. Is there somewhere that explains how to do this (hopefully, I've missed something blindingly obvious, if so apologies)?

And apologies for raising this as an issue, couldn't see any other way of asking.

Many thanks in advance.

@travist
Copy link
Collaborator

travist commented Jan 2, 2015

No worries raising this issue. The best place that I can recommend getting the information you are looking for is by reading this article which explains how to build your own template to provide custom behavior from the display of the media player.

https://www.drupal.org/node/1563496

@PedroKTFC
Copy link
Author

Thanks Travis.

I've looked at this. However, it doesn't tell me what the capabilities of
osm player are.

I (think I've!) managed to stop the controls automatically disappearing by
commenting these lines out in osmplayer.controller.mytemplate.js:

this.get('player', function(player) {
  if (!this.options.controllerOnly) {
    this.get('media', function(media) {
      if (!media.hasController()) {

// this.showThenHide(5000, function(shown) {
// var op = shown ? 'addClass' : 'removeClass';
player.displayop;
// });
}
else {
player.display.addClass('with-controller');
}
});
}

However, I don't know if this is the best way nor if there are facilities
to fast forward/backward between different files. It's that level of
documentation I'd appreciate.

Thanks again

On 2 January 2015 at 15:16, Travis Tidwell [email protected] wrote:

No worries raising this issue. The best place that I can recommend getting
the information you are looking for is by reading this article which
explains how to build your own template to provide custom behavior from the
display of the media player.

https://www.drupal.org/node/1563496


Reply to this email directly or view it on GitHub
#72 (comment).

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