adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
443 stars 240 forks source link

Disable loop #189

Closed simonemarin closed 9 months ago

simonemarin commented 1 year ago

Hallo this is a feature/help request, how would it be the easiest way to disable the looping function? I need it just to play once a single video. Thanks

JonnyTech commented 1 year ago

Hahaha, forgive my response but I could not help it... This project is pi-video-LOOPER - there is a clue in the name - you need to use a video player, of which there are many. One would not say, how can I drive my car in the ocean, rather than use a boat...

simonemarin commented 1 year ago

Yes you may be right, but this project has all the right setup already (pygame for a nice blank startup, etc.) I have used it for many years and I still think that , despite the name, using it as a single shot video, together with the keyboard shortcuts, would be within the user case, so to say. I tried to dig into the code but have not found an easy way to disable looping yet.

shell3000 commented 1 year ago

Makes sense in an exhibition context, with an external trigger to start a video, motion detection, light, button and so on. VideoLooper exist mostly in this environment, so this question is relevant.

Oppfields commented 9 months ago

This would be a good option to add, there are many occasions where a 'one shot' function could be useful in events, gallery and installation settings.

tofuSCHNITZEL commented 9 months ago

I plan to add this in the next version - you can find a work in progress solution in the current next branch https://github.com/adafruit/pi_video_looper/commit/4b0c616106ac19b24ed902309d3eabf5695f36d2 added this code without testing it yet. maybe you could also see if it fits your needs

tofuSCHNITZEL commented 9 months ago

Makes sense in an exhibition context, with an external trigger to start a video, motion detection, light, button and so on. VideoLooper exist mostly in this environment, so this question is relevant.

check out the new GPIO control feature added in version https://github.com/adafruit/pi_video_looper/releases/tag/v1.0.14

tofuSCHNITZEL commented 9 months ago

Hallo this is a feature/help request, how would it be the easiest way to disable the looping function? I need it just to play once a single video. Thanks

done. this is now possible in https://github.com/adafruit/pi_video_looper/releases/tag/v1.0.15