CRI ADX
Last Updated: 2024-07-17 10:48 p
日本語
English
中文
特定的声音不被播放
仅不能播放特定的声音(Cue、Voice)时,请首先使用从::criAtomExPlayer_Start 函数返回的播放ID来获取状态。
向Player发出播放请求并接收播放ID的代码如下。
/* 播放单位的ID */
CriAtomExPlaybackId
playback_id;
/* 发出播放请求 */
playback_id =
criAtomExPlayer_Start
(player);
/* criAtomExPlayer_Start 结果的检查 */
if
(playback_id ==
CRIATOMEX_INVALID_PLAYBACK_ID
) {
/* 错误 */
}
CRIATOMEX_INVALID_PLAYBACK_ID
#define CRIATOMEX_INVALID_PLAYBACK_ID
Invalid playback ID
Definition:
cri_le_atom_ex.h:196
criAtomExPlayer_Start
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback
CriAtomExPlaybackId
CriUint32 CriAtomExPlaybackId
Playback ID
Definition:
cri_le_atom_ex.h:3722
从播放ID获取状态的代码如下。
/* 获取播放ID的状态 */
CriAtomExPlaybackStatus
playback_status;
playback_status =
criAtomExPlayback_GetStatus
(playback_id);
criAtomExPlayback_GetStatus
CriAtomExPlaybackStatus criAtomExPlayback_GetStatus(CriAtomExPlaybackId id)
Get the playback status
CriAtomExPlaybackStatus
enum CriAtomExPlaybackStatusTag CriAtomExPlaybackStatus
Playback status
已获取的播放ID状态的分类如下。
保持PREP状态,不转换为PLAYING
变成PLAYING但没有声音
声音立即变为REMOVED状态
Copyright (c) CRI Middleware Co., Ltd. 1.9.1