LeX476
Posts: 2
Joined: Mon Jan 13, 2014 4:29 pm

Automated Video "playlist" with loop

Mon Jan 13, 2014 4:37 pm

Hello!
Since Flash is laggy I need to come up with another solution for the videoplayback.

Im currently building a little setup for an exhibition for young kids. And the solution for the cheapest hardware is Raspberry pi I now need some help.
The scenario is:
One main-video is looping, this will display a little animation with two flags and some text. So they get the impression of the ability to choose their language.
When they push for example "a" on the keyboard they choose English language and the little informative movie will play. Then it comes back to the main-videoloop.
And the same thing with the second language, if they press for example "s" that will play.
In flash this would be easy to do but now Im quite stuck. Is it possible to have a playlist in omxplayer to loop the first video untill a button is pressed (hotkey?), and then play video #2 or #3?
Help appreciated!

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: Automated Video "playlist" with loop

Mon Jan 13, 2014 5:19 pm

I reckon you could put together something with my Pi Presents.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

LeX476
Posts: 2
Joined: Mon Jan 13, 2014 4:29 pm

Re: Automated Video "playlist" with loop

Mon Jan 13, 2014 6:11 pm

KenT wrote:I reckon you could put together something with my Pi Presents.
Yeah this one looks nice!
Have played around with it some. I think I should go with pp_mediashow. Tho I cant manage to edit the json's to my likeings. How do I set the first media (video to repeat itself continuously until the kids choose between the two languages that will play?

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: Automated Video "playlist" with loop

Mon Jan 13, 2014 7:27 pm

LeX476 wrote:
KenT wrote:I reckon you could put together something with my Pi Presents.
Yeah this one looks nice!
Have played around with it some. I think I should go with pp_mediashow. Tho I cant manage to edit the json's to my likeings. How do I set the first media (video to repeat itself continuously until the kids choose between the two languages that will play?
Don't edit the json use the gui editor pp_editor.py

You could use a mediashow with a child show. The child show would be a menu with your two selections.

A better way might be to install the beta of the next version [pipresents-next;] with this you can use a radiobutton show:
Create one from the template profile>new
Replace the first track which is a message with a video
make the video window smaller than the screen. (warp)
Use show text or track text to place the 'press 1 to....' text somewhere outside the video window
select suitable background colour or wlse you will get black text on a black background
change the other two tracks to videos.
The key bindings are already set to use 1 and 2 in the radiobuttonshow template.

It would be better to use push buttons than keys unless you have well behaved kids.

Lots of manual reading will be required ;)
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Return to “Graphics, sound and multimedia”