File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments