Quicr / old-quicrq

BSD 2-Clause "Simplified" License
4 stars 2 forks source link

Media-ID should be set to control stream ID #124

Open huitema opened 1 year ago

huitema commented 1 year ago

In the current code, the media ID is set by the intended receiver of the media stream: client sets it before passing it in the "request", server sets it in the "post". This is not strictly needed, we could just assume that the media-ID is set to the stream ID of the control stream. It would make the code a little bit simpler -- no need to hold the media-ID property in the control stream, no need to code to allocate media-ID, no need to pass media-ID in Request, Post or Accept. (Still needed in datagram header and warp header.)

huitema commented 1 year ago

There was a discussion of this point in the MoQ interim, and there was pushback from William Law at Akamai, who is worried about fan-out. Media objects will be stored in a database, and he would rather not have to send different versions of the object to different users of a relay. This means that if we use a media ID, it should be allocated by the relay, and it should be independent of the connection and of the client.