mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-26 11:36:01 +10:00
NDI Working
This commit is contained in:
13
addons/godot-ndi/demo/ndi_finder.gd
Normal file
13
addons/godot-ndi/demo/ndi_finder.gd
Normal 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()))
|
||||
Reference in New Issue
Block a user