|
@@ -628,6 +628,12 @@ export struct LocalMusic {
|
|
|
this.volume = PreferencesUtil.getNumberSync('DefalutVolume', this.volume)
|
|
this.volume = PreferencesUtil.getNumberSync('DefalutVolume', this.volume)
|
|
|
this.isSwipe = PreferencesUtil.getBooleanSync(SettingPage.IS_SWIPE, false)
|
|
this.isSwipe = PreferencesUtil.getBooleanSync(SettingPage.IS_SWIPE, false)
|
|
|
this.openSkipSongAnimate = PreferencesUtil.getBooleanSync(SettingPage.OPEN_SKIPSONG_ANIMATE, true)
|
|
this.openSkipSongAnimate = PreferencesUtil.getBooleanSync(SettingPage.OPEN_SKIPSONG_ANIMATE, true)
|
|
|
|
|
+ this.volumeSmall = PreferencesUtil.getBooleanSync('volumeSmall', false)
|
|
|
|
|
+ if(this.volumeSmall){
|
|
|
|
|
+ this.volume = 0.5
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.volume = 1
|
|
|
|
|
+ }
|
|
|
//如果是hicar连接状态,这些都是false
|
|
//如果是hicar连接状态,这些都是false
|
|
|
if(this.isHiCar()){
|
|
if(this.isHiCar()){
|
|
|
this.isShowTitleBar = false//不显示导航栏
|
|
this.isShowTitleBar = false//不显示导航栏
|
|
@@ -3868,6 +3874,7 @@ export struct LocalMusic {
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isMultiSelect = !this.isMultiSelect
|
|
this.isMultiSelect = !this.isMultiSelect
|
|
|
this.longItemFilePath = ''
|
|
this.longItemFilePath = ''
|
|
|
|
|
+ this.selectedFiles.push(item)
|
|
|
})
|
|
})
|
|
|
MenuItem({
|
|
MenuItem({
|
|
|
symbolStartIcon: new SymbolGlyphModifier($r('sys.symbol.rename')),
|
|
symbolStartIcon: new SymbolGlyphModifier($r('sys.symbol.rename')),
|
|
@@ -4772,11 +4779,7 @@ export struct LocalMusic {
|
|
|
this.yearStr,this.genreStr,this.trackStr,this.albumArtistStr,this.composerStr, this.lyricistStr,this.commentStr,this.discStr,
|
|
this.yearStr,this.genreStr,this.trackStr,this.albumArtistStr,this.composerStr, this.lyricistStr,this.commentStr,this.discStr,
|
|
|
(success: boolean, error?: string) => {
|
|
(success: boolean, error?: string) => {
|
|
|
// this.isShowEdit = false
|
|
// this.isShowEdit = false
|
|
|
- if(this.isGridMusic){
|
|
|
|
|
- this.longItemFilePath =''
|
|
|
|
|
- }else{
|
|
|
|
|
- this.isShowEdit = false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
if (success) {
|
|
if (success) {
|
|
|
console.log(" onecold 编辑信息成功,数据库已同步");
|
|
console.log(" onecold 编辑信息成功,数据库已同步");
|
|
|
ToastUtil.showToast('内嵌音乐标签成功')
|
|
ToastUtil.showToast('内嵌音乐标签成功')
|
|
@@ -4812,7 +4815,9 @@ export struct LocalMusic {
|
|
|
ToastUtil.showToast('内嵌音乐标签失败')
|
|
ToastUtil.showToast('内嵌音乐标签失败')
|
|
|
console.log('onecold 内嵌音乐标签失败');
|
|
console.log('onecold 内嵌音乐标签失败');
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ this.longItemFilePath = ''
|
|
|
|
|
+ this.tempLyricContent = ''
|
|
|
|
|
+ this.isShowEdit = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -6691,7 +6696,8 @@ export struct LocalMusic {
|
|
|
private positionX: number = PlayConstants.POSITION_X;
|
|
private positionX: number = PlayConstants.POSITION_X;
|
|
|
private positionY: number = PlayConstants.POSITION_Y;
|
|
private positionY: number = PlayConstants.POSITION_Y;
|
|
|
private windowClass: window.Window = globalThis.windowClass
|
|
private windowClass: window.Window = globalThis.windowClass
|
|
|
- @State volume: number = 0.3;
|
|
|
|
|
|
|
+ @State volume: number = 0.5;
|
|
|
|
|
+ @State volumeSmall: boolean = false
|
|
|
@State volumeShow: boolean = PlayConstants.VOLUME_SHOW;
|
|
@State volumeShow: boolean = PlayConstants.VOLUME_SHOW;
|
|
|
@State bright: number = PlayConstants.BRIGHT;
|
|
@State bright: number = PlayConstants.BRIGHT;
|
|
|
@State brightShow: boolean = PlayConstants.BRIGHT_SHOW;
|
|
@State brightShow: boolean = PlayConstants.BRIGHT_SHOW;
|
|
@@ -10156,11 +10162,16 @@ export struct LocalMusic {
|
|
|
//初始化配置
|
|
//初始化配置
|
|
|
this.mIjkMediaPlayer.native_setup();
|
|
this.mIjkMediaPlayer.native_setup();
|
|
|
// 初始化配置后需要重新设置音频流音量,否则音量为默认值1.0 针对dsf格式设置最大值1.0
|
|
// 初始化配置后需要重新设置音频流音量,否则音量为默认值1.0 针对dsf格式设置最大值1.0
|
|
|
- if(this.videoUrl.toLowerCase().endsWith('.dsf')){
|
|
|
|
|
- this.mIjkMediaPlayer.setVolume('1', '1');
|
|
|
|
|
|
|
+ if(this.volumeSmall){
|
|
|
|
|
+ if(this.videoUrl.toLowerCase().endsWith('.dsf')){
|
|
|
|
|
+ this.mIjkMediaPlayer.setVolume('1', '1');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.mIjkMediaPlayer.setVolume(this.volume.toString(), this.volume.toString());
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
this.mIjkMediaPlayer.setVolume(this.volume.toString(), this.volume.toString());
|
|
this.mIjkMediaPlayer.setVolume(this.volume.toString(), this.volume.toString());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
//设置视频源
|
|
//设置视频源
|
|
|
this.mIjkMediaPlayer.setDataSource(url);
|
|
this.mIjkMediaPlayer.setDataSource(url);
|
|
|
//设置视频源http请求头
|
|
//设置视频源http请求头
|