NDI Working

This commit is contained in:
2025-07-22 09:00:28 +10:00
parent fc6fa30c85
commit 853e4423f7
41 changed files with 1375 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
extends NDIFinder
@onready var player: VideoStreamPlayer = $"../VideoStreamPlayer"
func _on_sources_changed() -> void:
player.stream = get_sources().pop_front()
player.play()
func _on_sources_found(found_sources: Array[VideoStreamNDI]) -> void:
print("NDI sources found: ", found_sources.map(func (source: VideoStreamNDI): return source.get_name()))
func _on_sources_gone(gone_sources: Array[VideoStreamNDI]) -> void:
print("NDI sources gone: ", gone_sources.map(func (source: VideoStreamNDI): return source.get_name()))