-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi, I reading and trying this plugin with the same code as follows you code
http://writingminds.github.io/ffmpeg-android-java/
`
// Use this for initialization
void Start()
{
if (Application.platform == RuntimePlatform.Android)
{
Debug.LogError("Android function is to be called");
var ajc = new AndroidJavaClass("com.example.xyz.staticfunctionlib.Helper"); //(1)
var output = ajc.CallStatic<string>("DoSthInAndroid"); //(2)
outputTextView.text = output;
Debug.LogError(output + " ============>");
Debug.LogError("Android function is called");
}
OnStartCheckdDevice();
}
public void OnStartCheckdDevice()
{
if (Application.platform == RuntimePlatform.Android)
{
var LoadBinaryResponseHandler = new AndroidJavaClass("com.github.hiteshsondhi88.libffmpeg.LoadBinaryResponseHandler");
var ffmpeg = new AndroidJavaClass("com.github.hiteshsondhi88.libffmpeg.FFmpeg");
ffmpeg.CallStatic("loadBinary", LoadBinaryResponseHandler);
Debug.LogError("=========<>====>");
}
}
public void OnEnterLoadCmd()
{
string[] cmdJav = inputField.text.Split(' ');
Debug.LogError(inputField.text + " => " + cmdJav.Length);
if (Application.platform == RuntimePlatform.Android)
{
var ExecuteBinaryResponseHandler = new AndroidJavaClass("com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler");
var ffmpeg = new AndroidJavaClass("com.github.hiteshsondhi88.libffmpeg.FFmpeg");
ffmpeg.CallStatic("execute", cmdJav, ExecuteBinaryResponseHandler);
}
}
public void LoadNextLevel()
{
SceneManager.LoadScene("02InjectSimpleAndroidUI");
}
}
`
but when I run on the simulator, it has an error like that, so what's issue of this, can you help, thank you so much for this, sorry for noob question!
Metadata
Metadata
Assignees
Labels
No labels
