michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef RtspMetaData_h michael@0: #define RtspMetaData_h michael@0: michael@0: #include "mozilla/net/PRtspController.h" michael@0: #include "nsIStreamingProtocolController.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class RtspMetaData : public nsIStreamingProtocolMetaData michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSISTREAMINGPROTOCOLMETADATA michael@0: michael@0: RtspMetaData(); michael@0: ~RtspMetaData(); michael@0: michael@0: nsresult DeserializeRtspMetaData(const InfallibleTArray& metaArray); michael@0: michael@0: private: michael@0: uint32_t mFrameType; michael@0: uint32_t mIndex; michael@0: uint32_t mTotalTracks; michael@0: uint32_t mWidth; michael@0: uint32_t mHeight; michael@0: uint64_t mDuration; michael@0: uint32_t mSampleRate; michael@0: uint64_t mCurrentTimeStamp; michael@0: uint32_t mChannelCount; michael@0: nsCString mMimeType; michael@0: nsCString mESDS; michael@0: nsCString mAVCC; michael@0: }; michael@0: michael@0: } // namespace net michael@0: } // namespace mozilla michael@0: michael@0: #endif // RtspMetaData_h