com.xuggle.mediatool
Interface IMediaDebugListener

Package class diagram package IMediaDebugListener
All Superinterfaces:
IMediaListener

public interface IMediaDebugListener
extends IMediaListener

An IMediaListener that logs counts of different events to a log file.

The IMediaDebugListener implementation can be a handy tool for debugging IMediaGenerator objectss. It allows you to configure different levels of details, and can be attached to multiple IMediaGenerator objects simultaneously.


Nested Class Summary
static class IMediaDebugListener.Event
          The different type of events you'd like to print data for.
static class IMediaDebugListener.Mode
          How much detail on each event you want to log.
 
Method Summary
 long getCount(IMediaDebugListener.Event event)
          Get the current count of events of a particular type.
 int getFlags()
          Get the flags which specify which events will be logged.
 void resetCounts()
          Reset all the event counts.
 void setLogEvents(IMediaDebugListener.Event... events)
          Set the event types which will be logged.
 
Methods inherited from interface com.xuggle.mediatool.IMediaListener
onAddStream, onAudioSamples, onClose, onCloseCoder, onFlush, onOpen, onOpenCoder, onReadPacket, onVideoPicture, onWriteHeader, onWritePacket, onWriteTrailer
 

Method Detail

getCount

long getCount(IMediaDebugListener.Event event)
Get the current count of events of a particular type.

Parameters:
event - the specified event type
Returns:
the number of events of the specified type which have been transpired

resetCounts

void resetCounts()
Reset all the event counts.


setLogEvents

void setLogEvents(IMediaDebugListener.Event... events)
Set the event types which will be logged.

Parameters:
events - the events which will be logged

getFlags

int getFlags()
Get the flags which specify which events will be logged.

Returns:
the flags.


Copyright © 2008, 2010 Xuggle