In my mind this project will rely on 3 pivotal Python Scripts:
1. Media Compiler
Ran at boot up, this script will Locate the media directories on an attached memory stick, at locations such as:
Media/PeppaPig
Media/FrozenSongs
Media/DespicableMe
As well as the memory stick content I will have a smaller directory on the SD that will be included too.
Once located the files in the directories will be compiled into a list to be passed to the Video playing script.
script 2 will then be triggered to capture the button requests.
2. Button Press Monitor
This will monitor the serial port to listen for incoming button presses, then pass information to the main video player.
For example, if button one is pressed (a nice bright pink arcade button to trigger the playing of Peppa Pig videos) the script will pass the Media/PeppaPig Directory location from the compiler script to the video layer and refresh. If button 3 is pressed (a minion-yellow one at that :-) ) it will pass the Media/DespicableMe Directory location and refresh.
It will also pass the next/previous button presses to the layer to skip through videos within the directory.
3. Video Player GUI
Using PyGame & PyMedia libraries I will aim to create a simple GUI that will be ran upon either from the desktop or instead of it. Not sure if Python GUIs would show if the whole start x thing isn't ran?
Anyhow, this player will simply loop through a given directory playing all contents in a loop. Skipping to the previous/next video will be possible via button presses.
Eventually I would like to expand this GUI to utilise the playing of Youtube videos etc if links are present in the directory.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.