2017-05-04 14:57:31 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2017, Dario Casalinuovo. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _MEDIA_STREAMER_H
|
|
|
|
#define _MEDIA_STREAMER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <Url.h>
|
|
|
|
|
2018-11-25 13:59:45 +03:00
|
|
|
#include "Streamer.h"
|
2017-05-04 14:57:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
namespace media {
|
|
|
|
|
|
|
|
|
2018-11-25 14:40:49 +03:00
|
|
|
class BMediaStreamer {
|
2017-05-04 14:57:31 +03:00
|
|
|
public:
|
2018-11-25 14:40:49 +03:00
|
|
|
BMediaStreamer(BUrl url);
|
|
|
|
~BMediaStreamer();
|
2017-05-04 14:57:31 +03:00
|
|
|
|
|
|
|
status_t CreateAdapter(BDataIO** adapter);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BUrl fUrl;
|
2018-11-25 14:40:49 +03:00
|
|
|
BStreamer* fStreamer;
|
2018-10-28 18:14:25 +03:00
|
|
|
|
|
|
|
// No virtual padding needed. Looks like a design decision.
|
|
|
|
// Let's respect that, for now.
|
|
|
|
// Same apply to MediaWriter and MediaExtractor.
|
|
|
|
uint32 fReserved[5];
|
2017-05-04 14:57:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}; // namespace media
|
|
|
|
}; // namespace BPrivate
|
|
|
|
|
|
|
|
using namespace BPrivate::media;
|
|
|
|
|
|
|
|
#endif
|