Skip to content

Commit 8badc99

Browse files
Andrii BoichukAndrii Boichuk
authored andcommitted
Fix CiscoPlayerPlaybackSpeed command(change parammeters)
1 parent c46bd44 commit 8badc99

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/webdriver/commands/cisco_player_commands.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,41 +288,41 @@ bool CISCO_PlaybackSpeedCommand::DoesPost() const
288288

289289
void CISCO_PlaybackSpeedCommand::ExecuteGet(Response * const response)
290290
{
291-
bool mute;
291+
double speed;
292292
Error* error = NULL;
293293

294294
session_->RunSessionTask(base::Bind(
295-
&ViewCmdExecutor::GetMute,
295+
&ViewCmdExecutor::GetPlaybackSpeed,
296296
base::Unretained(executor_.get()),
297297
element,
298-
&mute,
298+
&speed,
299299
&error));
300300

301301
if (error) {
302302
response->SetError(error);
303303
return;
304304
}
305305

306-
Value* value = Value::CreateBooleanValue(mute);
306+
Value* value = Value::CreateBooleanValue(speed);
307307
response->SetValue(value);
308308
}
309309

310310
void CISCO_PlaybackSpeedCommand::ExecutePost(Response * const response)
311311
{
312-
bool mute;
313-
if (!GetBooleanParameter("mute", &mute)) {
312+
double speed;
313+
if (!GetDoubleParameter("speed", &speed)) {
314314
response->SetError(new Error(
315-
kBadRequest, "'mute' is missing or invalid"));
315+
kBadRequest, "'speed' is missing or invalid"));
316316
return;
317317
}
318318

319319
Error* error = NULL;
320320

321321
session_->RunSessionTask(base::Bind(
322-
&ViewCmdExecutor::SetMute,
322+
&ViewCmdExecutor::SetPlaybackSpeed,
323323
base::Unretained(executor_.get()),
324324
element,
325-
mute,
325+
speed,
326326
&error));
327327

328328
if (error)

0 commit comments

Comments
 (0)