Invalid call. Nonexistent function 'get_video_Texture' in base 'VideoPlayer'.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Paul WOISARD

hello World!

I try to watch a video on a mesh plane object, so i write this :

extends MeshInstance

var stream = preload("res://_Videos/UndeadMurdererTV.ogv")

func _ready():
	var player = VideoPlayer.new()
	player.set_stream(stream)
	
	add_child(player)
	
	var material = SpatialMaterial.new()
	
	var texture = material.albedo_texture
	texture = player.get_video_Texture()
	
	material.albedo_texture = texture
	material.set_flag(material.FLAG_UNSHADED, true)
	set_material_override(material)
	player.play()
	
	pass

But i have an error : Invalid call. Nonexistent function ‘get_video_Texture’ in base ‘VideoPlayer’.

Why is wrong and how to do that I want ?

Have you tried to use player.get_video_texture() with a lower case t?

Juju17i | 2018-10-02 13:18