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

Side by Side Diff: chrome/common/extensions/api/cast_streaming_rtp_stream.idl

Issue 562653004: Cast: First stab at implementing adaptive latency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fixed Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 // The <code>chrome.cast.streaming.rtpStream</code> API allows configuration 5 // The <code>chrome.cast.streaming.rtpStream</code> API allows configuration
6 // of encoding parameters and RTP parameters used in a Cast streaming 6 // of encoding parameters and RTP parameters used in a Cast streaming
7 // session. 7 // session.
8 // 8 //
9 // Valid stream IDs are positive and non-zero. 9 // Valid stream IDs are positive and non-zero.
10 namespace cast.streaming.rtpStream { 10 namespace cast.streaming.rtpStream {
11 // Params for audio and video codec. 11 // Params for audio and video codec.
12 dictionary CodecSpecificParams { 12 dictionary CodecSpecificParams {
13 DOMString key; 13 DOMString key;
14 DOMString value; 14 DOMString value;
15 }; 15 };
16 16
17 // RTP payload param. 17 // RTP payload param.
18 dictionary RtpPayloadParams { 18 dictionary RtpPayloadParams {
19 long payloadType; 19 long payloadType;
20 20
21 // Maximum latency in milliseconds. This parameter controls the logic 21 // Maximum latency in milliseconds. This parameter controls the logic
22 // of flow control. Implementation can adjust latency adaptively and 22 // of flow control. Implementation can adjust latency adaptively and
23 // tries to keep it under this threshold. A larger value allows smoother 23 // tries to keep it under this threshold. A larger value allows smoother
24 // playback at the cost of higher latency. 24 // playback at the cost of higher latency.
25 long maxLatency; 25 long maxLatency;
26 26
27 // Minimum latency in milliseconds. Defaults to |maxLatency|.
28 long? minLatency;
29
27 DOMString codecName; 30 DOMString codecName;
28 31
29 // Synchronization source identifier. 32 // Synchronization source identifier.
30 long ssrc; 33 long ssrc;
31 34
32 long feedbackSsrc; 35 long feedbackSsrc;
33 36
34 long? clockRate; 37 long? clockRate;
35 38
36 // Minimum bitrate in kilobits per second. 39 // Minimum bitrate in kilobits per second.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Event fired when a Cast RTP stream has stopped. 138 // Event fired when a Cast RTP stream has stopped.
136 // |streamId| : The ID of the RTP stream. 139 // |streamId| : The ID of the RTP stream.
137 static void onStopped(long streamId); 140 static void onStopped(long streamId);
138 141
139 // Event fired when a Cast RTP stream has error. 142 // Event fired when a Cast RTP stream has error.
140 // |streamId| : The ID of the RTP stream. 143 // |streamId| : The ID of the RTP stream.
141 // |errorString| : The error info. 144 // |errorString| : The error info.
142 static void onError(long streamId, DOMString errorString); 145 static void onError(long streamId, DOMString errorString);
143 }; 146 };
144 }; 147 };
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/cast_streaming_native_handler.cc » ('j') | chrome/renderer/media/cast_rtp_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698