AudioPlayer - SocketSVC Docs
SocketSVC Docs

AudioPlayer

One-shot playback handle.

Generated from source

Interface com.socketsvc.api.AudioPlayer — generated from AudioPlayer.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.api;

public interface AudioPlayer extends AutoCloseable { ... }

One-shot playback handle. EOF, stop, failure and owner disable release the source and encoder.

Methods

isPlaying

boolean isPlaying()

completion

CompletionStage<Void> completion()

Completes after resources close; exceptional on source/encoder failure. Callbacks may run inline or on the audio worker.

close

void close()