Package nl.harm27.obs.websocket.listener
Class MediaEventListener
- java.lang.Object
-
- nl.harm27.obs.websocket.listener.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 Summary
Constructors Constructor Description MediaEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallEvent(BaseEvent baseEvent)List<EventType>getSupportedEvents()voidmediaEnded(MediaEnded mediaEnded)Note: These events are emitted by the OBS sources themselves.voidmediaNext(MediaNext mediaNext)Note: This event is only emitted when something actively controls the media/VLC source.voidmediaPaused(MediaPaused mediaPaused)Note: This event is only emitted when something actively controls the media/VLC source.voidmediaPlaying(MediaPlaying mediaPlaying)Note: This event is only emitted when something actively controls the media/VLC source.voidmediaPrevious(MediaPrevious mediaPrevious)Note: This event is only emitted when something actively controls the media/VLC source.voidmediaRestarted(MediaRestarted mediaRestarted)Note: This event is only emitted when something actively controls the media/VLC source.voidmediaStarted(MediaStarted mediaStarted)Note: These events are emitted by the OBS sources themselves.voidmediaStopped(MediaStopped mediaStopped)Note: This event is only emitted when something actively controls the media/VLC source.
-
-
-
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
-
callEvent
public final void callEvent(BaseEvent baseEvent)
- Specified by:
callEventin interfaceEventListener
-
getSupportedEvents
public final List<EventType> getSupportedEvents()
- Specified by:
getSupportedEventsin interfaceEventListener
-
-