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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // The <code>chrome.cast.streaming.rtpStream</code> API allows configuration
6 // of encoding parameters and RTP parameters used in a Cast streaming
7 // session.
8 namespace cast.streaming.rtpStream {
9 // Params for audio and video codec.
10 dictionary CodecSpecificParams {
11 DOMString key;
12 DOMString value;
13 };
14
15 // RTP payload param.
16 dictionary RtpPayloadParams {
17 long payloadType;
18
19 DOMString codecName;
20
21 // Synchronization source identifier.
22 long? ssrc;
23
24 long? clockRate;
25
26 long? minBitrate;
27
28 long? maxBitrate;
29
30 // The number of channels.
31 long? channels;
32
33 // Video width in pixels.
34 long? width;
35
36 // Video height in pixels.
37 long? height;
38
39 // A list of codec specific params.
40 CodecSpecificParams[] codecSpecificParams;
41 };
42
43 // Cast RTP capabilities.
44 dictionary RtpCaps {
45 // RTP payload params.
46 RtpPayloadParams[] payloads;
47
48 DOMString[] rtcpFeatures;
49 };
50
51 // Cast RTP parameters.
52 dictionary RtpParams {
53 // RTP payload params.
54 RtpPayloadParams[] payloads;
55
56 DOMString[] rtcpFeatures;
57 };
58
59 // Callback from the <code>create</code> method.
60 // |id| : The ID for the RTP stream.
61 callback CreateCallback = void (long streamId);
62
63 interface Functions {
64 // Destroys a Cast RTP stream.
65 // |streamId| : The RTP stream ID.
66 [nocompile] static void destroy(long streamId);
67
68 // Returns capabilities of the RTP stream.
69 // |streamId| : The RTP stream ID.
70 [nocompile] static RtpCaps getCaps(long streamId);
71
72 // Activates the RTP stream by providing the parameters.
73 // |streamId| : The RTP stream ID.
74 // |params| : Parameters set for this stream.
75 [nocompile] static void start(long streamId, RtpParams params);
76
77 // Stops activity on the specified stream.
78 // |streamId| : The RTP stream ID.
79 [nocompile] static void stop(long streamId);
80 };
81
82 interface Events {
83 // Event fired when a Cast RTP stream has started.
84 // |streamId| : The ID of the RTP stream.
85 static void onStarted(long streamId);
86
87 // Event fired when a Cast RTP stream has stopped.
88 // |streamId| : The ID of the RTP stream.
89 static void onStopped(long streamId);
90
91 // Event fired when a Cast RTP stream has error.
92 // |streamId| : The ID of the RTP stream.
93 // |errorString| : The error info.
94 static void onError(long streamId, DOMString errorString);
95 };
96 };
OLDNEW
« 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