Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/renderer/media/media_stream_video_source.h

Issue 1672713002: MediaStreamVideoSource exports current video format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const blink::WebMediaConstraints& constraints, 80 const blink::WebMediaConstraints& constraints,
81 const ConstraintsCallback& callback); 81 const ConstraintsCallback& callback);
82 void RemoveTrack(MediaStreamVideoTrack* track); 82 void RemoveTrack(MediaStreamVideoTrack* track);
83 83
84 // Return true if |name| is a constraint supported by MediaStreamVideoSource. 84 // Return true if |name| is a constraint supported by MediaStreamVideoSource.
85 static bool IsConstraintSupported(const std::string& name); 85 static bool IsConstraintSupported(const std::string& name);
86 86
87 // Returns the task runner where video frames will be delivered on. 87 // Returns the task runner where video frames will be delivered on.
88 base::SingleThreadTaskRunner* io_task_runner() const; 88 base::SingleThreadTaskRunner* io_task_runner() const;
89 89
90 media::VideoCaptureFormat current_format() const { return current_format_; }
miu 2016/02/05 22:20:47 The format is invalid until the source is started.
miu 2016/02/05 22:20:47 Where is the code that calls this? Note that ther
Mikhail 2016/02/08 08:13:06 I will reference this CL when upload the client co
91
90 protected: 92 protected:
91 void DoStopSource() override; 93 void DoStopSource() override;
92 94
93 // Sets ready state and notifies the ready state to all registered tracks. 95 // Sets ready state and notifies the ready state to all registered tracks.
94 virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state); 96 virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state);
95 97
96 // Sets muted state and notifies it to all registered tracks. 98 // Sets muted state and notifies it to all registered tracks.
97 virtual void SetMutedState(bool state); 99 virtual void SetMutedState(bool state);
98 100
99 // An implementation must fetch the formats that can currently be used by 101 // An implementation must fetch the formats that can currently be used by
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 185
184 // NOTE: Weak pointers must be invalidated before all other member variables. 186 // NOTE: Weak pointers must be invalidated before all other member variables.
185 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; 187 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); 189 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource);
188 }; 190 };
189 191
190 } // namespace content 192 } // namespace content
191 193
192 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 194 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698