添加播放速率
This commit is contained in:
@@ -242,6 +242,7 @@ export const initAppSetting = async() => {
|
||||
picUrl: '',
|
||||
progress: 0,
|
||||
duration: 0,
|
||||
playbackRate: 1,
|
||||
lyricLineText: '',
|
||||
lyric: '',
|
||||
collect: false,
|
||||
|
||||
@@ -28,6 +28,7 @@ const handleStartServer = async(port = 9000, ip = '127.0.0.1') => new Promise<vo
|
||||
duration: global.lx.player_status.duration,
|
||||
progress: global.lx.player_status.progress,
|
||||
picUrl: global.lx.player_status.picUrl,
|
||||
playbackRate: global.lx.player_status.playbackRate,
|
||||
lyricLineText: global.lx.player_status.lyricLineText,
|
||||
})
|
||||
break
|
||||
|
||||
@@ -187,7 +187,6 @@ export const setWindowBounds = (options: Partial<Electron.Rectangle>) => {
|
||||
}
|
||||
export const setProgressBar = (progress: number, options?: Electron.ProgressBarOptions) => {
|
||||
if (!browserWindow) return
|
||||
console.log(progress, options)
|
||||
browserWindow.setProgressBar(progress, options)
|
||||
}
|
||||
export const setIgnoreMouseEvents = (ignore: boolean, options?: Electron.IgnoreMouseEventsOptions) => {
|
||||
|
||||
Reference in New Issue
Block a user