Package org.teleal.cling.model.meta

Examples of org.teleal.cling.model.meta.Action


  }

  public boolean play() {
    if(isConfigured()) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Play");
      ActionInvocation invocation = new ActionInvocation(action);

      invocation.setInput("Speed", "1");

      executeActionInvocation(invocation);
View Full Code Here


  }

  public boolean stop() {
    if(isConfigured()) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Stop");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  }

  public boolean pause() {
    if(isConfigured()) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Pause");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  }

  public boolean next() {
    if(isConfigured()) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Next");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  }

  public boolean previous() {
    if(isConfigured()) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Previous");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  public boolean becomeStandAlonePlayer() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("BecomeCoordinatorOfStandaloneGroup");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  public boolean setMute(String string) {
    if(string != null && isConfigured()) {

      Service service = device.findService(new UDAServiceId("RenderingControl"));
      Action action = service.getAction("SetMute");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        invocation.setInput("Channel", "Master");
View Full Code Here

  public boolean setVolume(String value) {
    if(value != null && isConfigured()) {

      Service service = device.findService(new UDAServiceId("RenderingControl"));
      Action action = service.getAction("SetVolume");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        String newValue = value;
        if(value.equals("INCREASE")) {
View Full Code Here

  public boolean updateTime() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("AlarmClock"));
      Action action = service.getAction("GetTimeNow");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here

  public boolean updateRunningAlarmProperties() {

    if(stateMap != null && isConfigured()) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("GetRunningAlarmProperties");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      // for this property we would like to "compile" a more friendly variable.
View Full Code Here

TOP

Related Classes of org.teleal.cling.model.meta.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.