Skip to content

@halone/sdk / layoutFromName

Function: layoutFromName() ​

ts
function layoutFromName(name): MediaLayout | null;

The layout a file's name declares by the usual conventions (_360, _180, _SBS, _LR, _TB, _OU), or null when it declares none. Only a hint: a player should let the wearer correct it.

Parameters ​

name ​

string

Returns ​

MediaLayout | null

Released under the MIT License.