WebGL Blob #20
-
Hello ! I'm recording a video from my game camera. I use the webm recorder on webgl platform. When the record is finished I get a blob url. I download the blob with UnityWebRequest :
Then I save file to persistent data path :
Now I have a file into this folder : /idbfs/8b491ca5a5c6d71381c5be0084e4333d/Record_2023_01_17_10_45_01.webm Someone can help me ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @MonsieurD are you trying to download the WEBM file to the user's computer? If so, you'll need to write a |
Beta Was this translation helpful? Give feedback.
-
Hey @MonsieurD I totally forgot about this, but you should actually be able to use NatShare to download the blob: // Finish writing
var recordingPath = await recorder.FinishWriting();
// Use NatShare to download the video
var payload = new SavePayload();
payload.AddMedia(recordingPath);
await payload.Save(); Try this and let me know if you face any issues. |
Beta Was this translation helpful? Give feedback.
Hey @MonsieurD I totally forgot about this, but you should actually be able to use NatShare to download the blob:
Try this and let me know if you face any issues.