I’m trying to play my video located at. Home/pi/video. And how is the volume controls once it starts ?
Code: Select all
. #!/usr/bin/env python3 from omxplayer.player import OMXPlayer from pathlib import Path from time import sleep VIDEO_PATH = Path("../tests/media/test_media_1.mp4") player = OMXPlayer(VIDEO_PATH) sleep(5) player.quit() [ /code]