Exemple #1
0
    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"));
    }
Exemple #2
0
    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"));
    }
Exemple #3
0
    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"));
    }