-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stream config endpoint #2033
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM either way simple asks
if (!stream) { | ||
stream = await db.stream.get(id); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps by streamKey instead? Catalyst never gets the stream ID AFAIK.
But also, maybe we want to be explicit here by using query-strings instead like /api/stream/config?playbackId=<pid>
or /api/stream/config?streamKey=<sk>
Otherwise, I'm concerned we could for example eventually start allowing playback by stream key or stream id, which could leak to accidental leaks of those for example 🤔 (stream ID is also secret, it kinda gives ownership over the resource if the app uses a frontend API key)
ORRR, to keep it simple, we can allow only playback ID for now and think about this later when this evolves for example to replace the API that mapic calls.
if (!stream) { | ||
stream = await db.stream.get(id); | ||
} | ||
if (!stream) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to check stream.deleted
and maybe stream.suspended
as well
No description provided.