Magic Leap Video Player and frame information

Hi everyone, my company develops multi-device xr applications. I'm currently working on video sharing. Each device that we support uses the unity legacy media player to render videos. I know that for now, magic leap does not support this player and I'm trying to use the MLMediaPlayer. I was able to find methods to handle videos with parameters in milliseconds (ex seekTo, durationInMilliseconds, etc.). Our sharing system works entirely with Frame units and not Milliseconds. I'm asking if there is a way to know through the MLMediaPlayerBehavior or MLMedia.Player.MediaPlayer information such as the current frame index, the total frame count or at least the frame rate of the video to perform the conversion by hand.

If not I suggest you evaluate the possibility of exposing some methods which work with parameters expressed in frame units. This should not be a complex task but could help a lot while moving from the unity legacy media player to your MLMediaPlayerBehavior.

Thanks in advance.

1 Like

Hi @MatteoFifth, Thank you for your input and I've logged your feedback. We have MLMediaPlayerMetrics for average frame rate, but I don't think that helps your use case.

1 Like

Thank you for the response, do you know any other media player compatible with ML2 that i can try?

1 Like

I talked with our engineers about this: Not officially but unofficially the Android NDK MediaPlayer API does work on our platform. We are working towards making this support official but we don't anticipate having that in the immediate future.

Also Unity's VideoPlayer uses those same Android APIs, but there is a crash in the Vulkan driver that prevents us from using it at the moment.

2 Likes

Thank you for the support

2 Likes