Shaka Packager SDK
Loading...
Searching...
No Matches
replicator.h
1// Copyright 2017 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef PACKAGER_MEDIA_REPLICATOR_HANDLER_H_
8#define PACKAGER_MEDIA_REPLICATOR_HANDLER_H_
9
10#include <cstddef>
11#include <memory>
12
13#include <packager/media/base/media_handler.h>
14#include <packager/status.h>
15
16namespace shaka {
17namespace media {
18
23class Replicator : public MediaHandler {
24 private:
25 Status InitializeInternal() override;
26 Status Process(std::unique_ptr<StreamData> stream_data) override;
27 bool ValidateOutputStreamIndex(size_t stream_index) const override;
28 Status OnFlushRequest(size_t input_stream_index) override;
29};
30
31} // namespace media
32} // namespace shaka
33
34#endif // PACKAGER_MEDIA_REPLICATOR_HANDLER_H_
All the methods that are virtual are virtual for mocking.