InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 255 visualProfileLevelIndication 254 sceneProfileLevelIndication 1 graphicsProfileLevelIndication 1 ODProfileLevelIndication 1 esDescr [ ES_Descriptor { ES_ID 1 decConfigDescr DecoderConfigDescriptor { streamType 3 decSpecificInfo BIFSConfig { isCommandStream true pixelMetric true pixelWidth 300 pixelHeight 300 } } } ES_Descriptor { ES_ID 2 decConfigDescr DecoderConfigDescriptor { streamType 1 } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info ["This shows usage of MediaSensor" "with media segments defined" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "Media Sensor Test #2" } Shape { appearance Appearance { texture DEF MOV MovieTexture { loop TRUE stopTime -1 url [od:8] repeatS FALSE repeatT FALSE } } geometry Bitmap {} } DEF MS MediaSensor { url ["od:8#Begin" "od:8#End"] } DEF VAL Valuator {} DEF VAL2 Valuator {} Transform2D { translation 50 -90 children [ Shape { appearance DEF APP Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } } geometry DEF TXT Text { string [""] fontStyle DEF FS FontStyle { justify ["MIDDLE" "MIDDLE"] size 20 } } } ] } Transform2D { translation -50 -90 children [ Shape { appearance USE APP geometry Text { string ["Media Time:"] fontStyle USE FS } } ] } Transform2D { translation -60 -120 children [ Shape { appearance USE APP geometry Text { string ["Segment Start Time:"] fontStyle USE FS } } ] } Transform2D { translation 70 -120 children [ Shape { appearance USE APP geometry DEF START Text { string [""] fontStyle USE FS } } ] } DEF VAL3 Valuator {} Transform2D { translation -50 120 children [ Shape { appearance USE APP geometry Text { string ["Segment Name:"] fontStyle USE FS } } ] } Transform2D { translation 50 120 children [ Shape { appearance USE APP geometry DEF NAME Text { string [""] fontStyle USE FS } } ] } Transform2D { translation -70 90 children [ Shape { appearance USE APP geometry Text { string ["Segment Duration: "] fontStyle USE FS } } ] } Transform2D { translation 60 90 children [ Shape { appearance USE APP geometry DEF TXT2 Text { string [""] fontStyle USE FS } } ] } DEF C Conditional { buffer { REPLACE TXT.string BY [""] REPLACE TXT2.string BY [""] REPLACE NAME.string BY [""] REPLACE START.string BY [""] } } ] } ROUTE MS.mediaCurrentTime TO VAL.inSFTime ROUTE VAL.outMFString TO TXT.string ROUTE MS.mediaDuration TO VAL2.inSFTime ROUTE VAL2.outMFString TO TXT2.string ROUTE MS.info TO NAME.string ROUTE MS.streamObjectStartTime TO VAL3.inSFTime ROUTE VAL3.outMFString TO START.string ROUTE MS.isActive TO C.reverseActivate AT 0 { UPDATE OD [ ObjectDescriptor { objectDescriptorID 8 esDescr [ ES_Descriptor { ES_ID 20 OCR_ES_ID 20 muxInfo MuxInfo { fileName "auxiliary_files/count_video.cmp" } } ] ociDescr [ SegmentDescriptor { startTime 0 duration 4 name "Begin" } SegmentDescriptor { startTime 4 duration 2 name "Middle" } SegmentDescriptor { startTime 6 duration 4 name "End" } ] } ] }