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

Unified Diff: chrome/common/extensions/api/cast_streaming_session.idl

Issue 391263002: Cast: cast.streaming API to support null audio (or video) track (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/cast_streaming_session.idl
diff --git a/chrome/common/extensions/api/cast_streaming_session.idl b/chrome/common/extensions/api/cast_streaming_session.idl
index 6673baf0e170972b4517e989499b913cbcbe63aa..31df963ce70caf8cdf5b305eeb4884fc07ea5f55 100644
--- a/chrome/common/extensions/api/cast_streaming_session.idl
+++ b/chrome/common/extensions/api/cast_streaming_session.idl
@@ -24,13 +24,16 @@ namespace cast.streaming.session {
// Creates a Cast session using the provided audio and video track as
// source. This will create two RTP streams and a UDP transport that
// builds the session.
+ // Either |audioTrack| or |videoTrack| can be null but not both. This
+ // means creating a session with only audio or video. If a given
+ // track then the created stream ID will be null.
not at google - send to devlin 2014/07/15 23:32:18 this last sentence doesn't make sense.
Alpha Left Google 2014/07/15 23:48:42 Done.
//
// |audioTrack| : the source audio track.
// |videoTrack| : the source video track.
// |callback| : Called when the sesion has been created.
[nocompile] static void create(
- [instanceOf=MediaStreamTrack] object audioTrack,
- [instanceOf=MediaStreamTrack] object videoTrack,
+ [instanceOf=MediaStreamTrack] optional object audioTrack,
+ [instanceOf=MediaStreamTrack] optional object videoTrack,
CreateCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698