Hi Peter,
the "problem" is here:
if ($all_mounted === 0) {
runelog('wrk_SY: try to mount all shares!');
$all_mounted = wrk_sourcemount($redis, 'mountall');
if ($all_mounted === 1) {
runelog('wrk_SY: all shares mounted successfully!');
// start play if enabled
if ($redis->get('mpd_autoplay') === '1') {
sysCmd('/usr/bin/mpc play');
}
} else {
$retries_mounting++;
runelog('wrk_SY: error mounting shares, try it again! Count: '.$retries_mounting);
if ($retries_mounting > 20) {
$all_mounted = 1;
runelog('wrk_SY: mounting: tried it 20 times (10 seconds) => capitulating!');
ui_notify_async('ERROR','Failed to mount network shares');
}
usleep(500000);
}
}
https://github.com/hondagx35/RuneUI/blob/0.4b/command/rune_SY_wrk#L931
The autoplay feature only works if all mounts are up and running.
At the time a wrote this piece of code I didn't think about webstreams.
For me autoplay only makes sense then all mounts are available because you need files to play.
You can try to modify the file "/var/www/command/rune_SY_wrk" like this:
// start play if enabled
if ($redis->get('mpd_autoplay') === '1') {
sysCmd('/usr/bin/mpc play');
}
if ($all_mounted === 0) {
runelog('wrk_SY: try to mount all shares!');
$all_mounted = wrk_sourcemount($redis, 'mountall');
if ($all_mounted === 1) {
runelog('wrk_SY: all shares mounted successfully!');
} else {
$retries_mounting++;
runelog('wrk_SY: error mounting shares, try it again! Count: '.$retries_mounting);
if ($retries_mounting > 20) {
$all_mounted = 1;
runelog('wrk_SY: mounting: tried it 20 times (10 seconds) => capitulating!');
ui_notify_async('ERROR','Failed to mount network shares');
}
usleep(500000);
}
}
Frank