-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
ON raspberry pi 2, jessie version event Time is not fired because "A:" time change is sent to SDTERR instead of STDOUT so changing code like below, makes it better :)
onError: function(error) {
if(this.options.debug) {
console.log('stderr: ' + error);
}
data = error.toString();
if(data.indexOf('A:') > -1) {
var timeStart, timeEnd, time;
if(data.indexOf(' V:') !== -1) {
timeStart = data.indexOf(' V:') + 3;
timeEnd = data.indexOf(' A-V:');
} else {
timeStart = data.indexOf('A:') + 2;
timeEnd = data.indexOf(' (');
}
time = data.substring(timeStart, timeEnd).trim();
this.emit('timechange', time)
}
}
ENV:
RPI 2, Jessie
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels