xref: /haiku/src/add-ons/media/plugins/http_streamer/HTTPStreamerPlugin.h (revision 5629675a326ecf2ff3fd23f154beb525c171048d)
1 /*
2  * Copyright 2016, Dario Casalinuovo
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _HTTP_STREAMER_PLUGIN_H
6 #define _HTTP_STREAMER_PLUGIN_H
7 
8 
9 #include <Streamer.h>
10 
11 #include "HTTPMediaIO.h"
12 
13 using BCodecKit::BMediaIO;
14 using BCodecKit::BMediaPlugin;
15 using BCodecKit::BStreamer;
16 using BCodecKit::BStreamerPlugin;
17 
18 
19 class HTTPStreamer : public BStreamer
20 {
21 public:
22 								HTTPStreamer();
23 	virtual						~HTTPStreamer();
24 
25 	virtual status_t			Sniff(const BUrl& url);
26 	virtual BMediaIO*			Adapter() const;
27 
28 private:
29 			HTTPMediaIO*		fAdapter;
30 };
31 
32 
33 class HTTPStreamerPlugin : public BStreamerPlugin
34 {
35 public:
36 	virtual	BStreamer*			NewStreamer();
37 };
38 
39 #endif // _HTTP_STREAMER_PLUGIN_H
40