Foreword¶
We will now review the syntax of MPEG-4 scene commands in both BT and XMT-A formats. Please remember that BT and XMT languages are case sensitive.
Command declaration¶
BT format¶
RAP
and IN esID
can be omitted most of the time.
XMT format¶
isRAP
and atES_ID
can be omitted most of the time. isRAP
is a GPAC extension.
Replacing a simple field¶
BT format¶
XMT format¶
Replacing a SFNode field¶
BT format¶
XMT format¶
Note that the new node can be DEF'ed, or that a null node may be specified (NULL
).
Replacing a value in a multiple field¶
BT format¶
XMT format¶
For XMT-A, idx
can also take the special values 'BEGIN' and 'END'. Replacement of a node in an MFNode field is the combination of both syntax
Replacing a multiple field¶
BT format¶
XMT format¶
<Replace atNode="nodeName" atField="fieldName" >
<NodeXXX>...</NodeXXX>
<NodeXXX>...</NodeXXX>
</Replace>
Replacement of a node in an MFNode field is the combination of both syntax
Deleting a node¶
BT format¶
XMT format¶
Deleting a value in a multiple field¶
BT format¶
XMT format¶
For XMT-A, idx
can also take the special values 'BEGIN' and 'END'.
Inserting a simple value in a multiple field¶
BT format¶
XMT format¶
For XMT-A, idx
can also take the special values 'BEGIN' and 'END'.
Inserting a node in a node list field¶
BT format¶
XMT format¶
For XMT-A, idx
can also take the special values 'BEGIN' and 'END'.
Replacing a route¶
BT format¶
XMT format¶
<Replace atRoute="routeName">
<ROUTE fromNode="nodeName1" fromfield="fieldName1" toNode="nodeName2" toField="fieldName2" />
</Replace>