moq-js
moq-js copied to clipboard
Public Broadcast Listing
I removed this functionality as part of migrating away from ANNOUNCE. Time to add it back and do it properly this time!
- Add a "public" checkbox to
/publishthat 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.
- 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-apiormoq-js; your choice.
- 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-jsonly). - Return a paginated list of public broadcasts and some basic information about them.
- Periodically verify each broadcast is still live via
- Render the list of all public broadcasts on
/watch.- Make it pretty.