MediaSystem.hpp
1
//
2
// Created by xiong on 2021/8/5.
3
//
4
5
#ifndef EMX_MediaSystem_HPP
6
#define EMX_MediaSystem_HPP
7
8
#include "core/EmxTypeDef.hpp"
9
10
namespace
Emx
{
16
class
MediaSystem
{
17
public
:
22
static
ErrCodeE
CreateMedia
();
23
28
static
ErrCodeE
DestroyMedia
();
29
34
static
ErrCodeE
SwitchScene
(
const
char
*scene);
35
41
static
ErrCodeE
SwitchSceneTemp
(
const
char
*scene);
42
48
static
ErrCodeE
GetScene
(std::string &scene);
49
62
static
ErrCodeE
GetChipInfo
(std::string &info);
63
};
64
66
}
// namespace Emx
67
68
#endif
//EMX_MediaSystem_HPP
Emx::MediaSystem
控制媒体服务整体的启停
Definition:
MediaSystem.hpp:16
Emx::MediaSystem::CreateMedia
static ErrCodeE CreateMedia()
创建媒体
Emx::MediaSystem::SwitchScene
static ErrCodeE SwitchScene(const char *scene)
切换场景
Emx::MediaSystem::GetScene
static ErrCodeE GetScene(std::string &scene)
获取当前场景
Emx::MediaSystem::DestroyMedia
static ErrCodeE DestroyMedia()
停止媒体
Emx::MediaSystem::SwitchSceneTemp
static ErrCodeE SwitchSceneTemp(const char *scene)
临时切换场景
Emx::MediaSystem::GetChipInfo
static ErrCodeE GetChipInfo(std::string &info)
获取芯片信息
Emx::ErrCodeE
ErrCodeE
错误码定义
Definition:
EmxTypeDef.hpp:29
Emx
Definition:
EmxGpio.hpp:10