use of org.fourthline.cling.support.avtransport.callback.Pause in project BeyondUPnP by kevinshine.
the class PlaybackCommand method pause.
public static void pause() {
Device device = SystemManager.getInstance().getSelectedDevice();
//Check selected device
if (device == null)
return;
Service avtService = device.findService(SystemManager.AV_TRANSPORT_SERVICE);
if (avtService != null) {
ControlPoint cp = SystemManager.getInstance().getControlPoint();
cp.execute(new Pause(avtService) {
@Override
public void success(ActionInvocation invocation) {
Log.i(TAG, "Pause success.");
}
@Override
public void failure(ActionInvocation arg0, UpnpResponse arg1, String arg2) {
Log.e(TAG, "Pause failed");
}
});
}
}
Aggregations