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" "without media segments defined" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "Media Sensor Test #1" } 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] } 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 90 children [ Shape { appearance USE APP geometry Text { string ["Media Duration: "] fontStyle USE FS } } ] } Transform2D { translation 60 90 children [ Shape { appearance USE APP geometry DEF TXT2 Text { string [""] fontStyle USE FS } } ] } ] } ROUTE MS.mediaCurrentTime TO VAL.inSFTime ROUTE VAL.outMFString TO TXT.string ROUTE MS.mediaDuration TO VAL2.inSFTime ROUTE VAL2.outMFString TO TXT2.string 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" } } ] } ] }