Native Player  1.0
messages.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 //
3 // Copyright (c) 2016, Samsung Electronics Co., Ltd
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to
7 // deal in the Software without restriction, including without limitation the
8 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 // sell copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in
13 // all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM
20 // , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 // THE SOFTWARE.
22 //
23 // @author Tomasz Borkowski
24 // Michal Murgrabia
25 //
26 // ----------------------------------------------------------------------------
27 
28 #ifndef NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGES_H_
29 #define NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGES_H_
30 
31 #include <string>
32 
44 namespace Communication {
45 
58 
74 
76  kPlay = 2,
77 
79  kPause = 3,
80 
83  kSeek = 4,
84 
91 
97 
102 
111 };
112 
129  kTimeUpdate = 100,
130 
136 
140 
149 
160 
168 
174 
181  kSubtitles = 107,
182 };
183 
188 enum class ClipTypeEnum {
190 
191  kUnknown = 0,
193 
194  kUrl = 1,
196 
197  kDash = 2
198 };
199 
206 const std::string kKeyMessageToPlayer = "messageToPlayer";
207 
214 const std::string kKeyMessageFromPlayer = "messageFromPlayer";
215 
218 const std::string kKeyBitrate = "bitrate";
219 
222 const std::string kKeyDuration = "duration";
223 
226 const std::string kKeyEncoding = "encoding";
227 
230 const std::string kKeyId = "id";
231 
234 const std::string kKeyLanguage = "language";
235 
238 const std::string kKeySubtitle = "subtitle";
239 
242 const std::string kKeyTime = "time";
243 
246 const std::string kKeyType = "type";
247 
250 const std::string kKeyUrl = "url";
251 
254 const std::string kKeyWidth = "width";
255 
258 const std::string kKeyHeight = "height";
259 
262 const std::string kKeyXCoordination = "x_coordinate";
263 
266 const std::string kKeyYCoordination = "y_coordinate";
267 
268 } // namespace Communication
269 
270 #endif // NATIVE_PLAYER_INC_COMMUNICATOR_MESSAGES_H_
const std::string kKeyLanguage
Definition: messages.h:234
const std::string kKeySubtitle
Definition: messages.h:238
const std::string kKeyWidth
Definition: messages.h:254
const std::string kKeyBitrate
Definition: messages.h:218
const std::string kKeyType
Definition: messages.h:246
const std::string kKeyYCoordination
Definition: messages.h:266
A request to pause playing; no additional parameters.
Definition: messages.h:79
const std::string kKeyMessageFromPlayer
Definition: messages.h:214
const std::string kKeyXCoordination
Definition: messages.h:262
Requested content is a dash manifest.
const std::string kKeyEncoding
Definition: messages.h:226
const std::string kKeyTime
Definition: messages.h:242
Requested content is a media container.
A request to close the player; no additional parameters.
Definition: messages.h:57
const std::string kKeyId
Definition: messages.h:230
const std::string kKeyDuration
Definition: messages.h:222
const std::string kKeyUrl
Definition: messages.h:250
const std::string kKeyHeight
Definition: messages.h:258
const std::string kKeyMessageToPlayer
Definition: messages.h:206
A request to start playing; no additional parameters.
Definition: messages.h:76