Skip to content

Commit 625a396

Browse files
authored
Add FAQ to readme
1 parent ced3146 commit 625a396

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,19 @@ You can read the docs at `python-omxplayer-wrapper.rtfd.org
3030
:target: https://codecov.io/gh/willprice/python-omxplayer-wrapper
3131
.. |Say Thanks!| image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
3232
:target: https://saythanks.io/to/willprice
33+
34+
FAQ
35+
----
36+
37+
How do I create multiple players?
38+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
40+
You need to make sure each player has a separate DBus name like so:
41+
42+
.. code-block:: python
43+
44+
player1 = OMXPlayer(file_1,
45+
dbus_name='org.mpris.MediaPlayer2.omxplayer1')
46+
player2 = OMXPlayer(file_2,
47+
dbus_name='org.mpris.MediaPlayer2.omxplayer2')
48+

0 commit comments

Comments
 (0)