pomu
pomu copied to clipboard
submitting livestreams with embedding disabled is impossible on the frontend
the frontend uses the youtube embed API to (https://www.youtube.com/oembed?url=
) display video info like title and uploader before submission to our API server.
if the video has embedding disabled, that endpoint will return 401 unauthorized
and because of our error handling, the whole video will be unable to be submitted via the frontend. manually submitting it via the API works fully normally.
we need to handle the following errors returned by youtube's oembed endpoint:
-
400 bad request
-
401 unauthorized
-
404 not found