Olá gostaria que alguem me discrevesse o passo a passo do Passo 5: Criando elos de sincronismo para legendas.
porque da maneira que eu estou tentando fazer não esta dando certo, sai essa mensagem, "You must map the nodes in the connectors roles to created a bing."
Obs: esse exemplo é do tutorialNCL3.0-2ed.
Autor: Erosvaldo Gaspar
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="../connectors/composerConnectorBase.conn" alias="connBase"/>
</connectorBase>
<regionBase>
<region left="0" top="0" width="1024" height="576" id="rgTV">
<region left="192" top="48" width="640" height="480" id="rgVideo1"/>
<region left="192" top="20" width="640" height="28" id="rgTitulo1"/>
<region left="192" top="528" width="640" height="28" id="rgLegenda"/>
</region>
</regionBase>
<descriptorBase>
<descriptor region="rgTitulo1" id="dTitulo1"/>
<descriptor region="rgLegenda" id="dLegenda"/>
<descriptor region="rgVideo1" id="dVideo1"/>
</descriptorBase>
</head>
<body>
<media descriptor="dVideo1" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/video1.mpg" type="video/mpeg" id="video1">
<area end="9.0s" begin="5.0s" id="aVideoLegenda01"/>
<area end="14.0s" begin="10.0s" id="aVideoLegenda02"/>
<area end="19.0s" begin="15.0s" id="aVideoLegenda03"/>
</media>
<port component="video1" id="port_newDocument1_video1"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda1.html" type="text/html" id="legenda1"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda2.html" type="text/html" id="legenda2"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda3.html" type="text/html" id="legenda3"/>
</body>
</ncl> O código em vermelho é o responsavel por mostrar a legenda.
<bind component="video1" interface="aVideoLegenda01" role="onBegin" />
<bind component="legenda01" role="start" />
</link> <!-- término da legenda 01 --> <link id="lLegenda01_stop" xconnector="connectors#onEnd1StopN">
<bind component="video1" interface="aVideoLegenda01" role="onEnd" />
<bind component="legenda01" role="stop" />
</link> <!-- início da legenda 02 --> <link id="lLegenda02_start" xconnector="connectors#onBegin1StartN">
<bind component="video1" interface="aVideoLegenda02" role="onBegin" />
<bind component="legenda02" role="start" />
</link> <!-- término da legenda 02 --> <link id="lLegenda02_stop" xconnector="connectors#onEnd1StopN">
<bind component="video1" interface="aVideoLegenda02" role="onEnd" />
<bind component="legenda02" role="stop" />
</link> <!-- início da legenda 03 --> <link id="lLegenda03_start" xconnector="connectors#onBegin1StartN">
<bind component="video1" interface="aVideoLegenda03" role="onBegin" />
<bind component="legenda03" role="start" />
</link> <!-- término da legenda 03 --> <link id="lLegenda03_stop" xconnector="connectors#onEnd1StopN">
<bind component="video1" interface="aVideoLegenda03" role="onEnd" />
<bind component="legenda03" role="stop" />
</link> Outra coisa, verifique se o conteúdo das mídias está especificado corretamente, faça referencias a arquivos locais. Romualdo
<media descriptor="dVideo1" src="http://www.softwarepublico.gov.br/dotlrn/DocumentsandSettings/Eros.PCCASA/Desktop/video1.mpg" type="video/mpeg" id="video1">
<area end="9.0s" begin="3.967s" id="aVideoLegenda01"/>
<area end="14.633s" begin="10.0s" id="aVideoLegenda02"/>
<area end="19.867s" begin="15.0s" id="aVideoLegenda03"/>
</media>
<port component="video1" id="port_newDocument1_video1"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda01.html" type="text/html" id="legenda01"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda02.html" type="text/html" id="legenda02"/>
<media descriptor="dLegenda" src="http://www.softwarepublico.gov.br/dotlrn/Documents and Settings/Eros.PCCASA/Desktop/legenda03.html" type="text/html" id="legenda03"/>
<link xconnector="composerOnBeginStartDelay" id="link_from_video1_to_legenda01_4021">
<bind role="onBegin" interface="aVideoLegenda01" component="video1"/>
<bind role="start" component="legenda01"/>
<linkParam value="0.000s" name="delay"/>
</link>
<link xconnector="composerOnEndStopWithDelay" id="link_from_video1_to_legenda01_389">
<bind role="onEnd" interface="aVideoLegenda01" component="video1"/>
<bind role="stop" component="legenda01"/>
<linkParam value="0.034s" name="delay"/>
</link> <link xconnector="composerOnBeginStartDelay" id="link_from_video1_to_legenda02_1647">
<bind role="onBegin" interface="aVideoLegenda02" component="video1"/>
<bind role="start" component="legenda02"/>
<linkParam value="0.000s" name="delay"/>
</link>
<link xconnector="composerOnEndStopWithDelay" id="link_from_video1_to_legenda02_6153">
<bind role="onEnd" interface="aVideoLegenda02" component="video1"/>
<bind role="stop" component="legenda02"/>
<linkParam value="0.033s" name="delay"/>
</link>
<link xconnector="composerOnBeginStartDelay" id="link_from_video1_to_legenda03_7274">
<bind role="onBegin" interface="aVideoLegenda03" component="video1"/>
<bind role="start" component="legenda03"/>
<linkParam value="0.000s" name="delay"/>
</link>
<link xconnector="composerOnEndStopWithDelay" id="link_from_video1_to_legenda03_2924">
<bind role="onEnd" interface="aVideoLegenda03" component="video1"/>
<bind role="stop" component="legenda03"/>
<linkParam value="0.001s" name="delay"/>
</link>
</body>