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.
26 lines
803 B
26 lines
803 B
using System; |
|
using UnityEngine; |
|
|
|
namespace FFmpeg |
|
{ |
|
interface IFFmpegHandler |
|
{ |
|
void OnStart(); |
|
void OnProgress(string msg); |
|
void OnFailure(string msg); |
|
void OnSuccess(string msg); |
|
void OnFinish(); |
|
} |
|
|
|
|
|
public class FFmpegHandler : IFFmpegHandler |
|
{ |
|
//Default implementation |
|
//------------------------------ |
|
public void OnStart() { Debug.Log("FFmpegHandler.Start"); } |
|
public void OnProgress(string msg) { Debug.Log("FFmpegHandler.Progress: " + msg); } |
|
public void OnFailure(string msg) { Debug.Log("FFmpegHandler.Failure: " + msg); } |
|
public void OnSuccess(string msg) { Debug.Log("FFmpegHandler.Success: " + msg); } |
|
public void OnFinish() { Debug.Log("FFmpegHandler.Finish"); } |
|
} |
|
} |