It may seem a bit like the way that FastAPI uses dependency injection can feel a bit like a middleware. Well, FastAPI also allows for adding middlewares explicitly. In this video I show you how you can use some built-in middleware functionality as well as handle CORS via the CORSMiddleware package. GitHub:
Hide player controls
Hide resume playing