'_ServerPlaybackInfoListener',
function(msg, listener) {
if (msg.action === 'onplaybackstaterequest') {
- listener[msg.action](msg.state);
+ native_.callIfPossible(listener[msg.action], msg.state);
}
if (msg.action === 'onplaybackpositionrequest') {
- listener[msg.action](msg.position);
+ native_.callIfPossible(listener[msg.action], msg.position);
}
if (
msg.action === 'onshufflemoderequest' ||
msg.action === 'onrepeatmoderequest'
) {
- listener[msg.action](msg.mode);
+ native_.callIfPossible(listener[msg.action], msg.mode);
}
}
);