# Casting in Lock Task Mode

**URL:** <https://forum.magicleap.cloud/t/casting-in-lock-task-mode/5980>\
**Category:** General\
**Tags:** lock-task-mode\
**Created:** [July 1, 2025, 7:11pm UTC](https://forum.magicleap.cloud/t/casting-in-lock-task-mode/5980 "2025-07-01T19:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrichey](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@wrichey](https://forum.magicleap.cloud/u/wrichey)\
**Post date:** [July 1, 2025, 7:11pm UTC](https://forum.magicleap.cloud/t/casting-in-lock-task-mode/5980/1 "2025-07-01T19:11:05Z")

</div>

Hello! Is there an option for casting while in Lock Task Mode?

If developer mode is enabled, the ML Hub streaming option works well, but I do not want to leave developer mode enabled for our production devices.

The settings menu is (of course) inaccessible and attempts to open the casting settings menu are unsuccessful (due to lock-task permissions). Is there another way to initiate casting while in Magic Leap 2’s lock task mode?

Thank you!

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [July 11, 2025, 10:18pm UTC](https://forum.magicleap.cloud/t/casting-in-lock-task-mode/5980/3 "2025-07-11T22:18:53Z")

</div>

Unfortunately Device stream requires ADB Debugging to be enabled additionally, Mircast would require you to manually select the cast option in the device settings. You may want to look into using an external WebRTC service or a local server or possibly use Spectator view.

> **[GitHub - magicleap/MagicLeap2UnityWebRTCExample: Unity Project that demonstrates how to implement...](https://github.com/magicleap/MagicLeap2UnityWebRTCExample)**
>
> Unity Project that demonstrates how to implement WebRTC functionality in Unity to stream a Render Texture between a Magic Leap 2 device and a PC. This simplified example serves as a starting point for developers who are migrating from the legacy MLWebRTC APIs.

> **[Agora Realtime Communications SDK | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/third-party/agora/)**
>
> Using Agora with Magic Leap 2 in Unity

> **[Magic Leap Spectator | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/features/magic-leap-spectator/ml-spectator/)**
>
> Magic Leap Spectator (ML Spectator) is a mobile application that makes it easy for anyone to capture and share high-quality mixed reality content streamed from a Magic Leap 2 device. This powerful application supports a wide variety of use cases, for...
