Class BufferChangeEvent

  • All Implemented Interfaces:
    Event

    public class BufferChangeEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onBufferChange() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferChangeEvent​(int bufferPercent, double position, double duration)  
    • Constructor Detail

      • BufferChangeEvent

        public BufferChangeEvent​(int bufferPercent,
                                 double position,
                                 double duration)
    • Method Detail

      • getBufferPercent

        public int getBufferPercent()
        Returns:
        Percentage between 0 and 100 of the current media that is buffered.
      • getPosition

        public double getPosition()
        Returns:
        Current position of the media file (in milliseconds).
      • getDuration

        public double getDuration()
        Returns:
        Current media's duration (in milliseconds).