VNMediaClientNET

StreamStateEventArgs.h
1 #pragma once
2 #include "Enums.h"
3
4 namespace VideoNext
5 {
6 using namespace System;
7
11 public ref class StreamStateEventArgs sealed : public EventArgs
12 {
13 public:
20 StreamStateEventArgs(StreamState state, Int32 errorCode, String ^errorMessage)
21 {
22 m_state = state;
23 m_errorCode = errorCode;
24 m_errorMessage = errorMessage;
25 }
26
27 public:
32 property StreamState State
33 {
34 StreamState get()
35 {
36 return m_state;
37 }
38 };
39
43 property Int32 ErrorCode
44 {
45 Int32 get()
46 {
47 return m_errorCode;
48 }
49 };
50
54 property String^ ErrorMessage
55 {
56 String ^ get()
57 {
58 return m_errorMessage;
59 }
60 }
61
62 private:
63 StreamState m_state;
64 Int32 m_errorCode;
65 String ^ m_errorMessage;
66 };
67 }
VideoNext
VideoNEXT media player API.
Definition: AnalyticsRenderer.cpp:7
VideoNext::StreamStateEventArgs
Stream state changed event arguments.
Definition: StreamStateEventArgs.h:12
VideoNext::StreamState
StreamState
Media player state.
Definition: Enums.h:11
VideoNext::StreamStateEventArgs::StreamStateEventArgs
StreamStateEventArgs(StreamState state, Int32 errorCode, String ^errorMessage)
Constructor.
Definition: StreamStateEventArgs.h:20