# Not getting the Live preview while using 'media' luna commands

**URL:** <https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420>\
**Category:** Platform Development\
**Created:** [June 9, 2021, 7:40am UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420 "2021-06-09T07:40:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirmalrajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nirmalrajesh/32/512_2.png) [@nirmalrajesh](https://forum.webosose.org/u/nirmalrajesh)\
**Post date:** [June 9, 2021, 7:40am UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/1 "2021-06-09T07:40:23Z")

</div>

Hi everyone,  
I am trying to integrate camera module in my WebOs project development.  
Currently, I had tried to have live preview using the luna 'load' command.  
But the problem is that I am getting a 'Still Image' instead of the live video.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![mvs\_premalatha](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mvs\_premalatha](https://forum.webosose.org/u/mvs_premalatha)\
**Post date:** [June 9, 2021, 1:44pm UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/2 "2021-06-09T13:44:26Z")

</div>

Hi,  
With load command, only 1st frame gets displayed.  
execute play command, camera preview will be seen.

---

<div class="post-metadata">

**Author:** ![nirmalrajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nirmalrajesh/32/512_2.png) [@nirmalrajesh](https://forum.webosose.org/u/nirmalrajesh)\
**Post date:** [June 9, 2021, 2:00pm UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/3 "2021-06-09T14:00:50Z")

</div>

Hi @mvs_premalatha ,  
Thank you for your reply.

We have already executed the 'play' command, and it returns the value as 'true' , but nothing gets played.

---

<div class="post-metadata">

**Author:** ![mvs\_premalatha](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mvs\_premalatha](https://forum.webosose.org/u/mvs_premalatha)\
**Post date:** [June 9, 2021, 5:37pm UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/4 "2021-06-09T17:37:17Z")

</div>

load command is executed with device mode or shared memory mode?  
mediaId in play command is given from load command return value?  
share us the logs, and scenario. we will help you out.

---

<div class="post-metadata">

**Author:** ![nirmalrajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nirmalrajesh/32/512_2.png) [@nirmalrajesh](https://forum.webosose.org/u/nirmalrajesh)\
**Post date:** [June 9, 2021, 5:58pm UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/5 "2021-06-09T17:58:57Z")

</div>

Load command is executed in shared memory mode.  
mediaId in play command is given from load command return value.

 ![Screenshot (1091)](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/fb61671f4a02c1ac9aa8798d5ca1896f4714dab5.png)

---

<div class="post-metadata">

**Author:** ![Gururaj\_Patil](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/gururaj_patil/32/516_2.png) [@Gururaj\_Patil](https://forum.webosose.org/u/Gururaj_Patil)\
**Post date:** [June 21, 2021, 9:40am UTC](https://forum.webosose.org/t/not-getting-the-live-preview-while-using-media-luna-commands/1420/6 "2021-06-21T09:40:57Z")

</div>

Hi,  
These logs doesn't seem to be enough.  
Can you please provide more logs  
For logs you can follow below steps:

In 1st terminal:  
PmLogCtl set camera debug  
journalCtl -f | grep -inr cam

in 2nd terminal:  
You can run the luna calls and reproduce the issue

Please attach the output of terminal 1.

Thanks
