auto play

Asked by thereisnothername

I have another question. I realize this may be a python or other programing thing but here goes.

I would like to set up a folder, put a bunch of videos in that folder, and tell totem to play them all one at a time over and over automatically every time it starts.

I don't expect there is any easy way to do this.

Still, I'd kick myself if I spent a day programming and then found out I didn't need to.

Please let me know.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu totem Edit question
Assignee:
No assignee Edit question
Solved by:
thereisnothername
Solved:
Last query:
Last reply:
Revision history for this message
Florian Diesch (diesch) said :
#1

Just a few lines of shell code:

------------------------------------------------------------------------------------------------
#!/bin/sh

# the folder that contains your video files
DIR="$HOME/my_cool_videos/"

# save the current value of the 'repeat' config setting
old_repeat="$(gconftool --get /apps/totem/repeat)"

# set 'repeat' to true
gconftool --type bool --set /apps/totem/repeat true

# start totem and play the videos
totem "$DIR"/*

# restore the old value of the 'repeat' config setting
gconftool --type bool --set /apps/totem/repeat "$old_repeat"
------------------------------------------------------------------------------------------------

Revision history for this message
thereisnothername (scottupchurch) said :
#2

You rock hardcore!

Thank you...

Revision history for this message
thereisnothername (scottupchurch) said :
#3

# start totem and play the videos
totem --fullscreen "$DIR"/*

Will adding fullscreen like that work as well?

I was going to just try it without asking but with my luck, that might blow something up. (I have a habit of getting ahead of myself)

Revision history for this message
thereisnothername (scottupchurch) said :
#4

Nevermind, it just outright works perfectly :-)