com.xuggle.mediatool
Class MediaListenerAdapter

Package class diagram package MediaListenerAdapter
java.lang.Object
  extended by com.xuggle.mediatool.AMediaListenerMixin
      extended by com.xuggle.mediatool.MediaListenerAdapter
All Implemented Interfaces:
IMediaListener
Direct Known Subclasses:
DecodeAndCaptureFrames, DecodeAndPlayAudioAndVideo

public class MediaListenerAdapter
extends AMediaListenerMixin
implements IMediaListener

An implementation of IMediaListener that implements all methods as empty methods.

This can be useful if you only want to override some members of IMediaListener; instead, just subclass this and override the methods you want, rather than providing an implementation of all methods.


Constructor Summary
MediaListenerAdapter()
          Construct an empty MediaListenerAdapter.
 
Method Summary
 void onAddStream(IAddStreamEvent event)
          Empty implementation of IMediaListener.onAddStream(IAddStreamEvent).
 void onAudioSamples(IAudioSamplesEvent event)
          Empty implementation of IMediaListener.onAudioSamples(IAudioSamplesEvent).
 void onClose(ICloseEvent event)
          Empty implementation of IMediaListener.onClose(ICloseEvent).
 void onCloseCoder(ICloseCoderEvent event)
          Empty implementation of IMediaListener.onCloseCoder(ICloseCoderEvent).
 void onFlush(IFlushEvent event)
          Empty implementation of IMediaListener.onFlush(IFlushEvent).
 void onOpen(IOpenEvent event)
          Empty implementation of IMediaListener.onOpen(IOpenEvent).
 void onOpenCoder(IOpenCoderEvent event)
          Empty implementation of IMediaListener.onOpenCoder(IOpenCoderEvent).
 void onReadPacket(IReadPacketEvent event)
          Empty implementation of IMediaListener.onReadPacket(IReadPacketEvent).
 void onVideoPicture(IVideoPictureEvent event)
          Empty implementation of IMediaListener.onVideoPicture(IVideoPictureEvent).
 void onWriteHeader(IWriteHeaderEvent event)
          Empty implementation of IMediaListener.onWriteHeader(IWriteHeaderEvent).
 void onWritePacket(IWritePacketEvent event)
          Empty implementation of IMediaListener.onWritePacket(IWritePacketEvent).
 void onWriteTrailer(IWriteTrailerEvent event)
          Empty implementation of IMediaListener.onWriteTrailer(IWriteTrailerEvent).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaListenerAdapter

public MediaListenerAdapter()
Construct an empty MediaListenerAdapter.

Method Detail

onVideoPicture

public void onVideoPicture(IVideoPictureEvent event)
Empty implementation of IMediaListener.onVideoPicture(IVideoPictureEvent).

Specified by:
onVideoPicture in interface IMediaListener
Overrides:
onVideoPicture in class AMediaListenerMixin
Parameters:
event - An event containing either an IVideoPicture, a BufferedImage, or both. The IVideoPicture is only valid for the duration of this callback. If you need to access it after you return, you must either copy the data into your own buffers, or call IVideoPicture.copyReference() to get your own reference to the data.

onAudioSamples

public void onAudioSamples(IAudioSamplesEvent event)
Empty implementation of IMediaListener.onAudioSamples(IAudioSamplesEvent).

Specified by:
onAudioSamples in interface IMediaListener
Overrides:
onAudioSamples in class AMediaListenerMixin
Parameters:
event - An event containing the IAudioSamples for this event. The IAudioSamples in this event is only valid for the duration of this callback. If you need to access it after you return, you must either copy the data into your own buffers, or call IAudioSamples.copyReference() to get your own reference to the data.

onOpen

public void onOpen(IOpenEvent event)
Empty implementation of IMediaListener.onOpen(IOpenEvent).

Specified by:
onOpen in interface IMediaListener
Overrides:
onOpen in class AMediaListenerMixin
Parameters:
event - A OpenEvent

onClose

public void onClose(ICloseEvent event)
Empty implementation of IMediaListener.onClose(ICloseEvent).

Specified by:
onClose in interface IMediaListener
Overrides:
onClose in class AMediaListenerMixin
Parameters:
event - A CloseEvent

onAddStream

public void onAddStream(IAddStreamEvent event)
Empty implementation of IMediaListener.onAddStream(IAddStreamEvent).

Specified by:
onAddStream in interface IMediaListener
Overrides:
onAddStream in class AMediaListenerMixin
Parameters:
event - A AddStreamEvent event

onOpenCoder

public void onOpenCoder(IOpenCoderEvent event)
Empty implementation of IMediaListener.onOpenCoder(IOpenCoderEvent).

Specified by:
onOpenCoder in interface IMediaListener
Overrides:
onOpenCoder in class AMediaListenerMixin
Parameters:
event - A OpenCoderEvent

onCloseCoder

public void onCloseCoder(ICloseCoderEvent event)
Empty implementation of IMediaListener.onCloseCoder(ICloseCoderEvent).

Specified by:
onCloseCoder in interface IMediaListener
Overrides:
onCloseCoder in class AMediaListenerMixin
Parameters:
event - A CloseCoderEvent

onReadPacket

public void onReadPacket(IReadPacketEvent event)
Empty implementation of IMediaListener.onReadPacket(IReadPacketEvent).

Specified by:
onReadPacket in interface IMediaListener
Overrides:
onReadPacket in class AMediaListenerMixin
Parameters:
event - A ReadPacketEvent. This IPacket in this event is only valid for the duration of this call. If you need to use the data after this call has returned, you must either copy the data in this call, or use IPacket.copyReference() to create a new object with a reference you can own.

onWritePacket

public void onWritePacket(IWritePacketEvent event)
Empty implementation of IMediaListener.onWritePacket(IWritePacketEvent).

Specified by:
onWritePacket in interface IMediaListener
Overrides:
onWritePacket in class AMediaListenerMixin
Parameters:
event - A WritePacketEvent. The IPacket in this event is only valid for the duration of this call. If you need to use the data after this call has returned, you must either copy the data in this call, or use IPacket.copyReference() to create a new object with a reference you can own.

onWriteHeader

public void onWriteHeader(IWriteHeaderEvent event)
Empty implementation of IMediaListener.onWriteHeader(IWriteHeaderEvent).

Specified by:
onWriteHeader in interface IMediaListener
Overrides:
onWriteHeader in class AMediaListenerMixin
Parameters:
event - A WriteHeaderEvent

onFlush

public void onFlush(IFlushEvent event)
Empty implementation of IMediaListener.onFlush(IFlushEvent).

Specified by:
onFlush in interface IMediaListener
Overrides:
onFlush in class AMediaListenerMixin
Parameters:
event - A FlushEvent

onWriteTrailer

public void onWriteTrailer(IWriteTrailerEvent event)
Empty implementation of IMediaListener.onWriteTrailer(IWriteTrailerEvent).

Specified by:
onWriteTrailer in interface IMediaListener
Overrides:
onWriteTrailer in class AMediaListenerMixin
Parameters:
event - A WriteTrailerEvent


Copyright © 2008, 2010 Xuggle