/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2020. All rights reserved. * Description: NxMediaPlayerFactory class implement * Author: NxPlayer software group * Create: 2019-11-21 */ #ifndef ANDROID_NXMEDIAPLAYER_FACTORY_H #define ANDROID_NXMEDIAPLAYER_FACTORY_H #include #include "NxMediaPlayerFactoryInterface.h" namespace android { class NxMediaPlayerFactory : public NxMediaPlayerFactoryInterface { public: float scoreFactory(const char *url, float curScore) override; float scoreFactory(int fd) override; private: void GetProcessNameByPid(pid_t pid, const char *taskName) const; bool IsNxPlayerDisable() const; bool IsOutPutOverLay() const; bool IsNxPlayerSupport() const; bool IsFileAccess(const int fd) const; static std::vector g_accseeAllowedList; static std::vector g_whiteListOthers; static std::vector g_fileExts; }; }; #endif