kodi
DVDInputStreamFFmpeg.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "DVDInputStream.h"
12 
14  : public CDVDInputStream
15 {
16 public:
17  explicit CDVDInputStreamFFmpeg(const CFileItem& fileitem);
18  ~CDVDInputStreamFFmpeg() override;
19  bool Open() override;
20  void Close() override;
21  int Read(uint8_t* buf, int buf_size) override;
22  int64_t Seek(int64_t offset, int whence) override;
23  bool IsEOF() override;
24  int64_t GetLength() override;
25  std::string GetFileName() override;
26 
27  void Abort() override { m_aborted = true; }
28  bool Aborted() { return m_aborted; }
29 
30  const CFileItem& GetItem() const { return m_item; }
31 
32  std::string GetProxyType() const;
33  std::string GetProxyHost() const;
34  uint16_t GetProxyPort() const;
35  std::string GetProxyUser() const;
36  std::string GetProxyPassword() const;
37 
38 protected:
39  bool m_aborted = false;
40 };
Definition: DVDInputStream.h:50
Definition: DVDInputStreamFFmpeg.h:13
Represents a file on a share.
Definition: FileItem.h:102