To play a looping audio file in a JavaFX Scene, load the audio using AudioClip, set it to loop indefinitely with setCycleCount, and start playback with play when the Scene loads. To stop the audio when the window closes and prevent it from continuing in the background, use setOnCloseRequest with stop.