VNMediaClientNET

StreamInfo.h
1 #pragma once
2
3 #include "Enums.h"
4
5 struct vn_player_stream_info_t;
6
7 namespace VideoNext
8 {
9 using namespace System;
10 using namespace System::Collections::Generic;
11
15 public ref class StreamInfo
16 {
17 public:
22 property StreamType Type
23 {
24 StreamType get() { return m_Type; }
25 };
26
30 property Int32 StreamId
31 {
32 Int32 get() { return m_StreamId; }
33 };
34
38 property Int32 Duration
39 {
40 Int32 get() { return m_Duration; }
41 };
42
46 property String^ RtpCodec
47 {
48 String^ get() { return m_RtpCodec; }
49 };
50
54 property Int32 SamplingFrequency
55 {
56 Int32 get() { return m_SamplingFrequency; }
57 };
58
62 property Int32 BitsPerSample
63 {
64 Int32 get() { return m_BitsPerSample; }
65 };
66
70 property Int32 NumChannels
71 {
72 Int32 get() { return m_NumChannels; }
73 };
74
78 property IntPtr ConfigData
79 {
80 IntPtr get() { return m_ConfigData; }
81 }
82
86 property Int32 ConfigDataSize
87 {
88 Int32 get() { return m_ConfigDataSize; }
89 }
90
94 property Dictionary<String^, String^>^ Metadata
95 {
96 Dictionary<String^, String^>^ get() { return m_Metadata; }
97 }
98
99 internal:
100 StreamInfo(const vn_player_stream_info_t* streamInfo);
101
102 private:
103 StreamType m_Type;
104 Int32 m_StreamId;
105 Int32 m_Duration;
106 String^ m_RtpCodec;
107 Int32 m_SamplingFrequency;
108 Int32 m_BitsPerSample;
109 Int32 m_NumChannels;
110 IntPtr m_ConfigData;
111 Int32 m_ConfigDataSize;
112 Dictionary<String^, String^>^ m_Metadata;
113 };
114 }
VideoNext
VideoNEXT media player API.
Definition: AnalyticsRenderer.cpp:7
VideoNext::StreamType
StreamType
Stream type.
Definition: Enums.h:65
VideoNext::StreamInfo
Stream info.
Definition: StreamInfo.h:16