protected AVTransport createTransport(UnsignedIntegerFourBytes instanceId, LastChange lastChange) { return new AVTransport(instanceId, lastChange, StorageMedium.NETWORK); }
public DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities(); }
public void onEntry() { log.fine("Setting transport state to NO_MEDIA_PRESENT"); getTransport().setTransportInfo( new TransportInfo( TransportState.NO_MEDIA_PRESENT, getTransport().getTransportInfo().getCurrentTransportStatus(), getTransport().getTransportInfo().getCurrentSpeed() ) ); getTransport().getLastChange().setEventedValue( getTransport().getInstanceId(), new AVTransportVariable.TransportState(TransportState.NO_MEDIA_PRESENT), new AVTransportVariable.CurrentTransportActions(getCurrentTransportActions()) ); }
public AVTransport(UnsignedIntegerFourBytes instanceID, LastChange lastChange, StorageMedium[] possiblePlayMedia) { this.instanceID = instanceID; this.lastChange = lastChange; setDeviceCapabilities(new DeviceCapabilities(possiblePlayMedia)); setMediaInfo(new MediaInfo()); setTransportInfo(new TransportInfo()); setPositionInfo(new PositionInfo()); setTransportSettings(new TransportSettings()); }
public void setPlayMode(UnsignedIntegerFourBytes instanceId, String newPlayMode) throws AVTransportException { AVTransport transport = findStateMachine(instanceId).getCurrentState().getTransport(); try { transport.setTransportSettings( new TransportSettings( PlayMode.valueOf(newPlayMode), transport.getTransportSettings().getRecQualityMode() ) ); } catch (IllegalArgumentException ex) { throw new AVTransportException( AVTransportErrorCode.PLAYMODE_NOT_SUPPORTED, "Unsupported play mode: " + newPlayMode ); } }
public MediaInfo getMediaInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo(); }
public PositionInfo getPositionInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo(); }
public TransportSettings getTransportSettings(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportSettings(); }
public TransportInfo getTransportInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportInfo(); }
public AVTransport(UnsignedIntegerFourBytes instanceID, LastChange lastChange, StorageMedium[] possiblePlayMedia) { this.instanceID = instanceID; this.lastChange = lastChange; setDeviceCapabilities(new DeviceCapabilities(possiblePlayMedia)); setMediaInfo(new MediaInfo()); setTransportInfo(new TransportInfo()); setPositionInfo(new PositionInfo()); setTransportSettings(new TransportSettings()); }
public void setRecordQualityMode(UnsignedIntegerFourBytes instanceId, String newRecordQualityMode) throws AVTransportException { AVTransport transport = findStateMachine(instanceId).getCurrentState().getTransport(); try { transport.setTransportSettings( new TransportSettings( transport.getTransportSettings().getPlayMode(), RecordQualityMode.valueOrExceptionOf(newRecordQualityMode) ) ); } catch (IllegalArgumentException ex) { throw new AVTransportException( AVTransportErrorCode.RECORDQUALITYMODE_NOT_SUPPORTED, "Unsupported record quality mode: " + newRecordQualityMode ); } }
public MediaInfo getMediaInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo(); }
public PositionInfo getPositionInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo(); }
public TransportSettings getTransportSettings(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportSettings(); }
public TransportInfo getTransportInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportInfo(); }
public void onEntry() { log.fine("Setting transport state to PLAYING"); getTransport().setTransportInfo( new TransportInfo( TransportState.PLAYING, getTransport().getTransportInfo().getCurrentTransportStatus(), getTransport().getTransportInfo().getCurrentSpeed() ) ); getTransport().getLastChange().setEventedValue( getTransport().getInstanceId(), new AVTransportVariable.TransportState(TransportState.PLAYING), new AVTransportVariable.CurrentTransportActions(getCurrentTransportActions()) ); }
public AVTransport(UnsignedIntegerFourBytes instanceID, LastChange lastChange, StorageMedium[] possiblePlayMedia) { this.instanceID = instanceID; this.lastChange = lastChange; setDeviceCapabilities(new DeviceCapabilities(possiblePlayMedia)); setMediaInfo(new MediaInfo()); setTransportInfo(new TransportInfo()); setPositionInfo(new PositionInfo()); setTransportSettings(new TransportSettings()); }
public void setRecordQualityMode(UnsignedIntegerFourBytes instanceId, String newRecordQualityMode) throws AVTransportException { AVTransport transport = findStateMachine(instanceId).getCurrentState().getTransport(); try { transport.setTransportSettings( new TransportSettings( transport.getTransportSettings().getPlayMode(), RecordQualityMode.valueOrExceptionOf(newRecordQualityMode) ) ); } catch (IllegalArgumentException ex) { throw new AVTransportException( AVTransportErrorCode.RECORDQUALITYMODE_NOT_SUPPORTED, "Unsupported record quality mode: " + newRecordQualityMode ); } }
protected AVTransport createTransport(UnsignedIntegerFourBytes instanceId, LastChange lastChange) { return new AVTransport(instanceId, lastChange, StorageMedium.NETWORK); }
public MediaInfo getMediaInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo(); }