mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-02 10:33:23 -05:00
2a610812a5
Also includes the skeleton for perhaps supporting video in the future. Adds more fine-grained ffmpeg/libav compability checks. Dependency on libavresample/libswresample exchanged with dependency on libavfilter, which seems more versatile.
26 lines
566 B
C
26 lines
566 B
C
|
|
#ifndef __HTTPD_STREAMING_H__
|
|
#define __HTTPD_STREAMING_H__
|
|
|
|
#include <event2/http.h>
|
|
|
|
/* 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.
|
|
*/
|
|
|
|
int
|
|
streaming_is_request(struct evhttp_request *req, char *uri);
|
|
|
|
int
|
|
streaming_request(struct evhttp_request *req);
|
|
|
|
int
|
|
streaming_init(void);
|
|
|
|
void
|
|
streaming_deinit(void);
|
|
|
|
#endif /* !__HTTPD_STREAMING_H__ */
|