Skip to content

Primeiro João Parte 3

Lucas de Macedo Terças edited this page Jul 21, 2017 · 9 revisions

O elemento Region

 <head>
    <regionBase> 
      <region id="screenReg" width="100%" height="100%" zIndex="2">
         <region id="frameReg" left="5%" top="6.7%" width="18.5%" height="18.5%" zIndex="3"/>
      </region>
   </regionBase>
</head>
region screenReg
   width = "100%" height = "100%"
   zIndex = "2"
   region frameReg
      left = "5%" top = "6.7%"
      width = "18.5%" height = "18.5%"
      zIndex = "3"
   end
end
media animation
   src = "media/animGar.mp4" 
   rg = screenReg
   area segDrible
      begin = "12s"
   end
   area segPhoto
      begin = "41s" 
   end
end
media choro
   src = "media/choro.mp4"
end
media drible
   src = "media/drible.mp4" rg = frameReg
end
media photo
   src = "media/photo.png" rg = frameReg
   explicitDur = "5s"
end
<media id="animation" src="../media/animGar.mp4" descriptor="screenDesc">
   <area id="segDrible" begin="12s"/>
   <area id="segPhoto" begin="41s"/>
</media>
<media id="choro" src="../media/choro.mp4" descriptor="audioDesc"/>
<media id="drible" src="../media/drible.mp4" descriptor="dribleDesc"/>
<media id="photo" src="../media/photo.png" descriptor="photoDesc"/>
port entry animation
region screenReg
   width = "100%" height = "100%"
   zIndex = "2"
   region frameReg
      left = "5%" top = "6.7%"
      width = "18.5%" height = "18.5%"
      zIndex = "3"
   end
end

media animation
   src = "media/animGar.mp4" 
   rg = screenReg
   area segDrible
      begin = "12s"
   end
   area segPhoto
      begin = "41s" 
   end
end
media choro
   src = "media/choro.mp4"
end
media drible
   src = "media/drible.mp4" rg = frameReg
end
media photo
   src = "media/photo.png" rg = frameReg
   explicitDur = "5s"
end

onBegin animation do
   start choro
      delay = "5s"
   end
end
onBegin animation.segDrible do
   start drible end
end
onBegin animation.segPhoto do
   start photo end
end
onEnd animation dp
   stop choro end
end
<ncl id="sync" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
   <head>
      <regionBase>
         <region id="screenReg" width="100%" height="100%" zIndex="2">
            <region id="frameReg" left="5%" top="6.7%" width="18.5%" height="18.5%" zIndex="3"/>
         </region>
      </regionBase>
      <descriptorBase>
         <descriptor id="screenDesc" region="screenReg"/>
         <descriptor id="photoDesc" region="frameReg" explicitDur="5s"/>
         <descriptor id="audioDesc"/>
         <descriptor id="dribleDesc" region="frameReg"/>
      </descriptorBase>
      <connectorBase>
         <importBase documentURI="../causalConnBase.ncl" alias="conEx"/>
      </connectorBase>
   </head>
   <body>
      <port id="entry" component="animation"/>
      <media id="animation" src="../media/animGar.mp4" descriptor="screenDesc">
         <area id="segDrible" begin="12s"/>
         <area id="segPhoto" begin="41s"/>
      </media>
      <media id="choro" src="../media/choro.mp4" descriptor="audioDesc"/>
      <media id="drible" src="../media/drible.mp4" descriptor="dribleDesc"/>
      <media id="photo" src="../media/photo.png" descriptor="photoDesc"/>
      <link id="lMusic" xconnector="conEx#onBeginStart_delay">
         <bind role="onBegin" component="animation"/>
         <bind role="start" component="choro">
            <bindParam name="delay" value="5s"/>
         </bind>
      </link>
      <link id="lDrible" xconnector="conEx#onBeginStart">
         <bind role="onBegin" component="animation" interface="segDrible"/>
         <bind role="start" component="drible"/>
      </link>
      <link id="lPhoto" xconnector="conEx#onBeginStart">
         <bind role="onBegin" component="animation" interface="segPhoto"/>
         <bind role="start" component="photo"/>
      </link>
      <link id="lEnd" xconnector="conEx#onEndStop">
         <bind role="onEnd" component="animation"/>
         <bind role="stop" component="choro"/>
      </link>
   </body>
</ncl>

Clone this wiki locally