YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.openhome.OhSourceProvider Interface Reference

Where the Product service of the renderer gets its sources from and where a choice goes (task 12.5): the app's side of the source list. More...

Inheritance diagram for de.yaacc.upnp.server.openhome.OhSourceProvider:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.server.openhome.OhSourceProvider:
Collaboration graph

Public Member Functions

SnapcastRendererSources.Snapshot snapshot ()
 The list as it is now (never null).
 
boolean select (SnapcastRendererSources.Entry entry)
 Makes this source the output of the renderer.
 

Detailed Description

Where the Product service of the renderer gets its sources from and where a choice goes (task 12.5): the app's side of the source list.

The renderer core itself knows nothing about Snapcast; it asks for a snapshot and hands a chosen source on. Both are called on any thread (a control point's request, the preference listener); an implementation is thread safe and never blocks on the network.

Member Function Documentation

◆ select()

boolean de.yaacc.upnp.server.openhome.OhSourceProvider.select ( SnapcastRendererSources.Entry entry)

Makes this source the output of the renderer.

Parameters
entrya source of an earlier snapshot; it is checked against the facts of now
Returns
true when the output is this source now (also when it already was); false when it was refused (the old output stays, the user was told)

Implemented in de.yaacc.upnp.server.openhome.RendererOutputSources.

◆ snapshot()

SnapcastRendererSources.Snapshot de.yaacc.upnp.server.openhome.OhSourceProvider.snapshot ( )

The list as it is now (never null).

May throw: the core then keeps what it told the controllers last.

Implemented in de.yaacc.upnp.server.openhome.RendererOutputSources.

Referenced by de.yaacc.upnp.server.openhome.OhRendererCore.refreshSources().

Here is the caller graph for this function:

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