How to pause one VideoPlayer and play another one on a different location in the same scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mehmet432

I have 2 VideoPlayers that i use as animated backgrounds, one of them is for “main menu” and the other one is for “options screen”, i don’t want them playing at the same time at all times because it’s extremely laggy, so i want the one on the “main menu” to stop when i transition/focus on “options screen”, i found the signal
“func _on_OptionsBackgroundAnimated_mouse_entered():” but then it breaks the video because i have:
func _process(_delta):
var playing = is_playing()
if playing == false:
play()
in order to loop the video.

:bust_in_silhouette: Reply From: mehmet432

Okay, im dumb, i just assigned button press signal for menus to start and stop the videos with a script for each menu.

Lesson to take here: don’t sit on your computer 7 hours at once.