haiku/headers/private/media/StreamerPlugin.h

47 lines
847 B
C
Raw Normal View History

2016-03-11 04:04:59 +03:00
#ifndef _STREAMER_PLUGIN_H
#define _STREAMER_PLUGIN_H
2016-03-26 00:44:56 +03:00
#include <MediaIO.h>
2016-03-11 04:04:59 +03:00
#include <MediaTrack.h>
#include <Url.h>
#include "MediaPlugin.h"
2016-03-26 00:44:56 +03:00
2016-03-11 04:04:59 +03:00
namespace BPrivate { namespace media {
class PluginManager;
class Streamer {
public:
Streamer();
virtual ~Streamer();
virtual status_t Sniff(const BUrl& url, BDataIO** source) = 0;
2016-03-11 04:04:59 +03:00
private:
virtual void _ReservedStreamer1();
virtual void _ReservedStreamer2();
virtual void _ReservedStreamer3();
virtual void _ReservedStreamer4();
virtual void _ReservedStreamer5();
MediaPlugin* fMediaPlugin;
uint32 fReserved[5];
friend class PluginManager;
};
class StreamerPlugin : public virtual MediaPlugin {
public:
virtual Streamer* NewStreamer() = 0;
};
} } // namespace BPrivate::media
using namespace BPrivate::media;
2016-03-26 00:44:56 +03:00
2016-03-11 04:04:59 +03:00
#endif // _STREAMER_PLUGIN_H