# Refresh/Reload Perspective Video Player for IP Camera Still Pictures

**URL:** <https://forum.inductiveautomation.com/t/refresh-reload-perspective-video-player-for-ip-camera-still-pictures/83469>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 22, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/refresh-reload-perspective-video-player-for-ip-camera-still-pictures/83469 "2023-12-22T15:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Bell](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@David.Bell](https://forum.inductiveautomation.com/u/David.Bell)\
**Post date:** [December 22, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/refresh-reload-perspective-video-player-for-ip-camera-still-pictures/83469/1 "2023-12-22T15:55:39Z")

</div>

Hello, I am using the Perspective Video Player control to display IP Camera still pictures. Does anyone know how I can trigger a refresh of this control using a script in a push button to grab a new picture? If I refresh the web page it works, but I want to use a button to trigger new image. Thanks!

---

<div class="post-metadata">

**Author:** ![David.Bell](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@David.Bell](https://forum.inductiveautomation.com/u/David.Bell)\
**Post date:** [December 27, 2023, 4:31pm UTC](https://forum.inductiveautomation.com/t/refresh-reload-perspective-video-player-for-ip-camera-still-pictures/83469/2 "2023-12-27T16:31:47Z")

</div>

Hello, I got in touch with IA Support and we were able to do a refresh binding for this. We did this by:

Step 1: Verifying that in a web browser, adding extra characters to the end of the IP Camera url did not affect the image  
Step 2: Added a Custom Property to the Perspective Video Player Control (Called prop in this example)  
Step 3: Creating a button on the Perspective page  
Step 4: On the Button added a Script to the "On Action Performed" and put the code in:

def runAction(self, event):  
import time  
self.getSibling("VideoPlayer").custom.prop = str(time.time())  
self.getSibling("VideoPlayer").refreshBinding("props.source")

Applied the change and ran the web page. When clicking the button, the url updates with the time added to the end and a refreshBinding refreshes the picture

Thanks Ben!!
