提交 e7e2d1e0 编写于 作者: Q qiang

chore: build

上级 777a79f3
此差异已折叠。
......@@ -74,7 +74,7 @@ const props = [
{
name: 'playbackRate',
default: 1,
cache: true,
cache: true
}
]
......
......@@ -66,7 +66,7 @@ const props = [
},
{
name: 'playbackRate',
cache: true,
cache: true
}
]
......
......@@ -89,9 +89,9 @@ function stopTimeUpdateTimer () {
function setMusicState (args, name) {
initMusic()
const props = ['src', 'startTime', 'coverImgUrl', 'webUrl', 'singer', 'epname', 'title']
if (name && name === 'playbackRate') {
let val = args[name]
const val = args[name]
audio.playbackRate && audio.playbackRate(parseFloat(val))
return
}
......
......@@ -48,7 +48,7 @@ const initStateChage = audioId => {
}
}
export function createAudioInstance() {
export function createAudioInstance () {
const audioId = `${Date.now()}${Math.random()}`
const audio = audios[audioId] = plus.audio.createPlayer('')
audio.src = ''
......@@ -61,7 +61,7 @@ export function createAudioInstance() {
}
}
export function destroyAudioInstance({
export function destroyAudioInstance ({
audioId
}) {
if (audios[audioId]) {
......@@ -74,7 +74,7 @@ export function destroyAudioInstance({
}
}
export function setAudioState({
export function setAudioState ({
audioId,
src,
startTime,
......@@ -116,7 +116,7 @@ export function setAudioState({
}
}
export function getAudioState({
export function getAudioState ({
audioId
}) {
const audio = audios[audioId]
......@@ -143,7 +143,7 @@ export function getAudioState({
}
}
export function operateAudio({
export function operateAudio ({
operationType,
audioId,
currentTime
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册