diff --git a/media/player_sample.cpp b/media/player_sample.cpp index 870faf02276c5a71982f0db34a3996eb2d994444..cc5459eb8efb178caf0db0bc6f20b06ffd478070 100755 --- a/media/player_sample.cpp +++ b/media/player_sample.cpp @@ -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");