Skip to content

wirewirewirewire/balena-player

Repository files navigation

Omx Media Player with Strapi Config

This is a simple skeleton Express server project that works on any of the balena supported devices.

This project serves up "Hello World!" on port :80 of your balena device.

To get this project up and running, you will need to signup for a balena account here and set up an application and device. You'll find full details in our Getting Started tutorial.

Once you have downloaded this project, you can balena push it using the balenaCLI. This command will package up and push the code to the balena builders, where it will be compiled and built and deployed to every device in the application fleet. When it completes, you'll have a node.js web server running on your device and see some logs on your balenaCloud dashboard.

To give your device a public URL, access the device page on the balenaCloud dashboard, and choose the Public Device URL toggle. Alternatively, you can point your browser to your device's IP address.

Docker Composer: balena-player: build: ./balena-player volumes: - "11dev:/usr/src/app" - "workdir:/usr/src/app/media" privileged: true labels: io.resin.features.dbus: "1" io.resin.features.kernel-modules: "1" io.resin.features.firmware: "1"

Automatic loop

Replace the ID by the file number in the Files repeater.

await this.OmxPlayFile(this.getFileById(43),600)
this.RestartMain();

Example:

if(currentLanguage === "de") { changeLanguage("en"); const file = playersettings.basepath() + _config[button_order_select].file;

play(files[currentlyPlaying.replace("de", "en")]);

omxplay_loop(file);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published