FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

The raop_handler_setup response eventPort will create a new http link #130

Closed heweisheng closed 1 year ago

heweisheng commented 1 year ago

The transmission of eventPort will lead to the creation of a new http connection, but what is the function of this connection? Instead of transmitting, I can reduce an http connection. image

fduncanh commented 1 year ago

I believe the event port receives things ("events") like volume changes on the client. You could learn more by studying the code or looking at some of the various descriptions of RAOP that can be found. (see the README for some links).

It's part of RAOP so will not be altered in UxPlay

It might not be needed in mirror mode.

see ( in raop.c)

raop_rtp_process_events(raop_rtp_t *raop_rtp, void *cb_data)
{
    int flush;
    float volume;
    int volume_changed;
    unsigned char *metadata;
    int metadata_len;
    unsigned char *coverart;
    int coverart_len;
    char *dacp_id;
    char *active_remote_header;
    unsigned int progress_start;
    unsigned int progress_curr;
    unsigned int progress_end;
    int progress_changed;

UxPlay also uses it for receiving metadata and cover art in Audio-only streaming mode. (Apple music, etc)