# OnFrameCaptured\_RenderingThread never called inside my custom MediaCapture

**URL:** <https://forums.unrealengine.com/t/onframecaptured_renderingthread-never-called-inside-my-custom-mediacapture/437919>\
**Category:** Rendering\
**Tags:** frame, unreal-engine, Rendering, CPP, question\
**Created:** [November 19, 2018, 3:41pm UTC](https://forums.unrealengine.com/t/onframecaptured_renderingthread-never-called-inside-my-custom-mediacapture/437919 "2018-11-19T15:41:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [November 19, 2018, 3:41pm UTC](https://forums.unrealengine.com/t/onframecaptured_renderingthread-never-called-inside-my-custom-mediacapture/437919/1 "2018-11-19T15:41:01Z")

</div>

I’m actually creating a custom **MediaCapture** (From the plugin _Media Framework Utilities_).  
While everything seems to work, I cannot manage to find why the **OnFrameCaptured\_RenderingThread** function is never called. Since I need this to get the frames, I’m blocked with a running plugin that can only show the result I want inside a small preview box in the editor.

Any idea what I might have done wrong? What am I missing?

---

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [December 3, 2018, 7:26am UTC](https://forums.unrealengine.com/t/onframecaptured_renderingthread-never-called-inside-my-custom-mediacapture/437919/2 "2018-12-03T07:26:54Z")

</div>

The solution is that the _MediaState_ is never set to _Capturing_. It needs to be done by the developer which creates the plugin.
