YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.FCastSheetModel Class Reference

The decisions of the settings sheet of an FCast receiver (task 5.3): what is shown when, the speed choices, how a speed is written. More...

Collaboration diagram for de.yaacc.fcast.FCastSheetModel:
Collaboration graph

Classes

class  Facts
 What the sheet needs to know to decide what to show.
 
class  Layout
 The parts of the sheet.
 
enum  ProtocolText
 What the "protocol" row of the sheet says. More...
 

Static Public Member Functions

static ProtocolText protocolText (int version, int peer, de.yaacc.fcast.protocol.FCastPin.Source keySource, int sdk)
 
static boolean showsTracks (int version, boolean itemActive, int audioChoices, int subtitleTracks, boolean externalSubtitles)
 Does the sheet show the tracks section: version 4 and something plays or is paused, and there are tracks or subtitle files can be added.
 
static Layout layout (Facts facts)
 
static String speedLabel (double speed)
 "1.25x" style text, without trailing zeros ("1x", "0.5x", "2x").
 
static int nearestSpeed (double speed)
 The index in SPEEDS that is nearest to the speed, -1 for a speed that is not a number.
 
static List< String > speedLabels ()
 The labels of all speeds, in order.
 

Static Public Attributes

static final List< Double > SPEEDS
 The playback speeds that are offered (SetSpeed; the protocol accepts 0.25 to 4).
 

Detailed Description

The decisions of the settings sheet of an FCast receiver (task 5.3): what is shown when, the speed choices, how a speed is written.

Pure. The protocol cannot read or change a receiver's own settings; the sheet shows what the protocol can control (volume, mute, speed, stop), device information and the connection (design.md, "The settings sheet").

Member Function Documentation

◆ protocolText()

static ProtocolText de.yaacc.fcast.FCastSheetModel.protocolText ( int version,
int peer,
de.yaacc.fcast.protocol.FCastPin.Source keySource,
int sdk )
static
Parameters
versionthe version the connection speaks (0: not connected)
peerthe version the receiver said it speaks (0: not said)
keySourcewhere the key of a secured connection came from, null if not secured
sdkthe Android API level of this device

Member Data Documentation

◆ SPEEDS

final List<Double> de.yaacc.fcast.FCastSheetModel.SPEEDS
static
Initial value:
= Collections.unmodifiableList(
java.util.Arrays.asList(0.5, 0.75, 1.0, 1.25, 1.5, 2.0))

The playback speeds that are offered (SetSpeed; the protocol accepts 0.25 to 4).

Referenced by de.yaacc.fcast.FCastSheetModel.nearestSpeed(), and de.yaacc.fcast.FCastSheetModel.speedLabels().


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