File tree 3 files changed +19
-8
lines changed
LiveWallpaperEngineLib/Controls
3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Package xmlns : uap5 =" http://schemas.microsoft.com/appx/manifest/uap/windows10/5" xmlns =" http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns : mp =" http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns : uap =" http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns : rescap =" http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces =" uap mp rescap" >
3
- <Identity Name =" 24765mscoder.47921C962EDAD" Publisher =" CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version =" 1.1.17 .0" />
3
+ <Identity Name =" 24765mscoder.47921C962EDAD" Publisher =" CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version =" 1.1.20 .0" />
4
4
<Properties >
5
5
<DisplayName >巨应动态壁纸</DisplayName >
6
6
<PublisherDisplayName >巨应工作室 MscoderStudio</PublisherDisplayName >
Original file line number Diff line number Diff line change 57
57
]
58
58
},
59
59
"VideoAspect" : {
60
- "type" : " text " ,
60
+ "type" : " string " ,
61
61
"lanKey" : " setting_videoAspect" ,
62
62
"descLanKey" : " setting_videoAspect_desc"
63
63
}
Original file line number Diff line number Diff line change @@ -77,13 +77,24 @@ public Wallpaper Wallpaper
77
77
78
78
internal void SetAspect ( string aspect )
79
79
{
80
- if ( player != null )
80
+ try
81
81
{
82
- //var test = player.API.GetPropertyString("video-aspect");
83
- if ( string . IsNullOrEmpty ( aspect ) )
84
- player . API . SetPropertyString ( "video-aspect" , "-1.000000" ) ;
85
- else
86
- player . API . SetPropertyString ( "video-aspect" , aspect ) ;
82
+ if ( player != null )
83
+ {
84
+ //var test = player.API.GetPropertyString("video-aspect");
85
+ if ( string . IsNullOrEmpty ( aspect ) )
86
+ player . API . SetPropertyString ( "video-aspect" , "-1.000000" ) ;
87
+ else
88
+ {
89
+ //兼容中文分号
90
+ aspect = aspect . Replace ( ":" , ":" ) ;
91
+ player . API . SetPropertyString ( "video-aspect" , aspect ) ;
92
+ }
93
+ }
94
+ }
95
+ catch ( Exception ex )
96
+ {
97
+ System . Diagnostics . Debug . WriteLine ( ex ) ;
87
98
}
88
99
}
89
100
You can’t perform that action at this time.
0 commit comments