Package com.avpkit.mediatool
Class AMediaCoderMixin
- java.lang.Object
-
- com.avpkit.mediatool.AMediaGeneratorMixin
-
- com.avpkit.mediatool.AMediaToolMixin
-
- com.avpkit.mediatool.AMediaCoderMixin
-
public abstract class AMediaCoderMixin extends AMediaToolMixin
An abstract implementation of allIMediaCodermethods, but does not declareIMediaCoder.Mixin classes can be extended by anyone, but the extending class gets to decide which, if any, of the interfaces they actually want to support.
- Author:
- trebor, aclarke
-
-
Constructor Summary
Constructors Constructor Description AMediaCoderMixin(java.lang.String url, IContainer container)Construct anAMediaCoderMixin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IContainergetContainer()Get the underlying mediaIContainerthat theIMediaCoderis reading from or writing to.booleangetShouldCloseContainer()java.lang.StringgetUrl()The URL from which theIContaineris being read or written to.booleanisOpen()Test if thisIMediaCoderis open.voidsetShouldCloseContainer(boolean value)-
Methods inherited from class com.avpkit.mediatool.AMediaToolMixin
onAddStream, onAudioSamples, onClose, onCloseCoder, onFlush, onOpen, onOpenCoder, onReadPacket, onVideoPicture, onWriteHeader, onWritePacket, onWriteTrailer
-
Methods inherited from class com.avpkit.mediatool.AMediaGeneratorMixin
addListener, getListeners, removeListener
-
-
-
-
Constructor Detail
-
AMediaCoderMixin
public AMediaCoderMixin(java.lang.String url, IContainer container)
Construct anAMediaCoderMixin.- Parameters:
url- the URL which will be read or written tocontainer- the container which be read from or written to
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
The URL from which theIContaineris being read or written to.- Returns:
- the source or destination URL.
-
getContainer
public IContainer getContainer()
Get the underlying mediaIContainerthat theIMediaCoderis reading from or writing to. The returnedIContainercan be further interrogated for media stream details.- Returns:
- the media container.
-
isOpen
public boolean isOpen()
Test if thisIMediaCoderis open.- Returns:
- true if the media tool is open.
-
setShouldCloseContainer
public void setShouldCloseContainer(boolean value)
- Parameters:
value- should we close the container
-
getShouldCloseContainer
public boolean getShouldCloseContainer()
- Returns:
- should we close the container
-
-