Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyOMXPlayer-ng

Control OMXPlayer from Python on the Raspberry Pi.

A completely rewritten version of PyOMXPlayer utilising OMXPlayer's DBus interface.

Hello world

WARNING: Don't have an RPi to test this at the moment, please report an issue if this doesn't work!

from pyomxplayerng import OMXPlayer
from time import sleep

# This will start an `omxplayer` process, this might 
# fail the first time you run it, currently in the 
# process of fixing this though.
player = OMXPlayer('path/to/file.mp4')

# The player will initially be paused

player.play()
sleep(5)
player.pause()

# Kill the `omxplayer` process gracefully.
player.quit()

About

A wrapper written in python for OMXPlayer

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages