Package uk.co.caprica.vlcj.player.condition
Synchronous programming framework.
Ordinarily media player programming requires an asynchronous approach, this small framework makes it easier to use a synchronous approach instead.
Most applications are not expected to use this synchronous approach, but there are some use-cases where it can be convenient.
-
Class Summary Class Description Condition<T> Base implementation for a component that waits for specific media player state to occur.DefaultCondition<T> Default implementation of a media player condition that triggers if the media player reports an error or unexpectedly reaches the end of the media. -
Exception Summary Exception Description BeforeConditionAbortedException Exception thrown when a media player condition instance triggers aborts by returningfalse
in anCondition.onBefore()
implementation.UnexpectedErrorConditionException Exception thrown when a media player condition instance triggers in response to an error.UnexpectedFinishedConditionException Exception thrown when a media player condition instance triggers in response to the media finishing (reaching the end) unexpectedly.