[HN Gopher] Show HN: MaryJane - Mjpeg server in 30 lines of asyn...
___________________________________________________________________
Show HN: MaryJane - Mjpeg server in 30 lines of async Python
Author : andrewstuart
Score : 18 points
Date : 2021-10-06 01:10 UTC (1 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| andrewstuart wrote:
| MaryJane MJPEG server in < 30 lines of Python.
|
| Here is a demo: http://18.116.60.15:8080/maryjane/
|
| Here's the 30 lines of Python:
| https://raw.githubusercontent.com/bootrino/maryjane/master/m...
|
| Here is the github: https://github.com/bootrino/maryjane
|
| Browsers are able to display images such as PNG, JPG and GIF.
|
| A less known capability of browsers is to display a stream of JPG
| images. This is called MJPEG (motion JPEG).
|
| All you need to do is specify the MPJEG server address in an
| image tag and it just works.
|
| It's written in less than 30 lines of async Python.
|
| This project is MIT licensed.
| tdeck wrote:
| If I understand multipart/x-mixed-replace right, this could be
| used with other image formats as well? Really cool use of an
| almost forgotten technology.
___________________________________________________________________
(page generated 2021-10-07 23:00 UTC)