Você está na página 1de 14

<?xml version="1.0" encoding="ISO-8859-1"?> <!

-- Exemplo de sincronismo sem a interacao do usuario e com reuso apenas de rel acoes--> <ncl id="syncEx" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <ruleBase> <rule id="escolha1" var="escolhaVar1" value="video1" com parator="eq"/> <rule id="escolha2" var="escolhaVar1" value="video2" com parator="eq"/> <rule id="escolha3" var="escolhaVar2" value="video3" com parator="eq"/> <rule id="escolha4" var="escolhaVar2" value="video4" com parator="eq"/> <rule id="escolha5" var="escolhaVar3" value="video5" com parator="eq"/> <rule id="escolha6" var="escolhaVar3" value="video6" com parator="eq"/> <rule id="escolha7" var="escolhaVar4" value="video7" com parator="eq"/> <rule id="escolha8" var="escolhaVar4" value="video8" com parator="eq"/> <rule id="escolha9" var="escolhaVar5" value="video9" com parator="eq"/> <rule id="escolha10" var="escolhaVar5" value="video10" c omparator="eq"/> </ruleBase> <regionBase> <region id="videoPrincipalReg" width="100%" height="100% " zIndex="1"/> <region id="videoUmReg" width="100%" height="100%" zInde x="1"/> <region id="videoDoisReg" width="100%" height="100%" zIn dex="1"/> <region id="videoTresReg" width="100%" height="100%" zIn dex="1"/> <region id="videoQuatroReg" width="100%" height="100%" z Index="1"/> <region id="videoCincoReg" width="100%" height="100%" zI ndex="1"/> <region id="videoSeisReg" width="100%" height="100%" zIn dex="1"/> <region id="videoSeteReg" width="100%" height="100%" zIn dex="1"/> <region id="videoOitoReg" width="100%" height="100%" zIn dex="1"/> <region id="videoNoveReg" width="100%" height="100%" zIn dex="1"/> <region id="videoDezReg" width="100%" height="100%" zInd ex="1"/> <region id="redIconReg" width="15%" height="5%" left="2 5%" bottom="30%" zIndex="3"/> <region id="greenIconReg" width="15%" height="5%" left= "60%" bottom="30%" zIndex="3"/> </regionBase> <descriptorBase> <descriptor id="videoPrincipalDesc" region="videoPrincip

alReg"/> <descriptor <descriptor <descriptor <descriptor /> <descriptor <descriptor <descriptor <descriptor <descriptor <descriptor <descriptor <descriptor </descriptorBase> <connectorBase> <importBase documentURI="../causalConnBase.ncl" alias="c onEx"/> </connectorBase> </head> <body> <port id="entrada" component="videoPrincipal"/> <media id="videoPrincipal" src="../media/Interactive_zombie.avi" descriptor="videoPrincipalDesc"> <area id="areaPrincipal" begin="1s"/> <area id="icon_red_VideoPrincipal" begin="217s"/> <area id="icon_green_VideoPrincipal" begin="217s"/> </media> <media id="videoUm" src="../media/Let_Him.avi" descriptor="video UmDesc"> <area id="area1" begin="1s"/> <area id="icon_red_videoUm" begin="187s"/> <area id="icon_green_videoUm" begin="187s"/> </media> <media id="videoDois" src="../media/Leave_Him.avi" descriptor="v ideoDoisDesc"> <area id="area2" begin="1s"/> <area id="icon_red_videoDois" begin="72s"/> <area id="icon_green_videoDois" begin="72s"/> </media> <media id="videoTres" src="../media/use_bowling_ball.avi" descri ptor="videoTresDesc"> <area id="area3" begin="1s"/> <area id="icon_red_videoTres" begin="31s"/> <area id="icon_green_videoTres" begin="31s"/> </media> <media id="videoQuatro" src="../media/use_the_chair.avi" descrip tor="videoQuatroDesc"> <area id="area4" begin="1s"/> <area id="icon_red_videoQuatro" begin="113s"/> <area id="icon_green_videoQuatro" begin="113s"/> </media> id="videoCincoDesc" region="videoCincoReg"/> id="videoSeisDesc" region="videoSeisReg"/> id="videoSeteDesc" region="videoSeteReg"/> id="videoOitoDesc" region="videoOitoReg"/> id="videoNoveDesc" region="videoNoveReg"/> id="videoDezDesc" region="videoDezReg"/> id="redIconDesc" region="redIconReg"/> id="greenIconDesc" region="greenIconReg"/> id="videoUmDesc" region="videoUmReg"/> id="videoDoisDesc" region="videoDoisReg"/> id="videoTresDesc" region="videoTresReg"/> id="videoQuatroDesc" region="videoQuatroReg"

