Skip to content

Commit dc8fff9

Browse files
committed
Doc
1 parent 5e39003 commit dc8fff9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22

33
https://www.reddit.com/r/ProgrammerHumor/comments/jtnrlk/everyone_loves_pointers_right/?utm_source=share&utm_medium=web2x&context=3
44

5-
```bash
5+
### Build
6+
```
67
$ ./gradlew shadowJar # requires vlc to be installed
78
# copy config.vibin.json next to the built jar and customize it
89
$ java -jar build/libs/vibin-0.1.0.jar # or simply double-click
910
```
11+
12+
### Controls
13+
- The window is freely movable by dragging it.
14+
- Left-click to play next item
15+
- Mouse wheel to adjust volume
16+
- Middle mouse button to close it
17+
18+
### Side notes
19+
Requires vlc to be installed as it uses libvlc under the hood.

src/main/kotlin/marais/vibin/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun main(args: Array<String>) {
3232
frame.size = Dimension(128, 128)
3333
frame.layout = BorderLayout()
3434

35-
val factory = MediaPlayerFactory("--loop")
35+
val factory = MediaPlayerFactory()
3636
val playerComponent = EmbeddedMediaPlayerComponent(factory, null, UnsupportedFullScreenStrategy(), InputEvents.DISABLE_NATIVE, null)
3737
val player = playerComponent.mediaPlayer()
3838
player.video().setScale(0.5f)

0 commit comments

Comments
 (0)