57 lines
1018 B
C++
57 lines
1018 B
C++
/*
|
|
* Copyright 2017, Dario Casalinuovo. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _STREAMER_PLUGIN_H
|
|
#define _STREAMER_PLUGIN_H
|
|
|
|
|
|
#include <MediaIO.h>
|
|
#include <Url.h>
|
|
|
|
#include "MediaPlugin.h"
|
|
|
|
|
|
namespace BPrivate { namespace media {
|
|
|
|
class PluginManager;
|
|
|
|
|
|
class BStreamer {
|
|
public:
|
|
virtual status_t Sniff(const BUrl& url, BDataIO** source) = 0;
|
|
|
|
protected:
|
|
BStreamer();
|
|
virtual ~BStreamer();
|
|
|
|
private:
|
|
BMediaPlugin* fMediaPlugin;
|
|
|
|
friend class PluginManager;
|
|
friend class MediaStreamer;
|
|
|
|
virtual void _ReservedStreamer1();
|
|
virtual void _ReservedStreamer2();
|
|
virtual void _ReservedStreamer3();
|
|
virtual void _ReservedStreamer4();
|
|
virtual void _ReservedStreamer5();
|
|
|
|
uint32 fReserved[5];
|
|
};
|
|
|
|
|
|
class BStreamerPlugin : public virtual BMediaPlugin {
|
|
public:
|
|
BStreamerPlugin();
|
|
|
|
virtual BStreamer* NewStreamer() = 0;
|
|
};
|
|
|
|
} } // namespace BPrivate::media
|
|
|
|
using namespace BPrivate::media;
|
|
|
|
|
|
#endif // _STREAMER_PLUGIN_H
|