moq-js icon indicating copy to clipboard operation
moq-js copied to clipboard

Public Broadcast Listing

Open kixelated opened this issue 2 years ago • 0 comments

I removed this functionality as part of migrating away from ANNOUNCE. Time to add it back and do it properly this time!

  1. Add a "public" checkbox to /publish that allows the user to enter the title of the broadcast.
    • The title is not the same as the random broadcast ID.
    • The broadcast ID is random and used by relays (moq-api) for routing.
    • The broadcast title is human-readable, only used when the publisher wants to make a public broadcast.
  2. Add an endpoint that creates a new broadcast given the form information. It should:
    • Verify the information: title, codec info, etc.
    • Generate random broadcast ID.
    • (future) Generate an auth token tied to the broadcast ID.
    • CHOICE: Choose the database. We're running in GCP so there's quite a few options, but local development should still work.
    • Insert everything into the database.
    • Return a URL used to connect to moq-relay: ie. https://relay.quic.video/<broadcast ID>
    • CHOICE: This endpoint could be part of moq-api or moq-js; your choice.
  3. Add an endpoint that lists all PUBLIC broadcasts.
    • Periodically verify each broadcast is still live via moq-api.
    • CHOICE: This endpoint could be rendered on the client or server side (moq-js only).
    • Return a paginated list of public broadcasts and some basic information about them.
  4. Render the list of all public broadcasts on /watch.
    • Make it pretty.

kixelated avatar Oct 13 '23 00:10 kixelated