Skip to content

Commit

Permalink
Adding WMV support to the Record to Video feature
Browse files Browse the repository at this point in the history
  • Loading branch information
saulhidalgoaular committed Apr 3, 2024
1 parent 1c7d13c commit 376117b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public class PreferenceConstants
public static final String M4V = "m4v";

public static final String WEBM = "WEBM";

public static final String WMV = "wmv";

public static final String NO_CURSOR = "no cursor";

Expand Down Expand Up @@ -153,11 +155,12 @@ public void createFieldEditors()
"&Format to generate the video", 3, new String[][]
{
{"&AVI", PreferenceConstants.AVI},
{"&WMV (Ideal for Windows)", PreferenceConstants.WMV},
{"&QuickTime", PreferenceConstants.QUICK_TIME},
{"&MP4", PreferenceConstants.MP4},
{"&FLV", PreferenceConstants.FLV},
{"&WMA", PreferenceConstants.WMA},
{"&MKV", PreferenceConstants.MKV},
{"MK&V", PreferenceConstants.MKV},
{"&M4V", PreferenceConstants.M4V},
{"&WEBM", PreferenceConstants.WEBM},}, getFieldEditorParent());
addField(fileFormatEditor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public static enum ConvertFormat {
M4V("m4v"),
//MOBILE("3gp"), convert failed
//MPEG("mpeg"), convert failed
WMV("wmv"),
WEBM("webm");

private String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1314,8 +1314,6 @@ public boolean conversionEnabled()
return fileFormat != null && !ConvertFormat.NONE.equals(fileFormat.get(ConversionKey, ConvertFormat.NONE) );
}

String FFMPEG_COMMAND = "";

void doConvert(String inputFile, String outputFile, ConvertFormat config) {
try {
// Command to create an external process
Expand Down

0 comments on commit 376117b

Please sign in to comment.