Starts a video upon receiving a remote signal delivered by UDP: Use info-beamer hosted to easily deploy the video to any number of Pis. Then trigger simultaneous video playback from another machine by sending a UDP package to each Pi.
- Install info-beamer hosted OS on a Pi.
- Before you boot up the device, add the file
/config/bind_addressto the first partition of your SD card and put in
0.0.0.0. This will make the info-beamer process running on the device reachable from outside. See also the documentation. If you skip this step, the following commands won't work!
- If your network has DHCP but doesn't guarantee stable IP addresses, you might want to statically configure your network. See the documentation for that.
- Import this package (click the button above)
- Create a setup based on this package and configure the video you want to play.
- Assign the setup to your device
- Find out the IP address of your device. You can see the local IP address of each device on the device detail page.
From another machine, if bash is used as a shell (of course replace the IP with the IP of your device):
$ echo root/trigger: > /dev/udp/192.168.1.XXX/4444
This will trigger your video. Additional triggers while the video is playing are ignored and won't restart the video. If you want to abort the current playback (and then later restart it), use
$ echo root/abort: > /dev/udp/192.168.1.XXX/4444
You can of course use any other network capable programming language to send those UDP packets instead of using bash. And there's no reason to just use a single Pi: The more, the better :-)
Right now this package requires a custom UDP packet to trigger the video and only one video can be triggered. It wouldn't be too difficult to support the OSC protocol as well. This would allow this package to integrate into existing AV solutions. Get in contact if you're interested in this.
Of course you can also open a ticket if you have other suggestions.
Want to run Remote Triggered Video Player on your Raspberry Pi?
This package is ready to run on your Raspberry Pi using info-beamer.com hosted. Easily manage unlimited number of Raspberry Pi devices and centrally configure and run visualizations like this on them. info-beamer.com is a prepaid service. You only pay for the resources you are using. No long term commitment, no hidden fees. Learn more...
Compatible devicespi-0 pi-1 pi-2 pi-3 pi-cm1 pi-cm3
Source code for this packagehttps://github.com/info-beamer/package-video-trigger shows you the full source code of this package so you can freely modify it if you want.
Copyright (C) 2017 Florian Wesch <email@example.com> Show full license information
Copyright (C) 2017 Florian Wesch <firstname.lastname@example.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This project includes third party work: package.png: CC0 https://pixabay.com/en/icon-icons-button-buttons-theme-354295/