|
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/. */ |
|
6 |
|
7 #ifndef RtspMetaData_h |
|
8 #define RtspMetaData_h |
|
9 |
|
10 #include "mozilla/net/PRtspController.h" |
|
11 #include "nsIStreamingProtocolController.h" |
|
12 #include "nsCOMPtr.h" |
|
13 #include "nsString.h" |
|
14 |
|
15 namespace mozilla { |
|
16 namespace net { |
|
17 |
|
18 class RtspMetaData : public nsIStreamingProtocolMetaData |
|
19 { |
|
20 public: |
|
21 NS_DECL_THREADSAFE_ISUPPORTS |
|
22 NS_DECL_NSISTREAMINGPROTOCOLMETADATA |
|
23 |
|
24 RtspMetaData(); |
|
25 ~RtspMetaData(); |
|
26 |
|
27 nsresult DeserializeRtspMetaData(const InfallibleTArray<RtspMetadataParam>& metaArray); |
|
28 |
|
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 }; |
|
43 |
|
44 } // namespace net |
|
45 } // namespace mozilla |
|
46 |
|
47 #endif // RtspMetaData_h |