Interface IRawMediaEvent

    • Method Detail

      • getMediaData

        IMediaData getMediaData()
        The IMediaData for this object. May be null if getJavaData() is not null.

        The returned IMediaData will only be valid for the duration of the IMediaListener method call it was dispatched on and implementations must not access it after that call returns. If you need to keep a copy of this data either copy the data into your own object, or use IMediaData.copyReference() to create a reference that will outlive your call.

        Returns:
        the media data, or null if unavailable
      • getJavaData

        java.lang.Object getJavaData()
        The Java object registered with this event. If null, you must use getMediaData(). Not all IRawMediaEvent support the ability to attach java data.
        Returns:
        the object, or null if not available
      • getTimeStamp

        java.lang.Long getTimeStamp()
        The time stamp of this media, in TimeUnit.MICROSECONDS.
        Returns:
        the timeStamp, or null if none.
      • getTimeStamp

        java.lang.Long getTimeStamp​(java.util.concurrent.TimeUnit unit)
        Get the time stamp of this media in the specified units.
        Parameters:
        unit - the time unit
        Returns:
        the time stamp, or null if none
        Throws:
        java.lang.IllegalArgumentException - if unit is null