Added zerocopy, improved stream robustness and reduced latency
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
extends Node
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
#$GDVAPIVideoStream.begin("udp://0.0.0.0:5000")
|
||||
pass
|
||||
$GDVAPIVideoStream.queue_depth = 4 # default; proves the property binding
|
||||
$GDVAPIVideoStream.begin("/tmp/gdvapi_test.sdp")
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var tex: Texture2D = $GDVAPIVideoStream.get_texture()
|
||||
if tex:
|
||||
if $TextureRect.texture != tex:
|
||||
$TextureRect.texture = tex
|
||||
Reference in New Issue
Block a user