OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_MA
NAGER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_MA
NAGER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "third_party/wds/src/libwds/public/media_manager.h" |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 class WiFiDisplayMediaManager : public wds::SourceMediaManager { |
| 14 public: |
| 15 WiFiDisplayMediaManager(); |
| 16 |
| 17 ~WiFiDisplayMediaManager() override; |
| 18 |
| 19 private: |
| 20 // wds::SourceMediaManager overrides. |
| 21 void Play() override; |
| 22 |
| 23 void Pause() override; |
| 24 void Teardown() override; |
| 25 bool IsPaused() const override; |
| 26 wds::SessionType GetSessionType() const override; |
| 27 void SetSinkRtpPorts(int port1, int port2) override; |
| 28 std::pair<int,int> GetSinkRtpPorts() const override; |
| 29 int GetLocalRtpPort() const override; |
| 30 |
| 31 bool InitOptimalVideoFormat( |
| 32 const wds::NativeVideoFormat& sink_native_format, |
| 33 const std::vector<wds::H264VideoCodec>& sink_supported_codecs) override; |
| 34 wds::H264VideoFormat GetOptimalVideoFormat() const override; |
| 35 bool InitOptimalAudioFormat( |
| 36 const std::vector<wds::AudioCodec>& sink_supported_codecs) override; |
| 37 wds::AudioCodec GetOptimalAudioFormat() const override; |
| 38 |
| 39 void SendIDRPicture() override; |
| 40 |
| 41 std::string GetSessionId() const override; |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(WiFiDisplayMediaManager); |
| 44 }; |
| 45 |
| 46 } // namespace extensions |
| 47 |
| 48 #endif // EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA
_MANAGER_H_ |
OLD | NEW |