2015-10-09 23:58:27 +02:00
|
|
|
|
|
|
|
#ifndef __HTTPD_STREAMING_H__
|
|
|
|
#define __HTTPD_STREAMING_H__
|
|
|
|
|
2017-11-04 21:24:42 +01:00
|
|
|
#include "httpd.h"
|
2019-02-10 23:27:29 +01:00
|
|
|
#include "outputs.h"
|
2015-10-09 23:58:27 +02:00
|
|
|
|
|
|
|
/* httpd_streaming takes care of incoming requests to /stream.mp3
|
|
|
|
* It will receive decoded audio from the player, and encode it, and
|
|
|
|
* stream it to one or more clients. It will not be available
|
|
|
|
* if a suitable ffmpeg/libav encoder is not present at runtime.
|
|
|
|
*/
|
|
|
|
|
2016-03-22 22:59:50 +01:00
|
|
|
void
|
2019-02-10 23:27:29 +01:00
|
|
|
streaming_write(struct output_buffer *obuf);
|
2016-03-22 22:59:50 +01:00
|
|
|
|
2015-10-09 23:58:27 +02:00
|
|
|
int
|
2017-11-04 21:24:42 +01:00
|
|
|
streaming_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed);
|
2015-10-09 23:58:27 +02:00
|
|
|
|
|
|
|
int
|
2017-11-04 21:24:42 +01:00
|
|
|
streaming_is_request(const char *path);
|
2015-10-09 23:58:27 +02:00
|
|
|
|
|
|
|
int
|
|
|
|
streaming_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
streaming_deinit(void);
|
|
|
|
|
|
|
|
#endif /* !__HTTPD_STREAMING_H__ */
|