YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.server.StreamActivity Class Reference

Whether a stream is idle or playing, as snapserver shows it: a stream with a producer is playing from its first chunk with sound; after the idle threshold (default 100 ms) of silent chunks in a row it is idle again, and the next chunk with sound makes it playing. More...

Collaboration diagram for de.yaacc.snapcast.server.StreamActivity:
Collaboration graph

Classes

enum  Status
 

Public Member Functions

 StreamActivity (int idleThresholdMillis, int chunkMillis)
 
Status status ()
 
void chunk (boolean silent)
 A chunk was cut.
 
void producerGone ()
 

Detailed Description

Whether a stream is idle or playing, as snapserver shows it: a stream with a producer is playing from its first chunk with sound; after the idle threshold (default 100 ms) of silent chunks in a row it is idle again, and the next chunk with sound makes it playing.

A stream with no producer is idle. Not thread safe.


The documentation for this class was generated from the following file: