Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=8 et tw=80 : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef RtspMetaData_h
8 #define RtspMetaData_h
10 #include "mozilla/net/PRtspController.h"
11 #include "nsIStreamingProtocolController.h"
12 #include "nsCOMPtr.h"
13 #include "nsString.h"
15 namespace mozilla {
16 namespace net {
18 class RtspMetaData : public nsIStreamingProtocolMetaData
19 {
20 public:
21 NS_DECL_THREADSAFE_ISUPPORTS
22 NS_DECL_NSISTREAMINGPROTOCOLMETADATA
24 RtspMetaData();
25 ~RtspMetaData();
27 nsresult DeserializeRtspMetaData(const InfallibleTArray<RtspMetadataParam>& metaArray);
29 private:
30 uint32_t mFrameType;
31 uint32_t mIndex;
32 uint32_t mTotalTracks;
33 uint32_t mWidth;
34 uint32_t mHeight;
35 uint64_t mDuration;
36 uint32_t mSampleRate;
37 uint64_t mCurrentTimeStamp;
38 uint32_t mChannelCount;
39 nsCString mMimeType;
40 nsCString mESDS;
41 nsCString mAVCC;
42 };
44 } // namespace net
45 } // namespace mozilla
47 #endif // RtspMetaData_h