Guid
data-variant=info
data-slots=text
UXP for Adobe Media Encoder is in public beta. This reference is being written, and the supported API surface may change before general availability.
Since: 27.0
A Guid object holds a globally unique identifier (GUID). Most Media Encoder APIs pass GUIDs as strings, such as job IDs, but the progress APIs listed below use Guid objects.
Create a Guid from a string with the class method fromString, and convert it back to a string with the instance method toString:
const app = require("mediaencoder");
const guid = app.Guid.fromString("6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d");
guid.toString(); // "6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d"
These APIs take or return a Guid:
API
Use of the
GuidThe reference ID of the new progress item
The reference ID to look up in the category
The reference ID to look up in all categories
Returns the reference ID of the progress item
The type of the progress item
Methods
fromString
Creates a Guid object from the string representation of a GUID. Call this class method on app.Guid.
Since: 27.0
Parameters
Name
Type
Description
stringValue
string
The GUID as a string, such as
"6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d"Returns
const app = require("mediaencoder");
const guid = app.Guid.fromString("6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d");
toString
Returns the string representation of the GUID. Call this instance method on a Guid object.
Since: 27.0
Parameters
none
Returns
Name
Type
Description
value
string
The GUID as a string
const app = require("mediaencoder");
const guid = app.Guid.fromString("6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d");
guid.toString(); // "6f1c2b7e-3d4a-4f5b-9c8d-1e2f3a4b5c6d"