InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 254
 graphicsProfileLevelIndication 254
 ODProfileLevelIndication 255
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 400
     pixelHeight 200
    }
   }
  }
  ES_Descriptor {
   ES_ID 2
   decConfigDescr DecoderConfigDescriptor {
    streamType 1
   }
  }
 ]
}

OrderedGroup {
 children [
  DEF B1 Background2D {
   url [od:20]
  }
  WorldInfo {
   info ["This shows Background2D with dynamic image change" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:07 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Background Test"
  }
  Transform2D {
   children [
    Shape {
     appearance Appearance {
      material Material2D {
       emissiveColor 0 1 0
       filled TRUE
      }
     }
     geometry Rectangle {
      size 100 100
     }
    }
    DEF TS TouchSensor {}
   ]
  }
  DEF C1 Conditional {
   buffer {
    REPLACE B1.url BY ["od:20"]
   }
  }
  DEF RC1 Conditional {
   buffer {
    REPLACE B1.url BY ["od:10"]
   }
  }
 ]
}

ROUTE TS.isOver TO C1.activate
ROUTE TS.isOver TO RC1.reverseActivate

AT 0 {
  UPDATE OD [
   ObjectDescriptor {
    objectDescriptorID 10
    esDescr [
     ES_Descriptor {
      ES_ID 20
      muxInfo MuxInfo {
       fileName "../auxiliary_files/sky.jpg"
      }
     }
    ]
   }
   ObjectDescriptor {
    objectDescriptorID 20
    esDescr [
     ES_Descriptor {
      ES_ID 21
      muxInfo MuxInfo {
       fileName "../auxiliary_files/logo.jpg"
      }
     }
    ]
   }
  ]
}

AT 2000 {
 REPLACE B1.url BY ["od:20"]
}

AT 4000 {
 REPLACE B1.url BY ["od:10"]
}

