20
20
#pragma once
21
21
22
22
#include " Module.h"
23
- #include " IMiracastPlayer.h"
24
- // @stubgen:include "IMiracastPlayer.h"
25
- // @stubgen:include <com/IIteratorType.h>
26
23
27
24
namespace WPEFramework
28
25
{
@@ -42,6 +39,38 @@ namespace WPEFramework
42
39
ERROR_CODE_GENERIC_FAILURE = 104 /* @text GENERIC_FAILURE */
43
40
};
44
41
42
+ enum PlayerState : uint8_t
43
+ {
44
+ STATE_IDLE = 0 /* @text IDLE */ ,
45
+ STATE_INITIATED = 1 /* @text INITIATED */ ,
46
+ STATE_INPROGRESS = 2 /* @text INPROGRESS */ ,
47
+ STATE_PLAYING = 3 /* @text PLAYING */ ,
48
+ STATE_STOPPED = 4 /* @text STOPPED */
49
+ };
50
+
51
+ enum PlayerErrorCode : uint8_t
52
+ {
53
+ ERROR_CODE_SUCCESS = 200 /* @text SUCCESS */ ,
54
+ ERROR_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */ ,
55
+ ERROR_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */ ,
56
+ ERROR_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */ ,
57
+ ERROR_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */ ,
58
+ ERROR_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */ ,
59
+ ERROR_CODE_GST_ERROR = 206 /* @text GST_FAILURE */ ,
60
+ ERROR_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */ ,
61
+ ERROR_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */ ,
62
+ };
63
+
64
+ enum LogLevel : uint8_t
65
+ {
66
+ LOG_LEVEL_FATAL = 0 /* @text FATAL */ ,
67
+ LOG_LEVEL_ERROR = 1 /* @text ERROR */ ,
68
+ LOG_LEVEL_WARNING = 2 /* @text WARNING */ ,
69
+ LOG_LEVEL_INFO = 3 /* @text INFO */ ,
70
+ LOG_LEVEL_VERBOSE = 4 /* @text VERBOSE */ ,
71
+ LOG_LEVEL_TRACE = 5 /* @text TRACE */
72
+ };
73
+
45
74
struct EXTERNAL DeviceParameters
46
75
{
47
76
string sourceDeviceIP /* @text source_dev_ip */ /* @brief IP Address of Source Device */ ;
@@ -128,14 +157,14 @@ namespace WPEFramework
128
157
// @param reasonCode: Reason code for the player state update
129
158
// @param reason: Reason for the player state update
130
159
// @param success: Is the operation successful or not
131
- virtual Core::hresult UpdatePlayerState (const string &clientMac /* @in @text mac */ , const IMiracastPlayer::State &playerState /* @in @text state */ , const IMiracastPlayer::ErrorCode &reasonCode /* @in @text reason_code */ , Result &returnPayload /* @out */ ) = 0;
160
+ virtual Core::hresult UpdatePlayerState (const string &clientMac /* @in @text mac */ , const PlayerState &playerState /* @in @text state */ , const PlayerErrorCode &reasonCode /* @in @text reason_code */ , Result &returnPayload /* @out */ ) = 0;
132
161
133
162
// @brief Enable or Disable or Reduce the Logging level for Miracast
134
163
// @text setLogging
135
164
// @param logLevel: The logging level to be set (e.g., "DEBUG", "INFO", "WARN", "ERROR")
136
165
// @param separateLogger: Contains the separate logger properties
137
166
// @param success: Is the operation successful or not
138
- virtual Core::hresult SetLogging (const IMiracastPlayer:: LogLevel &logLevel /* @in @text level */ , const SeparateLogger &separateLogger /* @in @text separate_logger */ , Result &returnPayload /* @out */ ) = 0;
167
+ virtual Core::hresult SetLogging (const LogLevel &logLevel /* @in @text level */ , const SeparateLogger &separateLogger /* @in @text separate_logger */ , Result &returnPayload /* @out */ ) = 0;
139
168
140
169
// @brief Sets the status of the MiracastService backend discovery
141
170
// @text setP2PBackendDiscovery
0 commit comments