1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/protocol/rtsp/controller/RtspMetaData.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 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 : */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef RtspMetaData_h 1.11 +#define RtspMetaData_h 1.12 + 1.13 +#include "mozilla/net/PRtspController.h" 1.14 +#include "nsIStreamingProtocolController.h" 1.15 +#include "nsCOMPtr.h" 1.16 +#include "nsString.h" 1.17 + 1.18 +namespace mozilla { 1.19 +namespace net { 1.20 + 1.21 +class RtspMetaData : public nsIStreamingProtocolMetaData 1.22 +{ 1.23 + public: 1.24 + NS_DECL_THREADSAFE_ISUPPORTS 1.25 + NS_DECL_NSISTREAMINGPROTOCOLMETADATA 1.26 + 1.27 + RtspMetaData(); 1.28 + ~RtspMetaData(); 1.29 + 1.30 + nsresult DeserializeRtspMetaData(const InfallibleTArray<RtspMetadataParam>& metaArray); 1.31 + 1.32 + private: 1.33 + uint32_t mFrameType; 1.34 + uint32_t mIndex; 1.35 + uint32_t mTotalTracks; 1.36 + uint32_t mWidth; 1.37 + uint32_t mHeight; 1.38 + uint64_t mDuration; 1.39 + uint32_t mSampleRate; 1.40 + uint64_t mCurrentTimeStamp; 1.41 + uint32_t mChannelCount; 1.42 + nsCString mMimeType; 1.43 + nsCString mESDS; 1.44 + nsCString mAVCC; 1.45 +}; 1.46 + 1.47 +} // namespace net 1.48 +} // namespace mozilla 1.49 + 1.50 +#endif // RtspMetaData_h