public SaveToServer(MonoBehaviour monoref, Texture2D texture, string fileName, OnFileSucceedUploading onSucceedUploading, OnFileFailedUploading onFailedUploading) { mOnFileSucceedUploading = onSucceedUploading; mOnFileFailedUploading = onFailedUploading; monoref.StartCoroutine(InternalSaveToServer( texture.EncodeToPNG(), fileName + ".png", "image/png", "uploadimage.php")); }
public SaveToServer(MonoBehaviour monoref, byte[] data, string fileName, OnFileSucceedUploading onSucceedUploading, OnFileFailedUploading onFailedUploading) { mOnFileSucceedUploading = onSucceedUploading; mOnFileFailedUploading = onFailedUploading; monoref.StartCoroutine(InternalSaveToServer( data, fileName + ".mp4", "video/mp4", "uploadvideo.php")); }
public SaveToServer(MonoBehaviour monoref, AudioClip clip, string fileName, OnFileSucceedUploading onSucceedUploading, OnFileFailedUploading onFailedUploading) { mOnFileSucceedUploading = onSucceedUploading; mOnFileFailedUploading = onFailedUploading; monoref.StartCoroutine(InternalSaveToServer( WavUtility.FromAudioClip(clip), fileName + ".wav", "audio/wav", "audioupload.php")); }