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

Side by Side Diff: mojo/services/media/common/interfaces/media_transport.mojom

Issue 1692443002: Motown: Framework parts for mojo transport (producer/consumer/mediapipe) and control (audiotrack). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Sync and fix: InterfaceHandle<X> vs XPtr, changes to MediaPipe Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 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 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.media; 6 module mojo.media;
7 7
8 import "mojo/services/media/common/interfaces/media_common.mojom"; 8 import "mojo/services/media/common/interfaces/media_common.mojom";
9 import "mojo/services/media/common/interfaces/media_pipe.mojom"; 9 import "mojo/services/media/common/interfaces/media_pipe.mojom";
10 import "mojo/services/media/common/interfaces/media_types.mojom"; 10 import "mojo/services/media/common/interfaces/media_types.mojom";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // In the latter scenario, the client calls Connect on the producer to connect 58 // In the latter scenario, the client calls Connect on the producer to connect
59 // producer and consumer. The producer then calls PushPacket on the consumer to 59 // producer and consumer. The producer then calls PushPacket on the consumer to
60 // deliver packets. 60 // deliver packets.
61 interface MediaConsumer { 61 interface MediaConsumer {
62 // Sets the shared buffer in which packet payload will be located. 62 // Sets the shared buffer in which packet payload will be located.
63 SetBuffer(handle<shared_buffer> buffer, uint64 size) => (); 63 SetBuffer(handle<shared_buffer> buffer, uint64 size) => ();
64 64
65 // Pushes a packet to the consumer. The callback signals that the consumer 65 // Pushes a packet to the consumer. The callback signals that the consumer
66 // is done with the packet buffer region. 66 // is done with the packet buffer region.
67 PushPacket(MediaPacket packet) => (); 67 PushPacket(MediaPacket packet) => ();
68
69 // Flushes the stream. The callback signals that the flush operation is
70 // complete.
71 Flush() => ();
68 }; 72 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698