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.
30 lines
857 B
30 lines
857 B
|
6 years ago
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace FFmpegOut
|
||
|
|
{
|
||
|
|
public static class FFmpegConfig
|
||
|
|
{
|
||
|
|
public static string BinaryPath
|
||
|
|
{
|
||
|
|
get {
|
||
|
|
var basePath = Application.streamingAssetsPath + "/FFmpegOut";
|
||
|
|
|
||
|
|
if (Application.platform == RuntimePlatform.OSXPlayer ||
|
||
|
|
Application.platform == RuntimePlatform.OSXEditor)
|
||
|
|
return basePath + "/OSX/ffmpeg";
|
||
|
|
|
||
|
|
if (Application.platform == RuntimePlatform.LinuxPlayer ||
|
||
|
|
Application.platform == RuntimePlatform.LinuxEditor)
|
||
|
|
return basePath + "/Linux/ffmpeg";
|
||
|
|
|
||
|
|
return basePath + "/ffmpeg.exe";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public static bool CheckAvailable
|
||
|
|
{
|
||
|
|
get { return System.IO.File.Exists(BinaryPath); }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|