YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.protocol.FCastOpcode Enum Reference

The opcodes of FCast protocol v1 to v4 (see docs/tech.md, "FCast"). More...

Collaboration diagram for de.yaacc.fcast.protocol.FCastOpcode:
Collaboration graph

Public Member Functions

 FCastOpcode (int code)
 
int code ()
 
int sinceVersion ()
 The first protocol version that has this opcode: 1 for the codes up to 8, 2 up to 13, 3 up to 19, 4 from 20.
 

Static Public Member Functions

static FCastOpcode fromCode (int code)
 

Public Attributes

 NONE =(0)
 
 PLAY =(1)
 
 PAUSE =(2)
 
 RESUME =(3)
 
 STOP =(4)
 
 SEEK =(5)
 
 PLAYBACK_UPDATE =(6)
 
 VOLUME_UPDATE =(7)
 
 SET_VOLUME =(8)
 
 PLAYBACK_ERROR =(9)
 
 SET_SPEED =(10)
 
 VERSION =(11)
 
 PING =(12)
 
 PONG =(13)
 
 INITIAL =(14)
 
 PLAY_UPDATE =(15)
 
 SET_PLAYLIST_ITEM =(16)
 
 SUBSCRIBE_EVENT =(17)
 
 UNSUBSCRIBE_EVENT =(18)
 
 EVENT =(19)
 
 FLATBUF =(20)
 Version 4: the body is a FlatBuffers Packet (binary).
 
 RESOURCE =(21)
 Version 4: companion resources (not used by YAACC).
 

Detailed Description

The opcodes of FCast protocol v1 to v4 (see docs/tech.md, "FCast").

The numbers are the wire values. An opcode a receiver sends that is not in this list is not an error here: FCastPacket keeps the raw number and fromCode answers null.

Member Function Documentation

◆ fromCode()

static FCastOpcode de.yaacc.fcast.protocol.FCastOpcode.fromCode ( int code)
static
Returns
the opcode with this wire value, or null if the protocol (up to v3) has none

Referenced by de.yaacc.fcast.protocol.FCastPacket.getOpcode().

Here is the caller graph for this function:

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