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

Writes the Flatbuf bodies (a serialized Packet) that a v4 sender sends. More...

Collaboration diagram for de.yaacc.fcast.protocol.v4.V4Writer:
Collaboration graph

Static Public Member Functions

static byte[] senderIntroduction (String displayName, String appName, String appVersion)
 SenderIntroduction: sent once, right after the TLS handshake.
 
static byte[] load (String container, String url, Double startSeconds, Double volume, Double speed, String title, String thumbnailUrl)
 Load of one item.
 
static byte[] progress (double positionSeconds, double durationSeconds)
 ProgressChanged: a sender seeks with it (the duration is ignored by the receiver).
 
static byte[] volume (double volume)
 
static byte[] speed (double speed)
 
static byte[] state (int state)
 PlaybackStateChanged: Paused pauses, Playing resumes.
 
static byte[] stop ()
 
static byte[] changeTrack (Long id, int trackType)
 ChangeTrack: select a track of a type; id null switches that type off (subtitles).
 
static byte[] addSubtitleSource (String url, boolean select, String name)
 AddSubtitleSource: a subtitle file the receiver fetches.
 
static byte[] progressInterval (double seconds)
 SetProgressUpdateInterval.
 

Detailed Description

Writes the Flatbuf bodies (a serialized Packet) that a v4 sender sends.

Hand-written on top of the FlatBuffers runtime (decision D23); the buffers are checked against the reference implementation's reader (docs/tech.md). A string is written as it is; the caller limits the sizes (the packet limit of v4 is 512 KiB). Pure.

Member Function Documentation

◆ load()

static byte[] de.yaacc.fcast.protocol.v4.V4Writer.load ( String container,
String url,
Double startSeconds,
Double volume,
Double speed,
String title,
String thumbnailUrl )
static

Load of one item.

Optional fields are left out when null.

Parameters
startSecondswhere to start (not negative), volume 0 to 1, speed

Referenced by de.yaacc.fcast.protocol.v4.V4Writer.load().

Here is the call graph for this function:
Here is the caller graph for this function:

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