提交 b60f7d77 编写于 作者: S starfish002

support get current player-state

Signed-off-by: Nstarfish002 <shaoyuan.zhang@huawei.com>
上级 5313e1e1
......@@ -259,6 +259,10 @@ static void SampleCmd(TestSample &sample)
ret = sample.adapter->GetVideoHeight(videoHeight);
IS_OK(ret);
printf("player videoWidth:%d videoHeight:%d\n", videoWidth, videoHeight);
int32_t state;
ret = sample.adapter->GetPlayerState(state);
IS_OK(ret);
printf("player current state:%d\n", state);
} else if (strncmp(cmd, "loop", 4) == 0) {
if (sscanf_s(cmd, "loop %d", &loop) != 1) {
printf("ERR: not input loop flag, example: loop 1!\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册