-
Notifications
You must be signed in to change notification settings - Fork 260
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
help: I can't put an animated background #236
Comments
Hi, sorry you are having a problem with nightTab. Can you provide a few more details please:
|
URL: https://www.youtube.com/watch?v=Gv2ynaXDuOQ |
Thanks for those extra details. I'm afraid youtube videos can't be used as backgrounds. That URL is the address to a youtube page. I'm afraid nightTab only supports direct links to MP4 files, eg: https://pixabay.com/videos/download/video-40581_large.mp4 |
Hi, I found a way that you can make this work, but it's a 'hack-around' and requires VLC. I tested it myself. I found a forum discussion to get the direct URL from a Youtube video. Here are the steps to follow:
Link to the actual discussion: |
Great find @Marcelx8! I think you just cracked it. I think I hit a problem with my helper function not working well with the URL when using the method you found. But I might be able to change the way the I'll see what I can do. |
Alternatively, a local file server can be set up that could contain all the backgrounds, images, icons, and other stuff you would like to use, I was able to download the provided video, and put it on an IIS server. Of course, this method requires a lot of setup and it's not exactly simple, just putting it out there, though. |
@zombieFox I'm glad this helped. :) |
@Dawid8plc you are right. Maybe even have a local folder location selectable to read images and videos from. Almost how a gallery would display the contents of the directory. I guess this topic now extends to adding new features 😄 |
Being able to use files from the drive would indeed be a really useful feature, although not sure if Chrome Extensions can access folders like that. |
This has been asked before in other posts, (I'm too lazy to dig them out right now). But the tl;dr is because nightTab does not store user data (to a database or an account) it stores bookmarks and theme settings in the browsers local storage. So the space is very limited. The background image feature which I added allows a user to search for a local file. That is as much as an extension can do, open local files but not access whole directories. (And in retrospect allowing users to access local images for the background has caused issues with hitting the max space in local storage [along with a few other issues]. Hosting is really the safer option.) @Dawid8plc suggestion is what I have been recommending in other posts, users who want more videos or images have to host them somewhere. Then link to individual files with URLs. But this requires end users to do some set up on something like a private GitHub repo, or Imgur. |
@zombieFox |
I can't tell about YouTube video but I used videos from pixabay.com
|
@RohitHazra whoa, interesting method! |
I found another way to get the animated video background from youtube, a file from your pc or any streamable video.
Message to @zombieFox , maybe try making a discord server where people can upload their files, so they can use the links. (U can have people boost the server for bigger uploads) |
Background Image not working |
@NotDevName2 If thats the link you're using, thats not a link to an image. Thats a link to a webpage that has an image. You need a direct link to the image, in this case https://cdn.pixabay.com/photo/2022/04/29/04/01/pasta-7162435_960_720.jpg is the image used on that web page. To get image urls, its quite simple. Right click on the image and click "copy image link" as show in image below: Certain sites, like instagram prevent you from copying images like this so you'll need to dig into the devtools to find image urls. |
Hello,
When I put the MP4 video link as background nothing happens
I would like to know which link works to put an animated background
The text was updated successfully, but these errors were encountered: