netwerk/ipc/PRtspController.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/ipc/PRtspController.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
     1.6 +
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +include protocol PNecko;
    1.12 +include URIParams;
    1.13 +
    1.14 +namespace mozilla {
    1.15 +namespace net {
    1.16 +
    1.17 +/**
    1.18 + * Defined meta data format.
    1.19 + */
    1.20 +union RtspMetaValue
    1.21 +{
    1.22 +  bool;
    1.23 +  uint8_t;
    1.24 +  uint32_t;
    1.25 +  uint64_t;
    1.26 +  nsCString;
    1.27 +};
    1.28 +
    1.29 +/**
    1.30 + * Key-value pair.
    1.31 + */
    1.32 +struct RtspMetadataParam
    1.33 +{
    1.34 +  nsCString name;
    1.35 +  RtspMetaValue value;
    1.36 +};
    1.37 +
    1.38 +async protocol PRtspController
    1.39 +{
    1.40 +  manager PNecko;
    1.41 +
    1.42 +parent:
    1.43 +  AsyncOpen(URIParams aURI);
    1.44 +  Play();
    1.45 +  Pause();
    1.46 +  Resume();
    1.47 +  Suspend();
    1.48 +  Seek(uint64_t offset);
    1.49 +  Stop();
    1.50 +  __delete__();
    1.51 +
    1.52 +child:
    1.53 +  OnMediaDataAvailable(uint8_t index,
    1.54 +                       nsCString data,
    1.55 +                       uint32_t length,
    1.56 +                       uint32_t offset,
    1.57 +                       RtspMetadataParam[] meta);
    1.58 +  OnConnected(uint8_t index,
    1.59 +              RtspMetadataParam[] meta);
    1.60 +  OnDisconnected(uint8_t index,
    1.61 +                 nsresult reason);
    1.62 +  AsyncOpenFailed(nsresult reason);
    1.63 +};
    1.64 +
    1.65 +} //namespace net
    1.66 +} //namespace mozilla

mercurial