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

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

Issue 90083002: Cast Extensions API: Major namespace and object renaming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests Created 7 years 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
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/cast_streaming_session.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/cast_streaming_rtp_stream.idl
diff --git a/chrome/common/extensions/api/cast_streaming_rtp_stream.idl b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
new file mode 100644
index 0000000000000000000000000000000000000000..55994d36933c66fdb8af1aeeeeaed656bdedc88b
--- /dev/null
+++ b/chrome/common/extensions/api/cast_streaming_rtp_stream.idl
@@ -0,0 +1,96 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// The <code>chrome.cast.streaming.rtpStream</code> API allows configuration
+// of encoding parameters and RTP parameters used in a Cast streaming
+// session.
+namespace cast.streaming.rtpStream {
+ // Params for audio and video codec.
+ dictionary CodecSpecificParams {
+ DOMString key;
+ DOMString value;
+ };
+
+ // RTP payload param.
+ dictionary RtpPayloadParams {
+ long payloadType;
+
+ DOMString codecName;
+
+ // Synchronization source identifier.
+ long? ssrc;
+
+ long? clockRate;
+
+ long? minBitrate;
+
+ long? maxBitrate;
+
+ // The number of channels.
+ long? channels;
+
+ // Video width in pixels.
+ long? width;
+
+ // Video height in pixels.
+ long? height;
+
+ // A list of codec specific params.
+ CodecSpecificParams[] codecSpecificParams;
+ };
+
+ // Cast RTP capabilities.
+ dictionary RtpCaps {
+ // RTP payload params.
+ RtpPayloadParams[] payloads;
+
+ DOMString[] rtcpFeatures;
+ };
+
+ // Cast RTP parameters.
+ dictionary RtpParams {
+ // RTP payload params.
+ RtpPayloadParams[] payloads;
+
+ DOMString[] rtcpFeatures;
+ };
+
+ // Callback from the <code>create</code> method.
+ // |id| : The ID for the RTP stream.
+ callback CreateCallback = void (long streamId);
+
+ interface Functions {
+ // Destroys a Cast RTP stream.
+ // |streamId| : The RTP stream ID.
+ [nocompile] static void destroy(long streamId);
+
+ // Returns capabilities of the RTP stream.
+ // |streamId| : The RTP stream ID.
+ [nocompile] static RtpCaps getCaps(long streamId);
+
+ // Activates the RTP stream by providing the parameters.
+ // |streamId| : The RTP stream ID.
+ // |params| : Parameters set for this stream.
+ [nocompile] static void start(long streamId, RtpParams params);
+
+ // Stops activity on the specified stream.
+ // |streamId| : The RTP stream ID.
+ [nocompile] static void stop(long streamId);
+ };
+
+ interface Events {
+ // Event fired when a Cast RTP stream has started.
+ // |streamId| : The ID of the RTP stream.
+ static void onStarted(long streamId);
+
+ // Event fired when a Cast RTP stream has stopped.
+ // |streamId| : The ID of the RTP stream.
+ static void onStopped(long streamId);
+
+ // Event fired when a Cast RTP stream has error.
+ // |streamId| : The ID of the RTP stream.
+ // |errorString| : The error info.
+ static void onError(long streamId, DOMString errorString);
+ };
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/cast_streaming_session.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698