|
YAACC - UPNP Client and Server
|
What YAACC knows about one receiver as the receiver reported it (immutable snapshot). More...

Classes | |
| class | Builder |
| Copy-and-change; build() makes the snapshot. | |
| enum | Link |
| The link to the receiver. More... | |
| enum | Pending |
| A command that was sent and not confirmed by the receiver yet. More... | |
| enum | Playback |
| What the receiver says it is doing. More... | |
Public Member Functions | |
| FCastSecurityException.Kind | getSecurityFailure () |
| Why the secured connection was refused (the last attempt), or null. | |
| int | getPeerVersion () |
The highest version the receiver said it speaks (Version), 0 before it said. | |
| FCastPin.Source | getPinSource () |
| Where the key of a secured connection came from, null if the connection is not secured. | |
| java.util.List< FCastTrack > | getTracks () |
| The tracks of the item the receiver plays (version 4 only), empty if it said none. | |
| Long | getSelectedAudio () |
| The audio track that is selected, or null if the receiver did not say. | |
| Long | getSelectedSubtitle () |
| The subtitle track that is selected, or null for none. | |
| FCastCapabilities | getCapabilities () |
| What the receiver can play (version 4 only), or null. | |
| Builder | toBuilder () |
| Link | getLink () |
| int | getProtocolVersion () |
| The version the connection speaks (1 to 3), 0 before the first connection. | |
| String | getReceiverName () |
The receiver's own name from its Initial, or null (an old receiver has none). | |
| String | getReceiverApp () |
| String | getReceiverAppVersion () |
| Playback | getPlayback () |
| Double | getPosition () |
| The position in seconds as last reported, or null. | |
| Double | getDuration () |
| Double | getSpeed () |
| Double | getVolume () |
| The volume 0 to 1 as last reported, or null while it has not said. | |
| String | getItemUrl () |
| The URL of the item the receiver reported, or null. | |
| String | getItemContainer () |
| String | getItemTitle () |
| boolean | isItemFromElsewhere () |
| True if the receiver reported an item that this session did not start (another sender, or the receiver itself). | |
| boolean | hasEnded () |
True if the receiver reports that the item ended: both reference receivers send a Paused update with the position at the duration (not an Idle one, see docs/tech.md). | |
| boolean | isNearEnd () |
| True if the receiver is playing or paused within one second of the end of the item (a duration above zero). | |
| Pending | getPending () |
| long | getPlaybackUpdatedAt () |
The monotonic clock time (milliseconds, the session's clock) when the last PlaybackUpdate arrived, 0 if none did since the connection was made. | |
| String | getLastError () |
| The last error text (a failed connection, a refused command, a playback error of the receiver), or null. | |
| int | getErrorSerial () |
| Counts the errors, so that a UI can show each one once. | |
| String | toString () |
Static Public Attributes | |
| static final FCastReceiverState | INITIAL = new Builder().build() |
| The empty state of a session that has not connected. | |
What YAACC knows about one receiver as the receiver reported it (immutable snapshot).
A command of ours never changes the playback fields: only the receiver's messages do (FCastSession); until it says so the UI sees Pending.
| int de.yaacc.fcast.protocol.FCastReceiverState.getPeerVersion | ( | ) |
The highest version the receiver said it speaks (Version), 0 before it said.
More than getProtocolVersion() when the connection is not secured.
| long de.yaacc.fcast.protocol.FCastReceiverState.getPlaybackUpdatedAt | ( | ) |
The monotonic clock time (milliseconds, the session's clock) when the last PlaybackUpdate arrived, 0 if none did since the connection was made.
The player needs it for the safety net of the end of an item: the receiver was near the end of the item and nothing came for 2 s.
| boolean de.yaacc.fcast.protocol.FCastReceiverState.hasEnded | ( | ) |
True if the receiver reports that the item ended: both reference receivers send a Paused update with the position at the duration (not an Idle one, see docs/tech.md).
The position counts as at the end within one second of a duration above zero, as the Android receiver does.
| boolean de.yaacc.fcast.protocol.FCastReceiverState.isNearEnd | ( | ) |
True if the receiver is playing or paused within one second of the end of the item (a duration above zero).
Together with a silence of the receiver this is the safety net for the end of an item: the desktop receiver reports the end only as an event, and a sender that has no subscription sees the updates just stop (docs/tech.md).