initWavesurfer(){//初始化插件
const _this = this
this.wavesurfer = WaveSurfer.create({
container: '#waveform',
waveColor: '#39AB84',
progressColor: '#FF8C00',
split: false,
minPxPerSec: 8,
height: 100,
barWidth: 1,
// barHeight: 1.5,
barHeight: 0.6,
hideScrollbar:true,
audioRate: '1',
abnormalvolume:{"1":"violet"},
emotionColor:{"1":"red"},
speedColor:{"1":"#955539"},
markdata:_this.markdata,
fs_rsxmldata:_this.fs_rsxmldata,
plugins: [
CursorPlugin.create({
showTime: true,
opacity: 0.2,
customShowTimeStyle: {
'background-color': '#000',
color: '#fff',
padding: '2px',
'font-size': '20px'
},
}),
// Timeline.create({
// container: '#wave-timeline'
// }),
Regions.create()
],
})
这是部分代码,配置这块东西,求教学如何实现双声道波状图,现在实现的是单声道波状图
代码是否正确