Sending video on Magic Leap 2 to a computer using HTTP or MTP

Unity Editor version: 2022.2.0
ML2 OS version: 1.5
Unity SDK version: 1.12
Host OS: (Windows/MacOS) Windows 11

Error messages from logs (syntax-highlighting is supported via Markdown):
To preface, I have developer mode enabled on the Magic Leap 2. I am using the Camera Capture Example scene to record videos. The entire scene is built as a .apk file and runs on the Magic Leap 2.

As soon as I record the video, I want to send the video to my PC using HTTP. I have this implemented however, the file is unreadable when the PC receives it. As in the bytes are in such as way that the mp4 file the PC receives is unreadable for some reason. Does anyone have a solution to this problem?

Hi @abbas.khawaja,

You mentioned that you’re sending the video via HTTP. Could you provide more details on how you’re implementing this transfer? Are you using a specific library or tool?

How are you handling the encoding/decoding of the video?



Actually its working now, there was nothing wrong with the code, I was just looking in the wrong folder for the transferred video.

On specifics of the file transfer, I am using:

using System.Net.Http;
using System.Net.Http.Headers;

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.