Spout.SpoutSender.new

From GiderosMobile
Revision as of 23:53, 12 November 2026 by MoKaLux (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.5
Class: Spout

Description

Creates a new sender and registers it on the machine.

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