Olá!
Estou seguindo o tutorial completo da lingagem NCL + composer e estou com problemas no exemplo 05 - sincronizando um vídeo com um único arquivo de legenda, segmentado.
O que ocorre, é que na hora do teste os conteúdos de todos os div's são mostrados de uma vez só.
O meu arquivo de legenda é esse:
<html>
<body>
<div id="leg01">Ocorre aí o passe</div>
<div id="leg02">E é gooooooollll!!!</div>
<div id="leg03">da Argentina! =(</div>
<div id="leg04">olha o replay</div>
</body>
</html>
Na hora de exibir a legnda, o que aparece é:
Ocorre aí o passe E é gooooooollll!!! da Argentina! =( olha o replay
Como o teste deu certo usando vários arquivos pra legenda, dá impressão que tem algo de errado com o arquivo .html.
É possível perceber que as legendas estão sendo recarregadas no tempo certo, apesar do conteúdo errado.
Grato pela atenção
Leonardo Leie
Autor: Leonardo Alexandre Ferreira Leite
44 comentários
<ncl xsi:schemaLocation="http://www.ncl.org.br/NCL3.0/EDTVProfile www.ncl.org.br/NCL3.0/profiles/NCL30EDTV.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile" id="newDocument1">
<head>
<connectorBase>
<importBase documentURI="../../../../../../Program Files/Composer/files/connectors/composerConnectorBase.conn" alias="connBase"/>
</connectorBase>
<regionBase>
<region width="1024" height="768" id="rgTV">
<region left="50" top="20" width="640" height="480" id="rgVideo1"/>
<region left="52" top="524" width="640" height="30" id="rgLegenda"/>
</region>
</regionBase>
<descriptorBase> <descriptor region="rgVideo1" id="dVideo1"/> <descriptor region="rgLegenda" id="dLegenda"/>
</descriptorBase>
</head>
<body> <port component="video1" id="port_newDocument1_video1"/> <media descriptor="dVideo1" src="media/argentina.mpg" type="video/mpeg" id="video1">
<area end="5.0s" begin="1.0s" id="videoleg01"/>
<area end="15.0s" begin="6.0s" id="videoleg02"/>
<area end="20.0s" begin="16.0s" id="videoleg03"/>
<area end="26.0s" begin="21.0s" id="videoleg04"/>
</media> <media descriptor="dLegenda" src="media/legsport.html#leg92" type="text/html" id="legenda01"/>
<media descriptor="dLegenda" src="media/legsport.html#leg23" type="text/html" id="legenda02"/>
<media descriptor="dLegenda" src="media/legsport.html#leg33" type="text/html" id="legenda03"/>
<media descriptor="dLegenda" src="media/legsport.html#leg54" type="text/html" id="legenda04"/> <link xconnector="connBase#onBeginStart" id="link0">
<bind role="onBegin" interface="videoleg01" component="video1"/>
<bind role="start" component="legenda01"/>
</link> <link xconnector="connBase#onEndStop" id="link1">
<bind role="onEnd" interface="videoleg01" component="video1"/>
<bind role="stop" component="legenda01"/>
</link> <link xconnector="connBase#onBeginStart" id="link2">
<bind role="onBegin" interface="videoleg02" component="video1"/>
<bind role="start" component="legenda02"/>
</link> <link xconnector="connBase#onEndStop" id="link3">
<bind role="onEnd" interface="videoleg02" component="video1"/>
<bind role="stop" component="legenda02"/>
</link> <link xconnector="connBase#onBeginStart" id="link4">
<bind role="onBegin" interface="videoleg03" component="video1"/>
<bind role="start" component="legenda03"/>
</link> <link xconnector="connBase#onEndStop" id="link5">
<bind role="onEnd" interface="videoleg03" component="video1"/>
<bind role="stop" component="legenda03"/>
</link> <link xconnector="connBase#onBeginStart" id="link6">
<bind role="onBegin" interface="videoleg04" component="video1"/>
<bind role="start" component="legenda04"/>
</link> <link xconnector="connBase#onEndStop" id="link7">
<bind role="onEnd" interface="videoleg04" component="video1"/>
<bind role="stop" component="legenda04"/>
</link> </body>
</ncl>
<ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head>
<regionBase>
<region id="rgFundo" top="0" left="0" width="720" height="480" zIndex="1">
<region id="rgQuadro" left="67" top="316" width="588" height="114" zIndex="2"/>
<region id="rgFocus" left="10" top="10" width="10" height="10" zIndex="2"/>
</region>
</regionBase> <descriptorBase>
<descriptor id="dFundo" region="rgFundo" />
<descriptor id="dQuadro" region="rgQuadro"/>
<descriptor id="dFocus" region="rgFocus" focusIndex="1"/>
</descriptorBase> <connectorBase>
<causalConnector id="onBeginStart">
<simpleCondition role="onBegin"/>
<simpleAction role="start" max="unbounded"/>
</causalConnector>
<causalConnector id="onBeginStop">
<simpleCondition role="onBegin"/>
<simpleAction role="stop" max="unbounded"/>
</causalConnector>
<causalConnector id="onKeySelectionStart">
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<simpleAction role="start" max="unbounded"/>
</causalConnector>
</connectorBase> </head> <body>
<port id="newPort" component="fundo"/>
<media id="fundo" src="bg2.png" descriptor="dFundo"/>
<media id="conteudo" src="conteudo.html#portuguese" type="text/html" descriptor="dQuadro"/>
<media id="conteudo2" src="conteudo.html#english" type="text/html" descriptor="dQuadro"/>
<media id="focus" src="bg2.png" descriptor="dFocus"/>
<link id="init" xconnector="onBeginStart">
<bind role="onBegin" component="fundo"/>
<bind role="start" component="conteudo"/>
<bind role="start" component="focus"/>
</link> <link id="startConteudo2" xconnector="onKeySelectionStart">
<bind role="onSelection" component="focus">
<bindParam name="keyCode" value="RED"/>
</bind>
<bind role="start" component="conteudo2"/>
</link> <link id="stopConteudo" xconnector="onBeginStop">
<bind role="onBegin" component="conteudo2"/>
<bind role="stop" component="conteudo"/>
</link> <link id="startConteudo" xconnector="onKeySelectionStart">
<bind role="onSelection" component="focus">
<bindParam name="keyCode" value="GREEN"/>
</bind>
<bind role="start" component="conteudo"/>
</link> <link id="stopConteudo2" xconnector="onBeginStop">
<bind role="onBegin" component="conteudo"/>
<bind role="stop" component="conteudo2"/>
</link> </body>
</ncl>
-- conteudo.html <html>
<head>
<title>Titulo</title>
</head>
<body background="barra_cinza.png">
<div id="portuguese">
<table cellpadding="0" width="575" height="105">
<tr>
<td align="center" valign="top" height="100">Portuguese</td>
</tr>
</table>
</div>
<div id="english">
<table cellpadding="0" width="575" height="105">
<tr>
<td align="center" valign="top" height="100">English</td>
</tr>
</table>
</div>
</body>
</html>
[ ]`s
Lucas Augusto