@@ -55,12 +55,6 @@ namespace WPEFramework
55
55
REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */ ,
56
56
};
57
57
58
- enum StopReasonCode : uint16_t
59
- {
60
- STOP_REASON_APP_REQ_FOR_EXIT = 300 /* @text APP_REQ_TO_STOP_ON_EXIT */ ,
61
- STOP_REASON_APP_REQ_FOR_NEW_CONNECTION = 301 /* @text APP_REQ_TO_STOP_ON_NEW_CONNECTION */
62
- };
63
-
64
58
struct EXTERNAL DeviceParameters
65
59
{
66
60
string sourceDeviceIP /* @text source_dev_ip */ /* @brief IP Address of Source Device */ ;
@@ -71,10 +65,10 @@ namespace WPEFramework
71
65
72
66
struct EXTERNAL VideoRectangle
73
67
{
74
- int32_t startX /* @text X */ /* @brief X coordinate of the rectangle */ ;
75
- int32_t startY /* @text Y */ /* @brief Y coordinate of the rectangle */ ;
76
- int32_t width /* @text W */ /* @brief Width of the rectangle */ ;
77
- int32_t height /* @text H */ /* @brief Height of the rectangle */ ;
68
+ int startX /* @text X */ /* @brief X coordinate of the rectangle */ ;
69
+ int startY /* @text Y */ /* @brief Y coordinate of the rectangle */ ;
70
+ int width /* @text W */ /* @brief Width of the rectangle */ ;
71
+ int height /* @text H */ /* @brief Height of the rectangle */ ;
78
72
};
79
73
80
74
struct EXTERNAL Result
@@ -102,24 +96,20 @@ namespace WPEFramework
102
96
// @param playerState: Current state of the player (e.g., INITIATED | INPROGRESS | PLAYING | STOPPED/IDLE(Default State).)
103
97
// @param reasonCode: Reason code for the player state update
104
98
// @param reason: reason code Decription
105
- virtual void OnStateChange (const string &clientName /* @text name */ , const string &clientMac /* @text mac */ , const State & playerState /* @text state */ , const string &reasonCode /* @text reason_code */ , const ReasonCode & reasonDescription /* @text reason */ ) {};
99
+ virtual void OnStateChange (const string &clientName /* @text name */ , const string &clientMac /* @text mac */ , const State playerState /* @text state */ , const string &reasonCode /* @text reason_code */ , const ReasonCode reasonDescription /* @text reason */ ) {};
106
100
};
107
101
108
102
// @json:omit
109
103
virtual Core::hresult Register (Exchange::IMiracastPlayer::INotification *notification) = 0;
110
104
// @json:omit
111
105
virtual Core::hresult Unregister (Exchange::IMiracastPlayer::INotification *notification) = 0;
112
- // @json:omit
113
- virtual Core::hresult Initialize (PluginHost::IShell* service) = 0;
114
- // @json:omit
115
- virtual Core::hresult Deinitialize (PluginHost::IShell* service) = 0;
116
106
117
107
// @brief To set the Miracast Player State to Play after the Miracast session like RTSP communication and GStreamer Playback
118
108
// @text playRequest
119
109
// @param deviceParam: Contains Source and Sink Device related properties
120
110
// @param videoRect: Video rectangle to be used for Miracast playback (x, y, width, height)
121
111
// @param success: Is the operation successful or not
122
- virtual Core::hresult PlayRequest (const DeviceParameters &deviceParam /* @in @ text device_parameters */ , const VideoRectangle & videoRect /* @in @text video_rectangle */ , Result &result /* @out */ ) = 0;
112
+ virtual Core::hresult PlayRequest (const DeviceParameters &deviceParam /* @text device_parameters */ , const VideoRectangle videoRect /* @text video_rectangle */ , Result &result /* @out */ ) = 0;
123
113
124
114
// @brief To stop the Miracast Player to tear down the RTSP communication, stop/close the GStreamer pipeline, clean up, and reset the player state
125
115
// @text stopRequest
@@ -128,7 +118,7 @@ namespace WPEFramework
128
118
// @param reasonCode: Reason code for the player stop request
129
119
// @param reason: Reason for the player stop request
130
120
// @param success: Is the operation successful or not
131
- virtual Core::hresult StopRequest (const string &clientMac /* @in @ text mac */ , const string &clientName /* @in @ text name */ , const int & reasonCode /* @in @text reason_code */ , Result &result /* @out */ ) = 0;
121
+ virtual Core::hresult StopRequest (const string &clientMac /* @text mac */ , const string &clientName /* @text name */ , const int reasonCode /* @text reason_code */ , Result &result /* @out */ ) = 0;
132
122
133
123
// @brief Set the Video Rectangle.
134
124
// @text setVideoRectangle
@@ -137,13 +127,13 @@ namespace WPEFramework
137
127
// @param width: Width of the rectangle
138
128
// @param height: Height of the rectangle
139
129
// @param success: Is the operation successful or not
140
- virtual Core::hresult SetVideoRectangle (const int & startX /* @in @ text X */ , const int & startY /* @in @ text Y */ , const int & width /* @in @ text W */ , const int & height /* @in @text H */ , Result &result /* @out */ ) = 0;
130
+ virtual Core::hresult SetVideoRectangle (const int startX /* @text X */ , const int startY /* @text Y */ , const int width /* @text W */ , const int height /* @text H */ , Result &result /* @out */ ) = 0;
141
131
142
132
// @brief To configure the westeros environment arguments for the Miracast Player. This will be deprecated and SetEnvArguments will be used instead.
143
133
// @text setWesterosEnvironment
144
134
// @param westerosArgs: Westeros environment arguments to be set
145
135
// @param success: Is the operation successful or not
146
- virtual Core::hresult SetWesterosEnvironment ( IEnvArgumentsIterator * const westerosArgs /* @in @ text westerosArgs */ , Result &result /* @out */ ) = 0;
136
+ virtual Core::hresult SetWesterosEnvironment ( IEnvArgumentsIterator * const westerosArgs /* @text westerosArgs */ , Result &result /* @out */ ) = 0;
147
137
148
138
// @brief To reset the westeros environment arguments for the Miracast Player. This will be deprecated and UnsetEnvArguments will be used instead.
149
139
// @text unsetWesterosEnvironment
@@ -154,7 +144,7 @@ namespace WPEFramework
154
144
// @text setEnvArguments
155
145
// @param envArgs: environment arguments to be set
156
146
// @param success: Is the operation successful or not
157
- virtual Core::hresult SetEnvArguments ( IEnvArgumentsIterator * const envArgs /* @in @ text envArgs */ , Result &result /* @out */ ) = 0;
147
+ virtual Core::hresult SetEnvArguments ( IEnvArgumentsIterator * const envArgs /* @text envArgs */ , Result &result /* @out */ ) = 0;
158
148
159
149
// @brief To reset the environment arguments for the Miracast Player
160
150
// @text unsetEnvArguments
0 commit comments