| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ | 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // channel mixing. | 42 // channel mixing. |
| 43 CONTENT_EXPORT bool AddAudioTrackToMediaStream( | 43 CONTENT_EXPORT bool AddAudioTrackToMediaStream( |
| 44 scoped_refptr<media::AudioCapturerSource> audio_source, | 44 scoped_refptr<media::AudioCapturerSource> audio_source, |
| 45 int sample_rate, | 45 int sample_rate, |
| 46 media::ChannelLayout channel_layout, | 46 media::ChannelLayout channel_layout, |
| 47 int frames_per_buffer, | 47 int frames_per_buffer, |
| 48 bool is_remote, | 48 bool is_remote, |
| 49 bool is_readonly, | 49 bool is_readonly, |
| 50 blink::WebMediaStream* web_media_stream); | 50 blink::WebMediaStream* web_media_stream); |
| 51 | 51 |
| 52 // On success returns pointer to the current format of the given video track; | |
| 53 // returns nullptr on failure (if the argument is invalid or if the format | |
| 54 // cannot be retrieved at the moment). | |
| 55 CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat( | |
| 56 const blink::WebMediaStreamTrack& video_track); | |
| 57 | |
| 58 // Requests that a refresh frame be sent "soon" (e.g., to resolve picture loss | 52 // Requests that a refresh frame be sent "soon" (e.g., to resolve picture loss |
| 59 // or quality issues). | 53 // or quality issues). |
| 60 CONTENT_EXPORT void RequestRefreshFrameFromVideoTrack( | 54 CONTENT_EXPORT void RequestRefreshFrameFromVideoTrack( |
| 61 const blink::WebMediaStreamTrack& video_track); | 55 const blink::WebMediaStreamTrack& video_track); |
| 62 | 56 |
| 63 } // namespace content | 57 } // namespace content |
| 64 | 58 |
| 65 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ | 59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ |
| OLD | NEW |