How streaming rtsp in Sanic?

how streaming rtsp in Sanic?

You would have a handler that sends raw bytes in chunks: Streaming | Sanic Framework

how create this handler? if i have a rtsp url

You would need to create your own protocol layer. Sanic server ships with HTTP only, but allows you to plugin your own. You would need to do that.

You will need to do a bit of self discovery though using the api docs and looking thru the code. Application — Sanic 22.9.1 documentation

It is possible . I’ve run ftp and other non-http protocols, but you will need to implement it yourself as I am not aware of anything off the shelf.

2 Likes