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 <packager/media/base/media_handler.h>
11
12namespace shaka {
13namespace media {
14
19class Replicator : public MediaHandler {
20 private:
21 Status InitializeInternal() override;
22 Status Process(std::unique_ptr<StreamData> stream_data) override;
23 bool ValidateOutputStreamIndex(size_t stream_index) const override;
24 Status OnFlushRequest(size_t input_stream_index) override;
25};
26
27} // namespace media
28} // namespace shaka
29
30#endif // PACKAGER_MEDIA_REPLICATOR_HANDLER_H_
All the methods that are virtual are virtual for mocking.