@Override protected TransportAction[] getCurrentTransportActions(UnsignedIntegerFourBytes instanceId) throws Exception { AVTransportStateMachine stateMachine = findStateMachine(instanceId); try { return stateMachine.getCurrentState().getCurrentTransportActions(); } catch (TransitionException ex) { return new TransportAction[0]; } }
public MediaInfo getMediaInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo(); }
public TransportInfo getTransportInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportInfo(); }
@Override protected TransportAction[] getCurrentTransportActions(UnsignedIntegerFourBytes instanceId) throws Exception { AVTransportStateMachine stateMachine = findStateMachine(instanceId); try { return stateMachine.getCurrentState().getCurrentTransportActions(); } catch (TransitionException ex) { return new TransportAction[0]; } }
public PositionInfo getPositionInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo(); }
@Override protected TransportAction[] getCurrentTransportActions(UnsignedIntegerFourBytes instanceId) throws Exception { AVTransportStateMachine stateMachine = findStateMachine(instanceId); try { return stateMachine.getCurrentState().getCurrentTransportActions(); } catch (TransitionException ex) { return new TransportAction[0]; } }
public DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities(); }
public TransportSettings getTransportSettings(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportSettings(); }
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 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 DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities(); }
public MediaInfo getMediaInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getMediaInfo(); }
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 PositionInfo getPositionInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getPositionInfo(); }
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 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 DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getDeviceCapabilities(); }
public TransportInfo getTransportInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException { return findStateMachine(instanceId).getCurrentState().getTransport().getTransportInfo(); }