Klasse AVTransportService<T extends AVTransport>
java.lang.Object
org.jupnp.support.avtransport.AbstractAVTransportService
org.jupnp.support.avtransport.impl.AVTransportService<T>
- Alle implementierten Schnittstellen:
LastChangeDelegator
State-machine based implementation of AVTransport service.
One logical AVTransport is represented by:
-
One
AVTransportStateMachineinstance that accepts the action method call as a proxy. -
Each state machine holds several instances of
AbstractState, created on instantation of the state machine. The "current" state will be the target of the action call. It is the state implementation that decides how to handle the call and what the next state is after a possible transition. -
Each state has a reference to an implementation of
AVTransport, where the state can hold information about well, the state.
Simplified, this means that each AVTransport instance ID is typically handled by
one state machine, and the internal state of that machine is stored in an
AVTransport.
Override the
createTransport(org.jupnp.model.types.UnsignedIntegerFourBytes, org.jupnp.support.lastchange.LastChange)
method to utilize a subclass of AVTransport as your internal state holder.
- Autor:
- Christian Bauer - Initial Contribution, Amit Kumar Mondal - Code Refactoring
-
Feldübersicht
Von Klasse geerbte Felder org.jupnp.support.avtransport.AbstractAVTransportService
propertyChangeSupport -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAVTransportService(Class<? extends AVTransportStateMachine> stateMachineDefinition, Class<? extends AbstractState<?>> initialState) AVTransportService(Class<? extends AVTransportStateMachine> stateMachineDefinition, Class<? extends AbstractState<?>> initialState, Class<T> transportClass) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected AVTransportStateMachinecreateStateMachine(UnsignedIntegerFourBytes instanceId) protected AVTransportcreateTransport(UnsignedIntegerFourBytes instanceId, LastChange lastChange) protected AVTransportStateMachinefindStateMachine(UnsignedIntegerFourBytes instanceId) protected AVTransportStateMachinefindStateMachine(UnsignedIntegerFourBytes instanceId, boolean createDefaultTransport) protected TransportAction[]getCurrentTransportActions(UnsignedIntegerFourBytes instanceId) getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) getMediaInfo(UnsignedIntegerFourBytes instanceId) getPositionInfo(UnsignedIntegerFourBytes instanceId) getTransportInfo(UnsignedIntegerFourBytes instanceId) getTransportSettings(UnsignedIntegerFourBytes instanceId) voidnext(UnsignedIntegerFourBytes instanceId) voidpause(UnsignedIntegerFourBytes instanceId) voidplay(UnsignedIntegerFourBytes instanceId, String speed) voidprevious(UnsignedIntegerFourBytes instanceId) voidrecord(UnsignedIntegerFourBytes instanceId) voidseek(UnsignedIntegerFourBytes instanceId, String unit, String target) voidsetAVTransportURI(UnsignedIntegerFourBytes instanceId, String currentURI, String currentURIMetaData) voidsetNextAVTransportURI(UnsignedIntegerFourBytes instanceId, String nextURI, String nextURIMetaData) voidsetPlayMode(UnsignedIntegerFourBytes instanceId, String newPlayMode) voidsetRecordQualityMode(UnsignedIntegerFourBytes instanceId, String newRecordQualityMode) voidstop(UnsignedIntegerFourBytes instanceId) Von Klasse geerbte Methoden org.jupnp.support.avtransport.AbstractAVTransportService
appendCurrentState, getCurrentTransportActionsString, getDefaultInstanceID, getLastChange, getPropertyChangeSupport
-
Konstruktordetails
-
AVTransportService
public AVTransportService(Class<? extends AVTransportStateMachine> stateMachineDefinition, Class<? extends AbstractState<?>> initialState) -
AVTransportService
public AVTransportService(Class<? extends AVTransportStateMachine> stateMachineDefinition, Class<? extends AbstractState<?>> initialState, Class<T> transportClass)
-
-
Methodendetails
-
setAVTransportURI
public void setAVTransportURI(UnsignedIntegerFourBytes instanceId, String currentURI, String currentURIMetaData) throws AVTransportException - Angegeben von:
setAVTransportURIin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
setNextAVTransportURI
public void setNextAVTransportURI(UnsignedIntegerFourBytes instanceId, String nextURI, String nextURIMetaData) throws AVTransportException - Angegeben von:
setNextAVTransportURIin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
setPlayMode
public void setPlayMode(UnsignedIntegerFourBytes instanceId, String newPlayMode) throws AVTransportException - Angegeben von:
setPlayModein KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
setRecordQualityMode
public void setRecordQualityMode(UnsignedIntegerFourBytes instanceId, String newRecordQualityMode) throws AVTransportException - Angegeben von:
setRecordQualityModein KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getMediaInfo
- Angegeben von:
getMediaInfoin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getTransportInfo
public TransportInfo getTransportInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException - Angegeben von:
getTransportInfoin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getPositionInfo
public PositionInfo getPositionInfo(UnsignedIntegerFourBytes instanceId) throws AVTransportException - Angegeben von:
getPositionInfoin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getDeviceCapabilities
public DeviceCapabilities getDeviceCapabilities(UnsignedIntegerFourBytes instanceId) throws AVTransportException - Angegeben von:
getDeviceCapabilitiesin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getTransportSettings
public TransportSettings getTransportSettings(UnsignedIntegerFourBytes instanceId) throws AVTransportException - Angegeben von:
getTransportSettingsin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
stop
- Angegeben von:
stopin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
play
- Angegeben von:
playin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
pause
- Angegeben von:
pausein KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
record
- Angegeben von:
recordin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
seek
public void seek(UnsignedIntegerFourBytes instanceId, String unit, String target) throws AVTransportException - Angegeben von:
seekin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
next
- Angegeben von:
nextin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
previous
- Angegeben von:
previousin KlasseAbstractAVTransportService- Löst aus:
AVTransportException
-
getCurrentTransportActions
protected TransportAction[] getCurrentTransportActions(UnsignedIntegerFourBytes instanceId) throws Exception - Angegeben von:
getCurrentTransportActionsin KlasseAbstractAVTransportService- Löst aus:
Exception
-
getCurrentInstanceIds
-
findStateMachine
protected AVTransportStateMachine findStateMachine(UnsignedIntegerFourBytes instanceId) throws AVTransportException - Löst aus:
AVTransportException
-
findStateMachine
protected AVTransportStateMachine findStateMachine(UnsignedIntegerFourBytes instanceId, boolean createDefaultTransport) throws AVTransportException - Löst aus:
AVTransportException
-
createStateMachine
-
createTransport
-