You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- adjust settings, and enter name of slideshow browser source (if using hotkeys)
22
+
4. Update slideshow & list of images
23
+
This can be done 2 different ways, and must be done whenever images are added/removed/renamed, or slideshow settings are changed
24
+
25
+
A) With Lua script in OBS:
26
+
- Press the Refresh button in the script's settings, or press the Refresh hotkey
27
+
28
+
B) Without Lua:
29
+
- Run RefreshImagesW.cmd or RefreshImages.sh to update the list of images (they do the same thing)
30
+
- Refresh the browser source by toggling its visibility from the Sources dock in OBS
31
+
- settings can be adjusted by opening settings.js in a text editor
32
+
5. *** Repeat step 4 whenever you add/remove/rename images or update the settings! ***
33
+
34
+
> settings.js
10
35
mode:
11
36
0: Random order (default)
12
37
1: Alphabetical order
13
38
2: Alphabetical order (start on random image)
14
39
slideDuration: duration in milliseconds (default 4000)
15
40
stopOnLastImage: if true, the slideshow will not repeat. (default false)
16
-
41
+
startWithAutoplay: if true, the slideshow will start playing automatically. untick this option if you wish to control slides manually via hotkeys.
42
+
autoplaying/paused can be toggled with hotkeys, regardless if this option is enabled or not
17
43
18
-
Setup
19
-
0. Download the zipped files from github or the releases page
20
-
- save & unzip somewhere in your Documents folder (not in obs plugins folder)
21
-
1. Add a browser source in OBS:
22
-
- Add Source > Browser
23
-
- Choose local file "BrowserImageSlideshow.html"
24
-
- Remove Custom CSS
25
-
- Enable "Shutdown source when not visible" and "Refresh browser when scene becomes active" options.
26
-
2. Place your slideshow images in the "images" folder (ex. jpg, png, gif)
27
-
3. (Optional) Add the lua script:
28
-
- in OBS Studio: Tools > Scripts
29
-
- Add RefreshImagesLua.lua, select the script to view and change settings.
30
-
- this is purely an alternative to using RefreshImagesW.cmd or RefreshImages.sh in step 4
31
-
4. Refreshing images/settings
32
-
- This must be done whenever images are added/removed/renamed, or when settings are updated.
33
-
- Run RefreshImagesW.cmd (windows) or RefreshImages.sh (linux) by double-clicking it.
34
-
- (optional) Or, if using lua script: select RefreshImagesLua.lua & press Reload Scripts button next to +-
35
-
- Finally, refresh the source in OBS by toggling its visibility
36
-
5. *** Repeat step 4 whenever you add/remove/rename images or update the settings! ***
44
+
> Additional Lua Settings
45
+
Browser source name: this tells the lua script which browser source to send hotkey events to. you can ignore this setting if not using hotkeys
37
46
47
+
> Hotkeys - Requires lua script (see step 3)
48
+
Pause: pause playback
49
+
Resume: resume playback (if autoplay setting is off, this will still enable autoplay)
50
+
Next: show the next slide
51
+
Previous: show the previous slide
52
+
Toggle visible: hide/show slideshow without pausing/restarting
53
+
Toggle pause: same as pause/resume, but on a single hotkey
54
+
Restart: restart the slideshow without checking for new images or settings
55
+
Refresh: refresh browser source & restart slideshow. changes to images & settings will be reflected
38
56
39
-
Notes
40
-
- Adding RefreshImageLua.lua to OBS Studio is optional. If not using lua, refreshing images & settings can be done
41
-
by running RefreshImages.sh or RefreshImagesW.cmd
42
-
- Updating settings via the lua script will overwrite settings.js.
43
-
- The optional lua script may not work with OBS on Linux; please use RefreshImages.sh instead.
57
+
> Notes & tips
58
+
- Save slideshow somewhere that doesn't require admin permissions, such as in your Documents, and not in the default plugins folder
44
59
- Filenames with uncommon characters may not display
60
+
- Images in subfolders within the "images" folder will not be shown
61
+
- RefreshImages.sh and RefreshImagesW.cmd do the same thing; make a list of files within the images folder. depending on your pc, you may be able to run one, but not the other
62
+
- This slideshow & its scripts write to settings.js and images/images.js
45
63
- EXIF data is ignored; images taken with a camera may not appear rotated correctly
46
-
- RefreshImages: these scripts will write the names of all images to a text file, which is used by the browser source.
47
64
- This resource has only been tested on Windows. I have not done extensive testing
48
-
- RefreshImages.sh and RefreshImagesW.cmd do the same thing. one was added later because of compatibility issues
49
-
50
-
This script uses compressed jquery (used for animating slide transitions)
65
+
- if using multiple slideshows, copy the entire slideshow folder, rathern than individual scripts, and add to OBS.
66
+
67
+
This script uses compressed jquery
51
68
https://jquery.com/
52
-
53
-
Issues
54
-
- because of the way script(s) write to a file, a harmless command window may pop up briefly when the script is run.
55
-
Haven't found a way to suppress this yet.
69
+
70
+
> Issues
71
+
- 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.
0 commit comments