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: Source/modules/mediastream/MediaStream.idl

Issue 14188039: MediaStream API: Remove LocalMediaStream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 [ 25 [
26 Conditional=MEDIA_STREAM, 26 Conditional=MEDIA_STREAM,
27 EventTarget, 27 EventTarget,
28 Constructor, 28 Constructor,
29 Constructor(MediaStream stream), 29 Constructor(MediaStream stream),
30 Constructor(MediaStreamTrack[] tracks), 30 Constructor(MediaStreamTrack[] tracks),
31 CallWith=ScriptExecutionContext, 31 CallWith=ScriptExecutionContext,
32 SkipVTableValidation
33 ] interface MediaStream { 32 ] interface MediaStream {
34 // DEPRECATED
35 readonly attribute DOMString label;
36
37 readonly attribute DOMString id; 33 readonly attribute DOMString id;
38 34
39 sequence<MediaStreamTrack> getAudioTracks(); 35 sequence<MediaStreamTrack> getAudioTracks();
40 sequence<MediaStreamTrack> getVideoTracks(); 36 sequence<MediaStreamTrack> getVideoTracks();
41 37
42 [RaisesException] void addTrack(MediaStreamTrack track); 38 [RaisesException] void addTrack(MediaStreamTrack track);
43 [RaisesException] void removeTrack(MediaStreamTrack track); 39 [RaisesException] void removeTrack(MediaStreamTrack track);
44 MediaStreamTrack getTrackById(DOMString trackId); 40 MediaStreamTrack getTrackById(DOMString trackId);
45 41
46 readonly attribute boolean ended; 42 readonly attribute boolean ended;
43 void stop();
47 44
48 attribute EventListener onended; 45 attribute EventListener onended;
49 attribute EventListener onaddtrack; 46 attribute EventListener onaddtrack;
50 attribute EventListener onremovetrack; 47 attribute EventListener onremovetrack;
51 48
52 // EventTarget interface 49 // EventTarget interface
53 void addEventListener(DOMString type, 50 void addEventListener(DOMString type,
54 EventListener listener, 51 EventListener listener,
55 optional boolean useCapture); 52 optional boolean useCapture);
56 void removeEventListener(DOMString type, 53 void removeEventListener(DOMString type,
57 EventListener listener, 54 EventListener listener,
58 optional boolean useCapture); 55 optional boolean useCapture);
59 [RaisesException] boolean dispatchEvent(Event event); 56 [RaisesException] boolean dispatchEvent(Event event);
60 }; 57 };
61 58
OLDNEW
« no previous file with comments | « Source/modules/mediastream/MediaStream.cpp ('k') | Source/modules/mediastream/NavigatorUserMediaSuccessCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698