<media id="videoCinco" src="../media/continue_on_foot.avi" descr iptor="videoCincoDesc"> <area id="area5" begin="1s"/> <area id="icon_red_videoCinco" begin="98s"/> <area id="icon_green_videoCinco" begin="98s"/> </media> <media id="videoSeis" src="../media/take_golf_cart.avi" descript or="videoSeisDesc"> <area id="area6" begin="1s"/> <area id="icon_red_videoSeis" begin="98s"/> <area id="icon_green_videoSeis" begin="98s"/> </media> <media id="videoSete" src="../media/Smith_Street.avi" descriptor ="videoSeteDesc"> <area id="area7" begin="1s"/> <area id="icon_red_videoSete" begin="93s"/> <area id="icon_green_videoSete" begin="93s"/> </media> <media id="videoOito" src="../media/stone_street.avi" descriptor ="videoOitoDesc"> <area id="area8" begin="1s"/> <area id="icon_red_videoOito" begin="104s"/> <area id="icon_green_videoOito" begin="104s"/> </media> <media id="videoNove" src="../media/Use_the_rope.avi" descriptor ="videoNoveDesc"> <area id="area9" begin="1s"/> </media> <media id="videoDez" src="../media/jump_the_scooter.avi" descrip tor="videoDezDesc"> <area id="area10" begin="1s"/> <area id="icon_red_videoDez" begin="65s"/> <area id="icon_green_videoDez" begin="65s"/> </media> <media id="red_icon" src="../imagens/icon_red.png" descriptor="r edIconDesc"/> <media id="green_icon" src="../imagens/icon_green.png" descripto r="greenIconDesc"/> <!-- LINKS PARA APARECER OS ICONES VERMELHOS E VERDES --> <link id="lVideoPrincipal" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoPrincipal" interfac e="icon_red_VideoPrincipal"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo1" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoUm" interface="icon _red_videoUm"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo2" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoDois" interface="ic

on_red_videoDois"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo3" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoTres" interface="ic on_red_videoTres"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo4" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoQuatro" interface=" icon_red_videoQuatro"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo5" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoCinco" interface="i con_red_videoCinco"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo6" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoSeis" interface="ic on_red_videoSeis"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo7" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoSete" interface="ic on_red_videoSete"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo8" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoOito" interface="ic on_red_videoOito"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo9" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoNove"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link> <link id="lVideo10" xconnector="conEx#onBeginStart"> <bind role="onBegin" component="videoDez" interface="ico n_red_videoDez"/> <bind role="start" component="red_icon"/> <bind role="start" component="green_icon"/> </link>

<!-- =========================================================== ========= -->

<media id="noSettings" type="application/x-ginga-settings"> <property name="escolhaVar1" value="video1"/> <property name="escolhaVar2" value="video4"/> <property name="escolhaVar3" value="video7"/> <property name="escolhaVar4" value="video9"/> <property name="escolhaVar5" value="video9"/> </media>

<!-- ========================================================================= --> Primeira Deciso <!-- ========================================================================= --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoPrincipal" int erface="areaPrincipal" > <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoPrincipal"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar1"> <bindParam name="varSet" value="video1"/> </bind> <bind role="start" component="primeiraEscolha"/> </link>

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoPrincipal" inte rface="areaPrincipal" > <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoPrincipal"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar1"> <bindParam name="varSet" value="video2"/>

</bind> <bind role="start" component="primeiraEscolha"/> </link>

<switch id="primeiraEscolha"> <defaultComponent component="videoDoisS"/> <bindRule constituent="videoUmS" rule="escolha1"/> <bindRule constituent="videoDoisS" rule="escolha2"/> <media id="videoUmS" refer="videoUm" instance="instSame" > </media> <media id="videoDoisS" refer="videoDois" instance="instSame" > </media> </switch> <!-<causalConnector id="onEndStart"> <simpleCondition role="onEnd"/> <simpleAction role="start" max="unbounded" quali fier="par"/> </causalConnector> --> <!-- LINKS PARA MUDAR OS VDEOS -->

<link id="lEndEscolha1" xconnector="conEx#onEndStart"> <bind role="onEnd" component="videoTres"/> <bind role="start" component="videoQuatro"/> </link>

<!-- ========================================================================= --> Segunda Deciso <!-- ========================================================================= --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoUm" interface=" area1" > <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoUm"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon">

</bind> <bind role="set" component="noSettings" interface="escol haVar2"> <bindParam name="varSet" value="video3"/> </bind> <bind role="start" component="segundaEscolha"/> </link>

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoUm" interface=" area1" > <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoUm"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar2"> <bindParam name="varSet" value="video4"/> </bind> <bind role="start" component="segundaEscolha"/> </link>

<switch id="segundaEscolha"> <defaultComponent component="videoTresS"/> <bindRule constituent="videoTresS" rule="escolha3"/> <bindRule constituent="videoQuatroS" rule="escolha4"/> <media id="videoTresS" refer="videoTres" instance="instS ame"/> <media id="videoQuatroS" refer="videoQuatro" instance="i nstSame"/> </switch> <!-- ========================================================================= --> Terceira Deciso <!-- ========================================================================= -->

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoQuatro" interfa ce="area4"> <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoQuatro"> </bind>

<bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar3"> <bindParam name="varSet" value="video5"/> </bind> <bind role="start" component="terceiraEscolha"/> </link>

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoQuatro" interfa ce="area4"> <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoQuatro"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar3"> <bindParam name="varSet" value="video6"/> </bind> <bind role="start" component="terceiraEscolha"/> </link>

<switch id="terceiraEscolha"> <defaultComponent component="videoSeisS"/> <bindRule constituent="videoCincoS" rule="escolha5"/> <bindRule constituent="videoSeisS" rule="escolha6"/> <media id="videoCincoS" refer="videoCinco" instance="ins tSame"/> <media id="videoSeisS" refer="videoSeis" instance="instS ame"/> </switch>

<!-- ========================================================================= --> Quarta Deciso <!-- ========================================================================= --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoSeis" interface ="area6" > <bindParam name="keyCode" value="RED"/> </bind>

<bind role="stop" component="videoSeis"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar4"> <bindParam name="varSet" value="video7"/> </bind> <bind role="start" component="quartaEscolha"/> </link>

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoSeis" interface ="area6"> <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoSeis"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar4"> <bindParam name="varSet" value="video8"/> </bind> <bind role="start" component="quartaEscolha"/> </link>

<switch id="quartaEscolha"> <defaultComponent component="videoOitoS"/> <bindRule constituent="videoSeteS" rule="escolha7"/> <bindRule constituent="videoOitoS" rule="escolha8"/> <media id="videoSeteS" refer="videoSete" instance="instS ame"/> <media id="videoOitoS" refer="videoOito" instance="instS ame"/> </switch>

<!-- =========================================================== ============== --> Quinta Deciso <!-- ========================================================================= --> <link xconnector="conEx#onKeySelectionStopSetStart">

<bind role="onSelection" component="videoOito" interface ="area8" > <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoOito"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar5"> <bindParam name="varSet" value="video9"/> </bind> <bind role="start" component="quintaEscolha"/> </link>

<link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoOito" interface ="area8" > <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoOito"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" interface="escol haVar5"> <bindParam name="varSet" value="video10"/> </bind> <bind role="start" component="quintaEscolha"/> </link>

<switch id="quintaEscolha"> <defaultComponent component="videoDezS"/> <bindRule constituent="videoNoveS" rule="escolha9"/> <bindRule constituent="videoDezS" rule="escolha10"/> <media id="videoNoveS" refer="videoNove" instance="instS ame"/> <media id="videoDezS" refer="videoDez" instance="instSam e"/> </switch>

<!-- =========================================================== ====== -->

<!-MUDANAS NOS VIDEOS QUE S ADMITEM UMA ESCOLHA

--> <!-MUDANA DO VIDEO1 PARA O VIDEO1 --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoDois" interface ="area2"> <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoDois"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" > </bind> <bind role="start" component="videoUm"/> </link> <!-MUDANA DO VIDEO3 PARA O VIDEO4 --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoTres" interface ="area3" > <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoTres"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" > </bind> <bind role="start" component="videoQuatro"/> </link> <!-MUDANA DO VIDEO5 PARA O VIDEO6 --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoCinco" interfac e="area5"> <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoCinco"> </bind> <bind role="stop" component="red_icon"> </bind>

<bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" > </bind> <bind role="start" component="videoSeis"/> </link> <!-MUDANA DO VIDEO7 PARA O VIDEO8 --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoSete" interface ="area7" > <bindParam name="keyCode" value="GREEN"/> </bind> <bind role="stop" component="videoSete"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" > </bind> <bind role="start" component="videoOito"/> </link> <!-MUDANA DO VIDEO10 PARA O VIDEO9 --> <link xconnector="conEx#onKeySelectionStopSetStart"> <bind role="onSelection" component="videoDez" interface= "area10"> <bindParam name="keyCode" value="RED"/> </bind> <bind role="stop" component="videoDez"> </bind> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> <bind role="set" component="noSettings" > </bind> <bind role="start" component="videoNove"/> </link> <!-- =========================================================== == --> <!-- =========================================================== == --> CODIGOS PARA FINALIZAR OS VIDEOS <!-- =========================================================== == --> <!-- =========================================================== == --> <link id="lEndVideoPrincipal" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoPrincipal"/>

<bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo1" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoUm"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo2" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoDois"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo3" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoTres"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo4" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoQuatro"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo5" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoCinco"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo7" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoSeis"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo8" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoOito"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind>

</link> <link id="lEndVideo9" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoNove"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> <link id="lEndVideo10" xconnector="conEx#onEndStop"> <bind role="onEnd" component="videoDez"/> <bind role="stop" component="red_icon"> </bind> <bind role="stop" component="green_icon"> </bind> </link> </body> </ncl>

Você também pode gostar