godot: VideoPlayer doesn't support looping VideoStreams

Operating system or device - Godot version: Windows 10 Godot 2.1 stable official

Issue description (what happened, and what was expected): VideoPlayer doesn’t have loop function and looping in GDScript gives 1-2 second delay between consecutive plays.

Steps to reproduce:

extends VideoPlayer

func _process(delta):
    if self.is_playing() == false:
        play()

func _ready():
    # Called every time the node is added to the scene.
    # Initialization here
    set_process(true)

Link to minimal example project (optional but very welcome): https://godotengine.org/qa/888/cannot-get-a-video-to-loop-correctly

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 19 (4 by maintainers)

Most upvoted comments

BTW, there’s a closed PR that adds, among other things, a finished signal to VideoPlayer: #5408. It can be used as a reference to implement looping.