提交 e7e2d1e0 编写于 作者: Q qiang

chore: build

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