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

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

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: merged Created 5 years, 9 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
(Empty)
1 // Copyright 2015 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.receiverSession</code> API creates a Cast
6 // receiver session and adds the resulting audio and video tracks to a
7 // MediaStream.
8 namespace cast.streaming.receiverSession {
9 // The UDP socket address and port.
10 dictionary IPEndPoint {
11 DOMString address;
12 long port;
13 };
14
15 // Params for audio and video codec.
16 dictionary CodecSpecificParams {
17 DOMString key;
18 DOMString value;
19 };
20
21 // RTP receiver parameters.
22 dictionary RtpReceiverParams {
23 // Maximum latency in milliseconds. This parameter controls the logic
24 // of flow control. Implementation can adjust latency adaptively and
25 // tries to keep it under this threshold. A larger value allows smoother
26 // playback at the cost of higher latency.
27 long maxLatency;
28
29 DOMString codecName;
30
31 // Synchronization source identifier.
32 long ssrc;
33
34 long feedbackSsrc;
35
36 // 32 bytes hex-encoded AES key.
37 DOMString? aesKey;
38
39 // 32 bytes hex-encoded AES IV (Initialization vector) mask.
40 DOMString? aesIvMask;
41 };
42
43 callback ErrorCallback = void (DOMString error);
44
45 interface Functions {
46 // Creates a Cast receiver session which receives data from a UDP
47 // socket. The receiver will decode the incoming data into an audio
48 // and a video track which will be added to the provided media stream.
49 // The |audioParams| and |videoParams| is generally provided by the
50 // sender through some other messaging channel.
51 //
52 // |audioParams| : the video stream parameters
53 // |videoParams| : the video stream parameters
54 // |localEndpoint| : Set this to bind() to a local UDP port.
55 // |remoteEndpoint| : Set this to connect() to a remote UDP port.
56 // |height| : Video height
57 // |width| : Video width
58 // |maxFrameRate| : Max video frame rate.
59 // |mediaStreamURL| : URL of MediaStream to add the audio & video to.
60 // |transport_options| : Optional transport settings.
61 [nocompile] static void create(
62 RtpReceiverParams audioParams,
63 RtpReceiverParams videoParams,
64 IPEndPoint localEndpoint,
65 IPEndPoint remoteEndpoint,
66 long height,
miu 2015/02/28 04:32:58 Rename to maxWidth/maxHeight, if these are needed
hubbe 2015/03/03 01:23:03 Done.
67 long width,
68 double maxFrameRate,
69 DOMString mediaStreamURL,
70 ErrorCallback error_callback,
71 optional object transport_options);
72 };
73 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698