Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos and Images in different layers #48

Open
AlainCx opened this issue Feb 3, 2022 · 8 comments
Open

Videos and Images in different layers #48

AlainCx opened this issue Feb 3, 2022 · 8 comments

Comments

@AlainCx
Copy link

AlainCx commented Feb 3, 2022

Hello,
I'm starting a new project involving layers and I'm not familiar with this in Pipresents.
I want to display small images above playing videos. The images will be triggered touching some areas on a touchscreen while a video is playing, then closed touching them (or after a few seconds) without interrupting the video.
Is it possible with pipresents ?
With a Radiobuttonshow ?
With VLC or OMX player ?
Thanks for your help !

@KenT2
Copy link
Owner

KenT2 commented Feb 3, 2022

Unfortunately you cannot display images above videos. It is a limitation or the Raspberry Pi not of Pi Presents. No difference between VLC and omxplayer in this respect.

You could turn images into a video offline and display on a different layer. You can display images elsewhere on the screen or on a second display triggered by a touch area that is in the area of the video.

A Radiobuttonshow would not work because the video would be stopped. I think the best way is to use a mediashow for the video and 'Show Control on Event' to start a new show.

Actually you have given me an idea for a new type of show which you would do similar to this in a more streamlined fashion.

@AlainCx
Copy link
Author

AlainCx commented Feb 3, 2022

Thank you very much for you speedy answer !

So it could work if I turn my images into looped videos inside a subshow in a Mediashow right ?
The looped videos could be stopped and disappear with a touch ?

If so I think I could build my project with pipresents !

@AlainCx
Copy link
Author

AlainCx commented Feb 3, 2022

Another question :

I'd like to have a touchable menu that would offer to play many videos.
While playing full screen, in top of each video, as I explained before, a small looped video coud appear if the user touch the screen.

Is the Mediashow solution compatible with a touchable home menu ?

Thanks again

@KenT2
Copy link
Owner

KenT2 commented Feb 3, 2022

I think the best way is to use a mediashow for the video and 'Show Control on Event' to start a new show. You can define many 'click areas' each playing a different video.

You are on the right track but you cannot use a subshow of a mediashow (a child track) as only one of these is allowed per show. What you need to do is to open a new top level show using 'show control on event'.

Not sure about stopping a looped video by touch either as you cannot associate more than one command with a click area.
The other possibility is the stop command is associated with the click area in the video track but I don't think this will be reliable as an input event is passed to all shows.

Best to use a single run track or show a stop button when the track is playing.

@AlainCx
Copy link
Author

AlainCx commented Feb 3, 2022

Ok, I think I'm beginning to understand...
I'll try this next week or the other, and maybe I'll post some questions here. I'll try to do it by myself and not disturbing you...

Thanks

@KenT2
Copy link
Owner

KenT2 commented Feb 3, 2022

I was interested to see if what you wanted could be done so I knocked up a profile which is attached.
To get the videos to stop was easy, just define a click area that is used only in the appropriate video show.
I got caught out because I did not include pp-spawnx no-command entries in the controls fields to enable the click area. Its not clear in the manual that you need to do this.
stream.zip
.

@AlainCx
Copy link
Author

AlainCx commented Feb 3, 2022

It's very kind of you Ken !
I'll test it very soon.

@KenT2
Copy link
Owner

KenT2 commented Feb 3, 2022

No problems. Doing this type of thing is a new idea for me.

Forgot to say the click areas are top left and top right of the video
You need to run fullscreen to get the registration correct
You can hide the click area flashes by making the areas transparent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants