com.xuggle.mediatool
Class AMediaToolMixin

Package class diagram package AMediaToolMixin
java.lang.Object
  extended by com.xuggle.mediatool.AMediaGeneratorMixin
      extended by com.xuggle.mediatool.AMediaToolMixin
Direct Known Subclasses:
AMediaCoderMixin, MediaToolAdapter

public abstract class AMediaToolMixin
extends AMediaGeneratorMixin

An abstract implementation of all IMediaTool methods, but does not declare IMediaTool.

Forwards every call on the IMediaListener interface methods to all listeners added on the IMediaGenerator interface, but does not declare it implements those interfaces.

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.


Constructor Summary
AMediaToolMixin()
          Create an AMediaToolMixin
 
Method Summary
 void onAddStream(IAddStreamEvent event)
          Calls IMediaListener.onAddStream(IAddStreamEvent) on all registered listeners.
 void onAudioSamples(IAudioSamplesEvent event)
          Calls IMediaListener.onAudioSamples(IAudioSamplesEvent) on all registered listeners.
 void onClose(ICloseEvent event)
          Calls IMediaListener.onClose(ICloseEvent) on all registered listeners.
 void onCloseCoder(ICloseCoderEvent event)
          Calls IMediaListener.onCloseCoder(ICloseCoderEvent) on all registered listeners.
 void onFlush(IFlushEvent event)
          Calls IMediaListener.onFlush(IFlushEvent) on all registered listeners.
 void onOpen(IOpenEvent event)
          Calls IMediaListener.onOpen(IOpenEvent) on all registered listeners.
 void onOpenCoder(IOpenCoderEvent event)
          Calls IMediaListener.onOpenCoder(IOpenCoderEvent) on all registered listeners.
 void onReadPacket(IReadPacketEvent event)
          Calls IMediaListener.onReadPacket(IReadPacketEvent) on all registered listeners.
 void onVideoPicture(IVideoPictureEvent event)
          Calls IMediaListener.onVideoPicture(IVideoPictureEvent) on all registered listeners.
 void onWriteHeader(IWriteHeaderEvent event)
          Calls IMediaListener.onWriteHeader(IWriteHeaderEvent) on all registered listeners.
 void onWritePacket(IWritePacketEvent event)
          Calls IMediaListener.onWritePacket(IWritePacketEvent) on all registered listeners.
 void onWriteTrailer(IWriteTrailerEvent event)
          Calls IMediaListener.onWriteTrailer(IWriteTrailerEvent) on all registered listeners.
 
Methods inherited from class com.xuggle.mediatool.AMediaGeneratorMixin
addListener, getListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMediaToolMixin

public AMediaToolMixin()
Create an AMediaToolMixin

Method Detail

onAddStream

public void onAddStream(IAddStreamEvent event)
Calls IMediaListener.onAddStream(IAddStreamEvent) on all registered listeners.


onAudioSamples

public void onAudioSamples(IAudioSamplesEvent event)
Calls IMediaListener.onAudioSamples(IAudioSamplesEvent) on all registered listeners.


onClose

public void onClose(ICloseEvent event)
Calls IMediaListener.onClose(ICloseEvent) on all registered listeners.


onCloseCoder

public void onCloseCoder(ICloseCoderEvent event)
Calls IMediaListener.onCloseCoder(ICloseCoderEvent) on all registered listeners.


onFlush

public void onFlush(IFlushEvent event)
Calls IMediaListener.onFlush(IFlushEvent) on all registered listeners.


onOpen

public void onOpen(IOpenEvent event)
Calls IMediaListener.onOpen(IOpenEvent) on all registered listeners.


onOpenCoder

public void onOpenCoder(IOpenCoderEvent event)
Calls IMediaListener.onOpenCoder(IOpenCoderEvent) on all registered listeners.


onReadPacket

public void onReadPacket(IReadPacketEvent event)
Calls IMediaListener.onReadPacket(IReadPacketEvent) on all registered listeners.


onVideoPicture

public void onVideoPicture(IVideoPictureEvent event)
Calls IMediaListener.onVideoPicture(IVideoPictureEvent) on all registered listeners.


onWriteHeader

public void onWriteHeader(IWriteHeaderEvent event)
Calls IMediaListener.onWriteHeader(IWriteHeaderEvent) on all registered listeners.


onWritePacket

public void onWritePacket(IWritePacketEvent event)
Calls IMediaListener.onWritePacket(IWritePacketEvent) on all registered listeners.


onWriteTrailer

public void onWriteTrailer(IWriteTrailerEvent event)
Calls IMediaListener.onWriteTrailer(IWriteTrailerEvent) on all registered listeners.



Copyright © 2008, 2010 Xuggle