How to play video from widget class on scene?

How to play video from widget class on scene?
i need to autoplay that video depends on the distance between player to scene plane.
i mean its works like sound cue Override attenuation option.