# Media.play webhook never fires

**URL:** <https://forums.plex.tv/t/media-play-webhook-never-fires/577433>\
**Category:** Plex Media Server\
**Tags:** server-linux, webhooks, server-truenas\
**Created:** [April 19, 2020, 8:46pm UTC](https://forums.plex.tv/t/media-play-webhook-never-fires/577433 "2020-04-19T20:46:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff-Gilbert](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jeff-Gilbert](https://forums.plex.tv/u/Jeff-Gilbert)\
**Post date:** [April 19, 2020, 8:46pm UTC](https://forums.plex.tv/t/media-play-webhook-never-fires/577433/1 "2020-04-19T20:46:32Z")

</div>

I am using PlexPass on my PMS running on FreeNAS. My primary client is nVidia Shield. I have webhooks enabled and set to fire to my Home Assistant, which is able to parse the JSON and has debugging enabled. When I start playing media, per my raw debug logs, I never get the “media.play” message. “media.pause”, “media.resume”, and “media.stop” are received and function as intended, so I know its not my server or message path.

Do I need to do anything special to enable the “media.play” webhook?

---

<div class="post-metadata">

**Author:** ![mr\_Stog](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mr\_Stog](https://forums.plex.tv/u/mr_Stog)\
**Post date:** [April 20, 2020, 12:38pm UTC](https://forums.plex.tv/t/media-play-webhook-never-fires/577433/2 "2020-04-20T12:38:16Z")

</div>

Hi,

Flow this thread (if not done so already), Paul has made a clever script to limit metadata and fix features like the ‘event’ media. play.

> [@Webhooks - option to not send jpeg image](https://forums.plex.tv/t/webhooks-option-to-not-send-jpeg-image/573444):
>
> I’ve tried using a webhook to call a webcore piston (samsung smartthings automation) This works for any request which does not include the jpeg (media added, media play started) but due to suspected issues with webcore, the requests with jpegs fails. Could an option be added for each webhook to not send the jpeg? The use of webhooks with webcore opens up many automation opportunities e.g setting lights to movie mode when a movie starts etc

It should solve your problem using a Raspberry Pi and pointing Home Assistant to that. GL!

---

<div class="post-metadata">

**Author:** ![PAUL\_THOMAS1964](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@PAUL\_THOMAS1964](https://forums.plex.tv/u/PAUL_THOMAS1964)\
**Post date:** [April 20, 2020, 1:15pm UTC](https://forums.plex.tv/t/media-play-webhook-never-fires/577433/3 "2020-04-20T13:15:29Z")

</div>

It would be interesting to see if this helps with your problem. If it does, could you consider voting for the feature suggestion on the post @mr_Stog mentions.

Do pause & resume requests work for you? Play requests can cause a prob;em with some apps as Plex sends a multipart message, with the second part containing a .jpeg of the cover art which they can not handle.

While the script was written to remove the .jpeg and create a single part message for webcore, it may work for other apps. It may also be worth experimenting with using the commented out delete commands to shorten the message if you think it is a message length issue. (this is not an issue for webcore)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 19, 2020, 1:15pm UTC](https://forums.plex.tv/t/media-play-webhook-never-fires/577433/4 "2020-07-19T13:15:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
