# VideoClipObject callback, update container with message

**URL:** <https://forums.plex.tv/t/videoclipobject-callback-update-container-with-message/108029>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [July 15, 2015, 12:31am UTC](https://forums.plex.tv/t/videoclipobject-callback-update-container-with-message/108029 "2015-07-15T00:31:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmstv](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dmstv/32/10813_2.png) [@dmstv](https://forums.plex.tv/u/dmstv)\
**Post date:** [July 15, 2015, 12:31am UTC](https://forums.plex.tv/t/videoclipobject-callback-update-container-with-message/108029/1 "2015-07-15T00:31:58Z")

</div>

I’m trying to understand if I fully understand the work flow here, but here’s my situation:

I have a VideoClipObject with a Callback for the key. The callback creates a new ObjectContainer, VideoClipObject and applies the MediaObject (based on data from an API) and returns the ObjectContainer.

What I’d like to do is if for whatever reason when a video is clicked, if the video is unavailable or there was an error making the request, display this to the user somehow. What I’ve tried to is append a title2 and message to the ObjectContainer and return just that, but all it does is spin, I think because there’s no VideoClipObject at this point?

Any suggestions on how to handle alerting to the user in a case like this?

Thank you!

---

<div class="post-metadata">

**Author:** ![meo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/meo/32/4534_2.png) [@meo](https://forums.plex.tv/u/meo)\
**Post date:** [July 15, 2015, 7:06am UTC](https://forums.plex.tv/t/videoclipobject-callback-update-container-with-message/108029/2 "2015-07-15T07:06:23Z")

</div>

The “header” and “message” attributes of an ObjectContainer should display a message in the client.

An example:  
[github.com/plexinc-plugins/South-Park.bundle/blob/master/Contents/Code/ **init**.py#L89](https://github.com/plexinc-plugins/South-Park.bundle/blob/master/Contents/Code/ __init__.py#L89 "https://github.com/plexinc-plugins/South-Park.bundle/blob/master/Contents/Code/\_\_init\_\_.py#L89")

---

<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:** [January 8, 2020, 7:49pm UTC](https://forums.plex.tv/t/videoclipobject-callback-update-container-with-message/108029/3 "2020-01-08T19:49:58Z")

</div>


