Class MediaEventListener

  • All Implemented Interfaces:
    EventListener

    public abstract class MediaEventListener
    extends Object
    implements EventListener
    The EventListener for the events that are part of the Media category.
    • Constructor Detail

      • MediaEventListener

        public MediaEventListener()
    • Method Detail

      • mediaPlaying

        public void mediaPlaying​(MediaPlaying mediaPlaying)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaPlaying - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaPaused

        public void mediaPaused​(MediaPaused mediaPaused)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaPaused - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaRestarted

        public void mediaRestarted​(MediaRestarted mediaRestarted)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaRestarted - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaStopped

        public void mediaStopped​(MediaStopped mediaStopped)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaStopped - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaNext

        public void mediaNext​(MediaNext mediaNext)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaNext - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaPrevious

        public void mediaPrevious​(MediaPrevious mediaPrevious)
        Note: This event is only emitted when something actively controls the media/VLC source. In other words, the source will never emit this on its own naturally.
        Parameters:
        mediaPrevious - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaStarted

        public void mediaStarted​(MediaStarted mediaStarted)
        Note: These events are emitted by the OBS sources themselves. For example when the media file starts playing. The behavior depends on the type of media source being used.
        Parameters:
        mediaStarted - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation
      • mediaEnded

        public void mediaEnded​(MediaEnded mediaEnded)
        Note: These events are emitted by the OBS sources themselves. For example when the media file ends. The behavior depends on the type of media source being used.
        Parameters:
        mediaEnded - The received event.
        Since:
        4.9.0
        See Also:
        OBS WebSocket Documentation