Skip to content

Commit 3a6c0ea

Browse files
2 parents cdfa5a7 + e2c3a63 commit 3a6c0ea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
11
# gstreamer-player
2+
3+
Audio player based on [gstreamer](https://github.com/GStreamer/gst-python).
4+
5+
## Install
6+
7+
### Prerequisites
8+
9+
Debian/Ubuntu/Rasbian:
10+
```bash
11+
sudo apt-get install python-gst-1.0 \
12+
gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 \
13+
gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly \
14+
gstreamer1.0-tools
15+
```
16+
17+
Redhat/Centos/Fedora:
18+
```bash
19+
sudo yum install -y python-gstreamer1 gstreamer1-plugins-good \
20+
gstreamer1-plugins-ugly
21+
```
22+
23+
If you're using a Python virtual environment, symlink the system Python's `gst` into your env's `site_packages`.
24+
25+
### Python module
26+
27+
`pip install gstreamer-player`
28+
29+
## Usage
30+
31+
```python
32+
from gsp import GstreamerPlayer
33+
34+
player = GstreamerPlayer(None)
35+
36+
player.queue("/path/to/audio.mp3")
37+
```

0 commit comments

Comments
 (0)