@@ -34,15 +34,15 @@ namespace WPEFramework
34
34
35
35
enum PlayerReasonCode : uint32_t
36
36
{
37
- MIRACAST_PLAYER_REASON_CODE_SUCCESS = 200 /* @text SUCCESS */ ,
38
- MIRACAST_PLAYER_REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP REQUESTED TO STOP. */ ,
39
- MIRACAST_PLAYER_REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC DEVICE REQUESTED TO STOP. */ ,
40
- MIRACAST_PLAYER_REASON_CODE_RTSP_ERROR = 203 /* @text RTSP Failure. */ ,
41
- MIRACAST_PLAYER_REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP Timeout. */ ,
42
- MIRACAST_PLAYER_REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP Method Not Supported. */ ,
43
- MIRACAST_PLAYER_REASON_CODE_GST_ERROR = 206 /* @text GStreamer Failure. */ ,
44
- MIRACAST_PLAYER_REASON_CODE_INT_FAILURE = 207 /* @text Internal Failure. */ ,
45
- MIRACAST_PLAYER_REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text APP REQ TO STOP FOR NEW CONNECTION. */ ,
37
+ REASON_CODE_SUCCESS = 200 /* @text SUCCESS */ ,
38
+ REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */ ,
39
+ REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */ ,
40
+ REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */ ,
41
+ REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */ ,
42
+ REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */ ,
43
+ REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */ ,
44
+ REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */ ,
45
+ REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */ ,
46
46
};
47
47
48
48
enum PlayerStopReasonCode : uint32_t
@@ -115,7 +115,7 @@ namespace WPEFramework
115
115
// @param deviceParam: Contains Source and Sink Device related properties
116
116
// @param videoRect: Video rectangle to be used for Miracast playback (x, y, width, height)
117
117
// @param success: Is the operation successful or not
118
- virtual Core::hresult PlayRequest (const DeviceParameters &deviceParam /* @in @text device_parameters */ , const VideoRectangle &videoRect /* @in @text video_rectangle */ , Result &success /* @out */ ) = 0;
118
+ virtual Core::hresult PlayRequest (const DeviceParameters &deviceParam /* @in @text device_parameters */ , const VideoRectangle &videoRect /* @in @text video_rectangle */ , Result &returnPayload /* @out */ ) = 0;
119
119
120
120
// @brief To stop the Miracast Player to tear down the RTSP communication, stop/close the GStreamer pipeline, clean up, and reset the player state
121
121
// @text stopRequest
@@ -124,7 +124,7 @@ namespace WPEFramework
124
124
// @param reasonCode: Reason code for the player stop request
125
125
// @param reason: Reason for the player stop request
126
126
// @param success: Is the operation successful or not
127
- virtual Core::hresult StopRequest (const string &clientMac /* @in @text mac */ , const string &clientName /* @in @text name */ , const PlayerStopReasonCode &reasonCode /* @in @text reason_code */ , Result &success /* @out */ ) = 0;
127
+ virtual Core::hresult StopRequest (const string &clientMac /* @in @text mac */ , const string &clientName /* @in @text name */ , const PlayerStopReasonCode &reasonCode /* @in @text reason_code */ , Result &returnPayload /* @out */ ) = 0;
128
128
129
129
// @brief Set the Video Rectangle.
130
130
// @text setVideoRectangle
@@ -133,25 +133,25 @@ namespace WPEFramework
133
133
// @param width: Width of the rectangle
134
134
// @param height: Height of the rectangle
135
135
// @param success: Is the operation successful or not
136
- virtual Core::hresult SetVideoRectangle (const int32_t &startX /* @in @text X */ , const int32_t &startY /* @in @text Y */ , const int32_t &width /* @in @text W */ , const int32_t &height /* @in @text H */ , Result &success /* @out */ ) = 0;
136
+ virtual Core::hresult SetVideoRectangle (const int32_t &startX /* @in @text X */ , const int32_t &startY /* @in @text Y */ , const int32_t &width /* @in @text W */ , const int32_t &height /* @in @text H */ , Result &returnPayload /* @out */ ) = 0;
137
137
138
138
// @brief To Enable/Disable/Reduce the Logging level for Miracast
139
139
// @text setLogging
140
140
// @param clienMac: MacAddress of the client device
141
141
// @param clienName: Name of the client device
142
142
// @param success: Is the operation successful or not
143
- virtual Core::hresult SetLogging (const string &logLevel /* @in @text level */ , const SeparateLogger &separateLogger /* @in @text separate_logger */ , Result &success /* @out */ ) = 0;
143
+ virtual Core::hresult SetLogging (const string &logLevel /* @in @text level */ , const SeparateLogger &separateLogger /* @in @text separate_logger */ , Result &returnPayload /* @out */ ) = 0;
144
144
145
145
// @brief To configure the westeros environment arguments for the Miracast Player
146
146
// @text setWesterosEnvironment
147
147
// @param westerosArgs: Westeros environment arguments to be set
148
148
// @param success: Is the operation successful or not
149
- virtual Core::hresult SetWesterosEnvironment ( IWesterosEnvArgumentsIterator * const westerosArgs /* @in @text westerosArgs */ , Result &success /* @out */ ) = 0;
149
+ virtual Core::hresult SetWesterosEnvironment ( IWesterosEnvArgumentsIterator * const westerosArgs /* @in @text westerosArgs */ , Result &returnPayload /* @out */ ) = 0;
150
150
151
151
// @brief To reset the westeros environment arguments for the Miracast Player
152
152
// @text unsetWesterosEnvironment
153
153
// @param success: Is the operation successful or not
154
- virtual Core::hresult UnsetWesterosEnvironment (bool &success /* @out */ ) = 0;
154
+ virtual Core::hresult UnsetWesterosEnvironment (Result &returnPayload /* @out */ ) = 0;
155
155
};
156
156
} // namespace Exchange
157
157
} // namespace WPEFramework
0 commit comments