1/*
2 * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef HISTREAMER_PLUGIN_MEDIA_SINK_H
17#define HISTREAMER_PLUGIN_MEDIA_SINK_H
18
19#include <string>
20#include "plugin/common/plugin_tags.h"
21namespace OHOS {
22namespace Media {
23namespace Plugin {
24class MediaSink {
25public:
26    explicit MediaSink(ProtocolType protocolType);
27    virtual ~MediaSink() = default;
28    void SetFd(const int32_t fd);
29    void SetPath(const std::string& path);
30    ProtocolType GetProtocolType() const;
31    std::string GetPath() const;
32    int32_t GetFd() const;
33private:
34    std::string path_ {};
35    int32_t fd_ {-1};
36    ProtocolType protocolType_;
37};
38} // namespace Plugin
39} // namespace Media
40} // namespace OHOS
41#endif