RDK Documentation (Open Sourced RDK Components)
AampcliPlaybackCommand.h
Go to the documentation of this file.
1
/*
2
* If not stated otherwise in this file or this component's license file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2022 RDK Management
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
20
/**
21
* @file AampcliPlaybackCommand.h
22
* @brief AAMPcliPlaybackCommand header file
23
*/
24
25
#ifndef AAMPCLIPLAYBACKCOMMAND_H
26
#define AAMPCLIPLAYBACKCOMMAND_H
27
28
#include "
Aampcli.h
"
29
#include "
AampcliCommandHandler.h
"
30
31
32
class
PlaybackCommand
:
public
Command
33
{
34
35
public
:
36
static
std::vector<std::string> commands;
37
static
std::map<string,string> playbackCommands;
38
void
addCommand(
string
command,
string
description);
39
void
registerPlaybackCommands();
40
static
char
*commandRecommender(
const
char
*text,
int
state);
41
bool
isNumber
(
const
char
*s);
42
void
showHelp
(
void
);
43
bool
isTuneScheme
(
const
char
*cmd);
44
void
trim
(
char
**cmd);
45
void
termPlayerLoop
();
46
bool
execute
(
char
*cmd,
PlayerInstanceAAMP
*playerInstanceAamp);
47
48
};
49
50
#endif // AAMPCLIPLAYBACKCOMMAND_H
PlaybackCommand::trim
void trim(char **cmd)
trim a string
Definition:
AampcliPlaybackCommand.cpp:407
PlaybackCommand::showHelp
void showHelp(void)
Show help menu with aamp command line interface.
Definition:
AampcliPlaybackCommand.cpp:483
Aampcli.h
AAMPcli header file.
PlaybackCommand::termPlayerLoop
void termPlayerLoop()
Stop mainloop execution (for standalone mode)
Definition:
AampcliPlaybackCommand.cpp:423
PlaybackCommand::isNumber
bool isNumber(const char *s)
check if the char array is having numbers only
Definition:
AampcliPlaybackCommand.cpp:358
PlayerInstanceAAMP
Player interface class for the JS pluggin.
Definition:
main_aamp.h:692
AampcliCommandHandler.h
AampcliCommandHandler header file.
PlaybackCommand::execute
bool execute(char *cmd, PlayerInstanceAAMP *playerInstanceAamp)
Process command.
Definition:
AampcliPlaybackCommand.cpp:39
Command
Definition:
AampcliCommandHandler.h:35
PlaybackCommand::isTuneScheme
bool isTuneScheme(const char *cmd)
Decide if input command consists of supported URI scheme to be tuned.
Definition:
AampcliPlaybackCommand.cpp:387
PlaybackCommand
Definition:
AampcliPlaybackCommand.h:32
components
generic
aamp
test
aampcli
AampcliPlaybackCommand.h
Generated on Thu Feb 9 2023 06:32:28 for RDK Documentation (Open Sourced RDK Components) by
1.8.17