RDK Documentation (Open Sourced RDK Components)
AampSmokeTestPlayer.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 AampSmokeTestPlayer.h
22  * @brief AampSmokeTestPlayer header file
23  */
24 
25 #ifndef AAMPSMOKETESTPLAYER_H
26 #define AAMPSMOKETESTPLAYER_H
27 
28 #include <gst/gst.h>
29 #include <main_aamp.h>
30 #include "priv_aamp.h"
31 
33 {
34  public:
35  const char *stringifyPrivAAMPState(PrivAAMPState state);
36  void Event(const AAMPEventPtr& e);
37 };
38 
40 {
41  public:
42  static bool mInitialized;
43  bool mEnableProgressLog;
44  std::string mTuneFailureDescription;
45  static GMainLoop *mAampGstPlayerMainLoop;
46  static GThread *mAampMainLoopThread;
47  static SmokeTestEventListener *mEventListener;
48  static PlayerInstanceAAMP *mPlayerInstanceAamp;
49  static void * aampGstPlayerStreamThread(void *arg);
50  void initPlayerLoop(int argc, char **argv);
51  FILE * getConfigFile(const std::string& cfgFile);
52  AampPlayer();
53  AampPlayer(const AampPlayer& aampPlayer);
54  AampPlayer& operator=(const AampPlayer& aampPlayer);
55 };
56 
57 
58 #endif // AAMPSMOKETESTPLAYER_H
main_aamp.h
Types and APIs exposed by the AAMP player.
AAMPEventObjectListener
Class for AAMP event listening Uses shared_ptr for event objects for better memory management New AAM...
Definition: AampEventListener.h:87
AampPlayer::initPlayerLoop
void initPlayerLoop(int argc, char **argv)
To initialize Gstreamer and start mainloop (for standalone mode)
Definition: AampSmokeTestPlayer.cpp:75
AampPlayer
Definition: AampSmokeTestPlayer.h:39
PlayerInstanceAAMP
Player interface class for the JS pluggin.
Definition: main_aamp.h:692
SmokeTestEventListener::Event
void Event(const AAMPEventPtr &e)
Implementation of event callback.
Definition: AampSmokeTestPlayer.cpp:147
priv_aamp.h
Private functions and types used internally by AAMP.
PrivAAMPState
PrivAAMPState
Mapping all required status codes based on JS player requirement. These requirements may be forced by...
Definition: AampEvent.h:156
AampPlayer::aampGstPlayerStreamThread
static void * aampGstPlayerStreamThread(void *arg)
Thread to run mainloop (for standalone mode)
Definition: AampSmokeTestPlayer.cpp:57
SmokeTestEventListener
Definition: AampSmokeTestPlayer.h:32