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

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: idl compiler 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..29d43d9e8a6832f6e35aa7ec10b4d06344f6600a 100644
--- a/chrome/common/extensions/api/cast_streaming_session.idl
+++ b/chrome/common/extensions/api/cast_streaming_session.idl
@@ -22,15 +22,18 @@ namespace cast.streaming.session {
interface Functions {
// 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.
+ // source. The tracks must be of type MediaStreamTrack. 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 is null then the created stream ID will be null.
//
// |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,
+ [nocompile,allowAmbiguousOptionalArguments] static void create(
+ [instanceOf=MediaStreamTrack] optional object audioTrack,
+ [instanceOf=MediaStreamTrack] optional object videoTrack,
CreateCallback callback);
};
};
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/renderer/extensions/cast_streaming_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698