Bumping manifests a=b2g-bump
[gecko.git] / netwerk / ipc / PRtspController.ipdl
blobde74461779f72609b1506b764bca5841e5dd3e7e
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 include protocol PNecko;
9 include URIParams;
11 namespace mozilla {
12 namespace net {
14 /**
15  * Defined meta data format.
16  */
17 union RtspMetaValue
19   bool;
20   uint8_t;
21   uint32_t;
22   uint64_t;
23   nsCString;
26 /**
27  * Key-value pair.
28  */
29 struct RtspMetadataParam
31   nsCString name;
32   RtspMetaValue value;
35 async protocol PRtspController
37   manager PNecko;
39 parent:
40   AsyncOpen(URIParams aURI);
41   Play();
42   Pause();
43   Resume();
44   Suspend();
45   Seek(uint64_t offset);
46   Stop();
47   PlaybackEnded();
48   __delete__();
50 child:
51   OnMediaDataAvailable(uint8_t index,
52                        nsCString data,
53                        uint32_t length,
54                        uint32_t offset,
55                        RtspMetadataParam[] meta);
56   OnConnected(uint8_t index,
57               RtspMetadataParam[] meta);
58   OnDisconnected(uint8_t index,
59                  nsresult reason);
60   AsyncOpenFailed(nsresult reason);
63 } //namespace net
64 } //namespace mozilla