I've got a Pi with a Adafruit TFT LCD installed.
I'm using omxplayer and fbcp to stream videos at startup using python, like so:
# Start Loop
ct = 1
video_list = glob.glob('videos/*')
os.system('fbcp &')
while ct < 300:
ct += 1
for val in video_list[::-1]:
os.system('omxplayer "%s"' % val)
os.system('sudo killall fbcp')
Now I can get video to show up directly on the LCD.
I'm also wanting to throw a browser window into my loop. I understand how to do so pythonically, but cannot get a browser window to pop up on the fb1. I've tried multiple browsers with no luck.
chromium;
pi@raspberrypi ~ $ chromium --kiosk --start-maximized www.google.com
(chromium:2786): Gtk-WARNING **: cannot open display:
I've tried others, but that was my latest attempt. Anything I've googled I've not got good answers for, because I think most everyone is trying to output these browsers after startx, and they don't want to be able to control them after.
I want to be able to do a loop in Python to switch between browser and omxplayer, something like below:
os.system('chromium --kiosk --start-maximized www.google.com')
time.sleep(60)
os.system('exit chromium') # Or whatever the exit command is, I can find that
#Now do omxplayer video loop
os.system('omxplayer %s' % val)
#Exit omxplayer, restart browser
#Restart omxplayer