Added zerocopy, improved stream robustness and reduced latency
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
@@ -6,5 +6,13 @@
|
||||
script = ExtResource("1_jdh55")
|
||||
|
||||
[node name="GDVAPIVideoStream" type="GDVAPIVideoStream" parent="." unique_id=1053894928]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
printf '\033c\033]0;%s\a' godot cpp template
|
||||
base_path="$(dirname "$(realpath "$0")")"
|
||||
"$base_path/godot cpp template.x86_64" "$@"
|
||||
Binary file not shown.
@@ -21,5 +21,7 @@ config/icon="res://icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
display/window/vsync/vsync_mode=0
|
||||
|
||||
window/size/viewport_width=1920
|
||||
window/size/viewport_height=1080
|
||||
|
||||
BIN
project/test.mp4
BIN
project/test.mp4
Binary file not shown.
Reference in New Issue
Block a user