<video
id="myVideo"
:src="videoSrc"
:controls="true"
:show-center-play-btn="false"
class="video-player"
progress-color="#079ba2"
slider-color="#079ba2"
style="width: 100%; height: 100%"
@play="onPlayVideo"
@pause="onPauseVideo"
@ended="handleEndTraining"
@controlstoggle="onControlsToggle"
>
<cover-view class="time">训练时长123:{{ time || "00:00" }}</cover-view>
<cover-view v-show="showData" class="health-data-overlay">
<cover-view class="end-btn-container">
<cover-view
v-show="!isPlaying"
class="end-btn"
@click="handleEndTraining"
>
<cover-image
class="end-btn-img"
src="xx"
/>
</cover-view>
<cover-view
v-show="!isPlaying"
class="start-btn"
@click="playVideo"
>
<cover-image
class="start-btn-img"
src="xx"
/>
</cover-view>
<cover-view
v-show="isPlaying"
class="stop-btn"
@click="toggleVideo"
>
<cover-image
class="stop-btn-img"
src="xx"
/>
</cover-view>
</cover-view>
</cover-view>
</video>
time的数据来源定时器,安卓和ios都能展示,鸿蒙系统的不展示,只展示了固定文本,变量time没展示
