@@ -18,7 +18,7 @@ namespace FFmpegInteropX
18
18
float _Tint;
19
19
float _Sharpness;
20
20
float _SharpnessThreshold;
21
-
21
+ String^ classId = " FFmpegInteropX.BasicVideoEffect " ;
22
22
public:
23
23
// /<summary>Adjusts the brightness of the image. Default value is 0, recommended range -1 to 1.</summary>
24
24
property float Brightness
@@ -111,29 +111,29 @@ namespace FFmpegInteropX
111
111
{
112
112
PropertySet^ set = ref new PropertySet ();
113
113
set->Insert (" config" , this );
114
- player->AddVideoEffect (" FFmpegInterop.BasicVideoEffect " , true , set);
114
+ player->AddVideoEffect (classId , true , set);
115
115
}
116
116
117
117
[Windows::Foundation::Metadata::DefaultOverloadAttribute]
118
118
void AddVideoEffect (MediaPlayer^ player, bool optional)
119
119
{
120
120
PropertySet^ set = ref new PropertySet ();
121
121
set->Insert (" config" , this );
122
- player->AddVideoEffect (" FFmpegInterop.BasicVideoEffect " , optional, set);
122
+ player->AddVideoEffect (classId , optional, set);
123
123
}
124
124
125
125
void AddVideoEffect (MediaElement^ player)
126
126
{
127
127
PropertySet^ set = ref new PropertySet ();
128
128
set->Insert (" config" , this );
129
- player->AddVideoEffect (" FFmpegInterop.BasicVideoEffect " , true , set);
129
+ player->AddVideoEffect (classId , true , set);
130
130
}
131
131
132
132
void AddVideoEffect (MediaElement^ player, bool optional)
133
133
{
134
134
PropertySet^ set = ref new PropertySet ();
135
135
set->Insert (" config" , this );
136
- player->AddVideoEffect (" FFmpegInterop.BasicVideoEffect " , optional, set);
136
+ player->AddVideoEffect (classId , optional, set);
137
137
}
138
138
};
139
- }
139
+ }
0 commit comments