Spout.SpoutSender.new: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2019.5<br/> '''Class:''' Spout<br/> === Description === Creates a new sender and registers it on the machine. <syntaxhighlight la..."
 
No edit summary
Line 6: Line 6:
Creates a new sender and registers it on the machine.
Creates a new sender and registers it on the machine.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
SpoutSender.new(name,width,height)
(SpoutSender) = SpoutSender.new(name,width,height)
</syntaxhighlight>
</syntaxhighlight>



Revision as of 00:03, 13 November 2026

Available since: Gideros 2019.5
Class: Spout

Description

Creates a new sender and registers it on the machine.

(SpoutSender) = SpoutSender.new(name,width,height)

Parameters

name: (string) the sender name other applications will see, for example "Gideros_Live_Output". It must be unique on the machine; Spout appends "_1", "_2", ... when it is already registered
width: (number) width of the shared stream in pixels
height: (number) height of the shared stream in pixels

Return values

Returns (SpoutSender) the new sender object