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 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media
_manager.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "base/rand_util.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 WiFiDisplayMediaManager::WiFiDisplayMediaManager() { |
| 13 } |
| 14 |
| 15 WiFiDisplayMediaManager::~WiFiDisplayMediaManager() { |
| 16 } |
| 17 |
| 18 void WiFiDisplayMediaManager::Play() { |
| 19 NOTIMPLEMENTED(); |
| 20 } |
| 21 |
| 22 void WiFiDisplayMediaManager::Teardown() { |
| 23 NOTIMPLEMENTED(); |
| 24 } |
| 25 |
| 26 void WiFiDisplayMediaManager::Pause() { |
| 27 NOTIMPLEMENTED(); |
| 28 } |
| 29 |
| 30 bool WiFiDisplayMediaManager::IsPaused() const { |
| 31 NOTIMPLEMENTED(); |
| 32 return true; |
| 33 } |
| 34 |
| 35 wds::SessionType WiFiDisplayMediaManager::GetSessionType() const { |
| 36 NOTIMPLEMENTED(); |
| 37 return wds::AudioVideoSession; |
| 38 } |
| 39 |
| 40 void WiFiDisplayMediaManager::SetSinkRtpPorts(int port1, int port2) { |
| 41 NOTIMPLEMENTED(); |
| 42 } |
| 43 |
| 44 std::pair<int,int> WiFiDisplayMediaManager::GetSinkRtpPorts() const { |
| 45 NOTIMPLEMENTED(); |
| 46 return std::pair<int,int>(); |
| 47 } |
| 48 |
| 49 int WiFiDisplayMediaManager::GetLocalRtpPort() const { |
| 50 NOTIMPLEMENTED(); |
| 51 return 0; |
| 52 } |
| 53 |
| 54 wds::H264VideoFormat WiFiDisplayMediaManager::GetOptimalVideoFormat() const { |
| 55 NOTIMPLEMENTED(); |
| 56 return wds::H264VideoFormat(); |
| 57 } |
| 58 |
| 59 void WiFiDisplayMediaManager::SendIDRPicture() { |
| 60 NOTIMPLEMENTED(); |
| 61 } |
| 62 |
| 63 std::string WiFiDisplayMediaManager::GetSessionId() const { |
| 64 return base::RandBytesAsString(8); |
| 65 } |
| 66 |
| 67 bool WiFiDisplayMediaManager::InitOptimalVideoFormat( |
| 68 const wds::NativeVideoFormat& sink_native_format, |
| 69 const std::vector<wds::H264VideoCodec>& sink_supported_codecs) { |
| 70 NOTIMPLEMENTED(); |
| 71 return false; |
| 72 } |
| 73 |
| 74 bool WiFiDisplayMediaManager::InitOptimalAudioFormat( |
| 75 const std::vector<wds::AudioCodec>& sink_codecs) { |
| 76 NOTIMPLEMENTED(); |
| 77 return false; |
| 78 } |
| 79 |
| 80 wds::AudioCodec WiFiDisplayMediaManager::GetOptimalAudioFormat() const { |
| 81 NOTIMPLEMENTED(); |
| 82 return wds::AudioCodec(); |
| 83 } |
| 84 |
| 85 } // namespace extensions |
OLD | NEW |