mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 02:26:02 +10:00
NDI Working
This commit is contained in:
17
addons/godot-ndi/demo/video_stream_player.gd
Normal file
17
addons/godot-ndi/demo/video_stream_player.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends VideoStreamPlayer
|
||||
|
||||
@export var playlist: Array[VideoStream] = []
|
||||
|
||||
func _ready() -> void:
|
||||
_on_finished()
|
||||
|
||||
func _on_finished() -> void:
|
||||
if playlist.is_empty():
|
||||
return
|
||||
|
||||
var next_idx = playlist.find(stream) + 1
|
||||
if next_idx >= playlist.size():
|
||||
next_idx = 0
|
||||
|
||||
stream = playlist[next_idx]
|
||||
play()
|
||||
Reference in New Issue
Block a user