Want to add a movie clip through movie component

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10):
PsychoPy version (e.g. 2024.2.4 Py 3.8):
Standard Standalone Installation? (y/n) y**y
What are you trying to achieve?:
Want to run a video clip through movie component

What did you try to make it work?:
play a clip of 5 minutes , even i converted the video in the supported format of psychopy but its still showing me , everything is clearly defined even i tried to run it in a separate other experiment.
This is what , its displaying.

components=[movie_traffic],
UnboundLocalError: local variable ‘movie_traffic’ referenced before assignment
9.2022 WARNING launchHubServer: If using the iohub mouse or eyetracker devices, fullScr should be True.
2.9803 WARNING Monitor specification not found. Creating a temporary one…
ioHub Server Process Completed With Code: 0
################# Experiment ended with exit
.

Hello @aayush_khobragade

You try to access movie_traffic before it is know to PsychoPy. Do you use loop to read the movie? Where and how do define movie_traffic?

Best wishes Jens