Give us as much detail as possible regarding the issue you're experiencing.
Unity Editor version: 2022.3.4f1
ML2 OS version: 1.1.0
MLSDK version: 1.3.0
Host OS: (Windows)
Error messages from logs:
**Message 1** :
Error: MLMediaPlayerCreate in the Magic Leap API failed. Reason: MLResult_NotImplemented
UnityEngine.XR.MagicLeap.MLMedia/Player:.ctor (UnityEngine.XR.MagicLeap.MLResult&)
MagicLeap.Core.MLMediaPlayerBehavior:get_MediaPlayer () (at ./Library/PackageCache/com.magicleap.unitysdk@1.8.0/Runtime/APIs/MediaPlayer/Scripts/MLMediaPlayerBehavior.cs:83)
MagicLeap.Core.MLMediaPlayerBehavior:Reset () (at ./Library/PackageCache/com.magicleap.unitysdk@1.8.0/Runtime/APIs/MediaPlayer/Scripts/MLMediaPlayerBehavior.cs:373)
CameraCaptureExample:OnApplicationPause (bool) (at Assets/LSU/CameraCaptureExample.cs:98)
**Message 2**:
Exception: Media Player initialization result with error MLResult_NotImplemented.
MagicLeap.Core.MLMediaPlayerBehavior.get_MediaPlayer () (at ./Library/PackageCache/com.magicleap.unitysdk@1.8.0/Runtime/APIs/MediaPlayer/Scripts/MLMediaPlayerBehavior.cs:107)
MagicLeap.Core.MLMediaPlayerBehavior.Reset () (at ./Library/PackageCache/com.magicleap.unitysdk@1.8.0/Runtime/APIs/MediaPlayer/Scripts/MLMediaPlayerBehavior.cs:373)
CameraCaptureExample.OnApplicationPause (System.Boolean isPaused) (at Assets/LSU/CameraCaptureExample.cs:98)
**Message 2**:
DllNotFoundException: media_recorder.magicleap assembly:<unknown assembly> type:<unknown type> member:(null)
UnityEngine.XR.MagicLeap.MLMediaRecorder.Create () (at ./Library/PackageCache/com.magicleap.unitysdk@1.8.0/Runtime/APIs/MediaRecorder/MLMediaRecorder.cs:422)
CameraRecorder.StartRecording (System.String filePath, CameraRecorderConfig config) (at Assets/LSU/CameraCaptureExample.cs:584)
CameraCaptureExample.StartRecording () (at Assets/LSU/CameraCaptureExample.cs:347)
CameraCaptureExample.StartVideoCapture () (at Assets/LSU/CameraCaptureExample.cs:262)
CameraCaptureExample.OnCaptureButtonClicked () (at Assets/LSU/CameraCaptureExample.cs:227)
CameraCaptureExampleEditor.OnInspectorGUI () (at Assets/LSU/scripts/CameraCaptureExampleEditor.cs:18)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <da771086bc2e4cfc9ad0a72e083a7f98>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
**My Script**:
The script is part of the Magic leap 2 examples. I modified the code because i couldn't find a simpler version of the example that was more usable at first.
I think i'm missing dll files, i searched the interntent and i found this issue "https://forum.magicleap.cloud/t/seeking-assistance-with-video-preview-and-recording-in-magic-leap/2003/24"
I used her script, and it was the same problem.
I checked that the camera was connected. Then I clicked capture. same log errors .