|
|
|
|
@ -12,6 +12,7 @@ import React, {
|
|
|
|
|
} from "react";
|
|
|
|
|
|
|
|
|
|
import Echarts from "./components/Echart/index";
|
|
|
|
|
import EchartFace from "./components/Echart_face/index";
|
|
|
|
|
import {
|
|
|
|
|
Block,
|
|
|
|
|
View,
|
|
|
|
|
@ -2036,6 +2037,12 @@ class IotCarePlanWL200 extends Component<any, any> {
|
|
|
|
|
isMuted = !isMuted
|
|
|
|
|
this.setState({ isMuted })
|
|
|
|
|
}
|
|
|
|
|
GetVideosTime=(event)=>{
|
|
|
|
|
let videoRef = Taro.createVideoContext('myVideo',this)
|
|
|
|
|
// videoRef.currentTime
|
|
|
|
|
console.log('获取播放时间',event.detail.currentTime);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
onPlay = (e) => {
|
|
|
|
|
console.log('出发', e);
|
|
|
|
|
|
|
|
|
|
@ -2260,17 +2267,14 @@ class IotCarePlanWL200 extends Component<any, any> {
|
|
|
|
|
className='video-or-image'
|
|
|
|
|
src={ActiveModeItem.modeVideo}
|
|
|
|
|
loop
|
|
|
|
|
|
|
|
|
|
id="myVideo"
|
|
|
|
|
|
|
|
|
|
// ref={videoRef}
|
|
|
|
|
onPlay={this.onPlay}
|
|
|
|
|
muted={isMuted}
|
|
|
|
|
onTimeUpdate={this.GetVideosTime}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
<button onClick={this.handleClicksound}>音频播放/音频暂停</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button onClick={this.GetVideosTime}>获取视频时长</button>
|
|
|
|
|
{/* <button onClick={this.handleClicksound}>音频播放/音频暂停</button> */}
|
|
|
|
|
{/* <button onClick={this.handleClickVideo}>播放/暂停</button> */}
|
|
|
|
|
{isShowNurse && (
|
|
|
|
|
<Block>
|
|
|
|
|
@ -2339,6 +2343,7 @@ class IotCarePlanWL200 extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<Echarts></Echarts>
|
|
|
|
|
<EchartFace></EchartFace>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<Footer
|
|
|
|
|
|