You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
950 B

/*
* 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 <unistd.h>
#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<std::string> g_accseeAllowedList;
static std::vector<std::string> g_whiteListOthers;
static std::vector<std::string> g_fileExts;
};
};
#endif