Git Product home page Git Product logo

browserimageslideshow's Introduction

BrowserImageSlideshow
https://github.com/dustymethod/BrowserImageSlideshow
Discussion & support: https://obsproject.com/forum/threads/browser-image-slideshow.110157/

A local browser source that plays images in random or alphabetical order.
Displays each image exactly once per loop.
Useful for slideshows that may exceed OBS's slideshow's 250mb ram limit. Works offline.

settings.js (open in any text editor. ex right click > Open with > Notepad)
    mode:
        0: Random order (default)
        1: Alphabetical order
        2: Alphabetical order (start on random image)
    slideDuration: duration in milliseconds (default 4000)
    stopOnLastImage: if true, the slideshow will not repeat. (default false)
    

Setup
0. Download the zipped files from github or the releases page
    - save & unzip somewhere in your Documents folder (not in obs plugins folder)
1. Add a browser source in OBS:
    - Add Source > Browser
    - Choose local file "BrowserImageSlideshow.html"
    - Remove Custom CSS
    - Enable "Shutdown source when not visible" and "Refresh browser when scene becomes active" options.
2. Place your slideshow images in the "images" folder (ex. jpg, png, gif)
3. (Optional) Add the lua script:
    - in OBS Studio: Tools > Scripts
    - Add RefreshImagesLua.lua, select the script to view and change settings.
    - this is purely an alternative to using RefreshImagesW.cmd or RefreshImages.sh in step 4
4. Refreshing images/settings
    - This must be done whenever images are added/removed/renamed, or when settings are updated.
    - Run RefreshImagesW.cmd (windows) or RefreshImages.sh (linux) by double-clicking it.
    - (optional) Or, if using lua script: select RefreshImagesLua.lua & press Reload Scripts button next to +-
    - Finally, refresh the source in OBS by toggling its visibility
5. *** Repeat step 4 whenever you add/remove/rename images or update the settings! ***


Notes
    - Adding RefreshImageLua.lua to OBS Studio is optional. If not using lua, refreshing images & settings can be done
    by running RefreshImages.sh or RefreshImagesW.cmd
    - Updating settings via the lua script will overwrite settings.js.
    - The optional lua script may not work with OBS on Linux; please use RefreshImages.sh instead.
    - Filenames with uncommon characters may not display
    - EXIF data is ignored; images taken with a camera may not appear rotated correctly
    - RefreshImages: these scripts will write the names of all images to a text file, which is used by the browser source.
    - This resource has only been tested on Windows. I have not done extensive testing
    - RefreshImages.sh and RefreshImagesW.cmd do the same thing. one was added later because of compatibility issues
    
Issues
    - because of the way script(s) write to a file, a harmless command window may pop up briefly when the script is run.
    Haven't found a way to suppress this yet.

browserimageslideshow's People

Contributors

dustymethod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.