提交 dac574d3 编写于 作者: O openharmony_ci 提交者: Gitee

!43 支持获取当前播放器状态

Merge pull request !43 from starfish/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册