JavaFxPlayer

class JavaFxPlayer(publisher: LirpEventPublisher<AudioItemPlayerEvent.Type, AudioItemPlayerEvent> = FlowEventPublisher("JavaFxPlayer")) : LirpEventPublisher<AudioItemPlayerEvent.Type, AudioItemPlayerEvent> , AudioItemPlayer

Basic player that uses the native JavaFX MediaPlayer.

Uses Platform.runLater for volume property updates to ensure thread-safe JavaFX property access. These dispatches intentionally omit error handling because they perform only simple property mutations; any exception indicates a programming error that should surface through the default uncaught exception handler.

Constructors

Link copied to clipboard
constructor(publisher: LirpEventPublisher<AudioItemPlayerEvent.Type, AudioItemPlayerEvent> = FlowEventPublisher("JavaFxPlayer"))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val changes: SharedFlow<AudioItemPlayerEvent>
Link copied to clipboard
open override val currentTimeProperty: ReadOnlyObjectProperty<Duration>
Link copied to clipboard
open override val isClosed: Boolean
Link copied to clipboard
open override val statusProperty: ReadOnlyObjectProperty<AudioItemPlayer.Status>
Link copied to clipboard
open override val subscriberCount: Int
Link copied to clipboard
open override val totalDuration: Duration
Link copied to clipboard
open override val volumeProperty: DoubleProperty

Functions

Link copied to clipboard
open override fun activateEvents(vararg types: AudioItemPlayerEvent.Type)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun disableEvents(vararg types: AudioItemPlayerEvent.Type)
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun emitAsync(event: AudioItemPlayerEvent)
Link copied to clipboard
open override fun onFinish(value: Runnable)
Link copied to clipboard
open override fun pause()
Link copied to clipboard
open override fun play(audioItem: ReactiveAudioItem<*>)
Link copied to clipboard
open override fun resume()
Link copied to clipboard
open override fun seek(milliSeconds: Double)
Link copied to clipboard
open override fun setVolume(value: Double)
Link copied to clipboard
open override fun status(): AudioItemPlayer.Status
Link copied to clipboard
open override fun stop()
Link copied to clipboard
open override fun subscribe(p0: Flow.Subscriber<in AudioItemPlayerEvent?>?)
open override fun subscribe(action: Consumer<in AudioItemPlayerEvent>): LirpEventSubscription<in LirpEntity, AudioItemPlayerEvent.Type, AudioItemPlayerEvent>
open override fun subscribe(action: suspend (AudioItemPlayerEvent) -> Unit): LirpEventSubscription<in LirpEntity, AudioItemPlayerEvent.Type, AudioItemPlayerEvent>
open override fun subscribe(vararg eventTypes: AudioItemPlayerEvent.Type, action: suspend (AudioItemPlayerEvent) -> Unit): LirpEventSubscription<in LirpEntity, AudioItemPlayerEvent.Type, AudioItemPlayerEvent>