Skip to content

Commit 3a7d656

Browse files
committed
improve get volume code
1 parent 2b66572 commit 3a7d656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ player.setLoopQueue(true)
200200
Note: all of these setters have a corresponding getter, so if you want to now what the current value is, for example if you want to know what the current volume is set to:
201201

202202
```ts
203-
player.getVolume(volume)
203+
const volume = player.getVolume(volume)
204204
```
205205

206206
now it is time to build your player UI, if you want a good example of such an UI check out the [simple player example](examples/simple-player)

0 commit comments

Comments
 (0)