Multiple jukeboxes

From JinzoraWiki

Jump to: navigation, search

Introduction

In Jukebox Mode, Jinzora controls another application or hardware device, that's responsible for sending or forwarding the stream to the final player. All Jukebox related parameters are stored in /jukebox/settings.php.

The contents of this particular 'settings.php' is an array that can be dynamically expanded to control more than one jukebox application or hardware device.

Please note: With this kind of setup, you cannot control the configured jukeboxes simultaneously, but you can switch between jukeboxes to decide which one to control. This is done in the Jukebox Block in your Interface.

Below is an example 'settings.php' that uses the array function 'jbArr' to control 4 jukeboxes: MPD that's installed locally on the Jinzora Server and 3 instances of VLC running on different clients.

Example

<?php 
// MPD:
$jbArr[0]['description'] = 'Server room';
$jbArr[0]['server'] = "localhost";
$jbArr[0]['port'] = "6600";
$jbArr[0]['password'] = "PASS";
$jbArr[0]['type'] = "mpd";
// VLC 1:
$jbArr[1]['description'] = 'Living room';
$jbArr[1]['type'] = 'vlc';
$jbArr[1]['host'] = '192.168.0.100';
$jbArr[1]['port'] = "8080";
$jbArr[1]['password'] = "PASS";
$jbArr[1]['prefix'] = "http"; // use weblinks instead of local paths
// VLC 2:
$jbArr[2]['description'] = 'Kitchen';
$jbArr[2]['type'] = 'vlc';
$jbArr[2]['host'] = '192.168.0.101';
$jbArr[2]['port'] = "8080";
$jbArr[2]['password'] = "PASS";
$jbArr[2]['prefix'] = "http"; // use weblinks instead of paths
// VLC 3:
$jbArr[3]['description'] = 'Bed room';
$jbArr[3]['type'] = 'vlc';
$jbArr[3]['host'] = '192.168.0.102';
$jbArr[3]['port'] = "8080";
$jbArr[3]['password'] = "PASS";
$jbArr[3]['prefix'] = "http"; // use weblinks instead of paths
?>

Related Files

Jukebox settings are done in /jinzora2/jukebox/settings.php

Personal tools