xmto2xmta.mapmedia
Class MedExternalElement
java.lang.Object
|
+--xmto2xmta.MapRoot
|
+--xmto2xmta.mapmedia.MedMediaElement
|
+--xmto2xmta.mapmedia.MedExternalElement
- All Implemented Interfaces:
- MapInterface
- Direct Known Subclasses:
- MedAudio, MedExternalVisualElement
- public abstract class MedExternalElement
- extends MedMediaElement
Class to group together the various type media elements whose data is external to the XMT file.
History:
- 13 Dec 2000 - Created file.
- 09 Feb 2001 - Fix bug should support indefininte duration (end time)
- 20 Jun 2001 - Remove support for old XMT-A format.
- 28 Jun 2001 - Changed SLConfigDescriptor to use predefined option.
- 28 May 2002 - odid url prefix is od:// in new spec.
Method Summary |
protected boolean |
createDeleteMapping(ELASid elasId)
Create the media Element infrastructure. |
protected boolean |
createDeleteMapping(ELASid elasId,
ELASid parentELASid,
TimingAttribute deleteTime)
Create the media Element infrastructure. |
protected boolean |
createEventDeleteMapping(ELASid elasId,
ELASid parentELASid)
Map the timing of the end of the object based on the end event(s). |
protected boolean |
createEventInsertMapping(ELASid elasId,
ELASid parentELASid)
Attach the switch for the element based on the begin event. |
protected boolean |
createInsertMapping(ELASid elasId)
Create the External Element infrastructure. |
protected boolean |
createInsertMapping(ELASid elasId,
ELASid parentELASid,
TimingAttribute insertTime,
TimingAttribute simpleDuration)
Create the External Element infrastructure. |
private boolean |
generateDeleteMapping(ELASid elasId,
TimingAttribute deleteTime)
|
private boolean |
generateInsertMapping(ELASid elasId,
TimingAttribute insertTime)
|
void |
init(Xmto2Xmta xmto2xmta,
ConvertElement element)
|
static void |
setDebug(boolean debug)
Enable debugging information to be printed to the console. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
debug_
private static boolean debug_
- Whether debug information is to be printed to the console.
default is not have debug information printed (false).
ODID_URL_PREFIX
protected static final java.lang.String ODID_URL_PREFIX
FILE_URL_PREFIX
protected static final java.lang.String FILE_URL_PREFIX
treeExternalElement_
private ExternalElement treeExternalElement_
xmto2XmtaRes_
private java.util.ResourceBundle xmto2XmtaRes_
externalElementRes_
private java.util.ResourceBundle externalElementRes_
MedExternalElement
public MedExternalElement()
createDeleteMapping
protected boolean createDeleteMapping(ELASid elasId)
- Create the media Element infrastructure.
The infrastructure contains the par node for the deletion.
The par for the deletion, deletes the top level group for the element. It also
takes care of the position in the ordered group field (for z-order)
<par begin="???">
<Delete atNode="???"/>
<Delete atField="order" atNode="???"/>
</par>
- Overrides:
createDeleteMapping
in class MedMediaElement
createDeleteMapping
protected boolean createDeleteMapping(ELASid elasId,
ELASid parentELASid,
TimingAttribute deleteTime)
- Create the media Element infrastructure.
The infrastructure contains the par node for the deletion.
The par for the deletion, deletes the top level group for the element. It also
takes care of the position in the ordered group field (for z-order)
<par begin="???">
<Delete atNode="???"/>
<Delete atField="order" atNode="???"/>
</par>
- Overrides:
createDeleteMapping
in class MedMediaElement
generateDeleteMapping
private boolean generateDeleteMapping(ELASid elasId,
TimingAttribute deleteTime)
createInsertMapping
protected boolean createInsertMapping(ELASid elasId)
- Create the External Element infrastructure.
The infrastructure contains the par node for the insertion of the OD.
<par begin="???">
<ObjectDescriptorUpdate>
<OD>
<ObjectDescriptor ObjectDescriptorID="???">
<esDescr>
<ES_Descriptor ES_ID="???">
<StreamSource url="???"/>
<decConfigDescr>
<DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="???" streamType="???">
<decSpecificInfo>
<DecoderSpecificInfo type="auto"/>
</decSpecificInfo>
</DecoderConfigDescriptor>
</decConfigDescr>
<slConfigDescr>
<SLConfigDescriptor>
<predefined value="2"/>
</SLConfigDescriptor>
</slConfigDescr>
</ES_Descriptor>
</esDescr>
</ObjectDescriptor>
<OD/>
</ObjectDescriptorUpdate>
</par>
- Overrides:
createInsertMapping
in class MedMediaElement
createInsertMapping
protected boolean createInsertMapping(ELASid elasId,
ELASid parentELASid,
TimingAttribute insertTime,
TimingAttribute simpleDuration)
- Create the External Element infrastructure.
The infrastructure contains the par node for the insertion of the OD.
<par begin="???">
<ObjectDescriptorUpdate>
<OD>
<ObjectDescriptor ObjectDescriptorID="???">
<esDescr>
<ES_Descriptor ES_ID="???">
<StreamSource url="???"/>
<decConfigDescr>
<DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="???" streamType="???">
<decSpecificInfo>
<DecoderSpecificInfo type="auto"/>
</decSpecificInfo>
</DecoderConfigDescriptor>
</decConfigDescr>
<slConfigDescr>
<SLConfigDescriptor>
<predefined value="2"/>
</SLConfigDescriptor>
</slConfigDescr>
</ES_Descriptor>
</esDescr>
</ObjectDescriptor>
<OD/>
</ObjectDescriptorUpdate>
</par>
- Overrides:
createInsertMapping
in class MedMediaElement
generateInsertMapping
private boolean generateInsertMapping(ELASid elasId,
TimingAttribute insertTime)
init
public void init(Xmto2Xmta xmto2xmta,
ConvertElement element)
throws java.lang.Exception
- Overrides:
init
in class MedMediaElement
createEventInsertMapping
protected boolean createEventInsertMapping(ELASid elasId,
ELASid parentELASid)
- Attach the switch for the element based on the begin event. The begining
of the object is based on an event thus attach switch
The begining of the object is based on an event thus attach switch
inside conditional and set the route from a touch sensor. If there
is an offset time then also need a timer conditional.
- Overrides:
createEventInsertMapping
in class MedMediaElement
createEventDeleteMapping
protected boolean createEventDeleteMapping(ELASid elasId,
ELASid parentELASid)
- Map the timing of the end of the object based on the end event(s).
The end could be a single event or more likely a list of end events
or clock timing. The first one which occurs will remove the event and
the rest will be ignored (or fall through without effect).
- Overrides:
createEventDeleteMapping
in class MedMediaElement
setDebug
public static void setDebug(boolean debug)
- Enable debugging information to be printed to the console.
- Parameters:
debug
- sets debug information is printed