// 点击录音列表中录音播放
int RecordingModel::RecordingListOnClickPlay(void)
{
+ SetRecordingPlayerUri(directory + GetCurrentPlayRecordingName() + ".mp3");
+#if 0
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::RecordingListOnClickPlay");
int ret;
int32_t playerState;
state = p_RecordingPlayerView->GetPlayerButtonState();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "state %d,line = %d", state, __LINE__);
+
if (state == UICheckBox::UICheckBoxState::UNSELECTED)
{
p_RecordingPlayerView->SetPlayerButtonState(UICheckBox::UICheckBoxState::SELECTED);
}
RecordingPlayerStat();
}
+#endif
return OHOS_SUCCESS;
}
/* ------------------------------ 每次新的播放进度都设为0 ------------------------------ */
SetCircleProgress(0); // 0:进度100%
RecordingPlayerView *p_RecordingPlayerView = RecordingPlayerView::GetInstance();
- if(p_RecordingPlayerView !=nullptr)
+ if (p_RecordingPlayerView != nullptr)
{
p_RecordingPlayerView->SetPlayerProgressBarValue(CircleProgress);
}