Package com.avpkit.mediatool
Interface IMediaCoder
-
- All Superinterfaces:
IMediaGenerator
- All Known Subinterfaces:
IMediaReader,IMediaWriter
public interface IMediaCoder extends IMediaGenerator
AnIMediaGeneratorthat manages reading or writing to anIContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close thisIMediaCoder.IContainergetContainer()Get the underlying mediaIContainerthat theIMediaCoderis reading from or writing to.java.lang.StringgetUrl()The URL from which theIContaineris being read or written to.booleanisOpen()Test if thisIMediaCoderis open.voidopen()Open thisIMediaCoder.-
Methods inherited from interface com.avpkit.mediatool.IMediaGenerator
addListener, getListeners, removeListener
-
-
-
-
Method Detail
-
getContainer
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.
-
getUrl
java.lang.String getUrl()
The URL from which theIContaineris being read or written to.- Returns:
- the source or destination URL.
-
open
void open()
Open thisIMediaCoder. This will open the internalIContainer. Typically the tool will open itself at the right time, but there may exist rare cases where the calling context may need to open the tool.
-
isOpen
boolean isOpen()
Test if thisIMediaCoderis open.- Returns:
- true if the media tool is open.
-
close
void close()
Close thisIMediaCoder. This will close allIStreamCoders explicitly opened by tool, then close the internalIContainer, again only if it was explicitly opened by tool.Typically the tool will close itself at the right time, but there are instances where the calling context may need to close the tool.
-
-