question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: Add background=1 ability

See original GitHub issue

First, is background=1 deprecated?

I have a PRO account and even when I disable ALL embed preferences, you can still see a pause button when you hover over a video, which makes it annoying if you want to have a silent, short, and looping video in the background of your header to your homepage.

However, I can still use background=1 in the iframe source and have it go away. But that option has been removed from the official documentation and it’s not an option in player.js

I have this crappy work around but I’d rather not do this

var player new Vimeo.Player('elementId', options);
player.ready().then(function(){
      var src = $('iframe').attr('src');
      $('iframe').attr('src', src + "&background=1");
    });

Please don’t deprecate/remove this feature!!

And please add it as part of an option in player.js!

thank you

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
FranciscoGcommented, Aug 5, 2016

So I took a stab at it and got it working in a sort of hack work-around. It’s all in the embed.js file. Just a few lines of code: ( disregard the typo in my branch name 😜 )

https://github.com/FranciscoG/player.js/blob/backgound-option/src/lib/embed.js#L21

https://github.com/FranciscoG/player.js/blob/backgound-option/src/lib/embed.js#L45

https://github.com/FranciscoG/player.js/blob/backgound-option/src/lib/embed.js#L93

it looks like the iframe html is being generate in an ajax called to the vimeo url. Background is being submitted but is stripped out in the return object, so I add it back in on the return.

I’m not going to submit a pull request cause I don’t think what I wrote is great, plus it needs tests, but I do hope it’s something you consider adding. 😄

0reactions
luwescommented, Feb 6, 2018

This has been added for a while I believe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] ability to add a frame instantly
What I do now to do so is once paste the clip onto Adobe XD and add shadow around the image. I'd love...
Read more >
Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >
Ability to change Virtual Background from API
I would like the ability to change the users virtual background via the API. ... Has there been any movement on this feature...
Read more >
how to draw on google slides - macellerialucio.it
2561 I would like to be able to draw-on/annotate my slides with a touch device ... Change the Text and background 1 to...
Read more >
Feature Request - Allow Product and Services Selection when ...
They might consider adding the option you need in future updates. ... send a request to make improvements to QuickBooks Online's capability.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found