You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
625 B
39 lines
625 B
using UnityEngine; |
|
|
|
namespace FFmpeg.Demo |
|
{ |
|
public class ConvertView : MonoBehaviour |
|
{ |
|
BaseData config = new BaseData(); |
|
|
|
//------------------------------ |
|
|
|
public void Open() |
|
{ |
|
gameObject.SetActive(true); |
|
} |
|
|
|
//------------------------------ |
|
|
|
public void OnInputPath(string fullPath) |
|
{ |
|
config.inputPath = fullPath; |
|
} |
|
|
|
public void OnOutputPath(string fullPath) |
|
{ |
|
config.outputPath = fullPath; |
|
} |
|
|
|
|
|
//------------------------------ |
|
|
|
public void OnConvert() |
|
{ |
|
FFmpegCommands.Convert(config); |
|
gameObject.SetActive(false); |
|
} |
|
|
|
//------------------------------ |
|
} |
|
} |