<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Franco H</b> <span dir="ltr"><<a href="mailto:gusamh@gmail.com">gusamh@gmail.com</a>></span><br>
Date: Wed, Oct 9, 2013 at 2:44 PM<br>Subject: MEDIA HTML, LINK SIMPLE FUNCIONAN ???<br>To: Lista de la comunidad argentina de Ginga <<a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a>><br>
<br><br><div dir="ltr"><div><div><div>Hola acá envio una aplicación que muestra dos botones al precionar enter estando sobre alguna de ella debe mostrar una media html y una imgan según correnponda.<br><br></div>código:<br>
<br><?xml version="1.0" encoding="ISO-8859-1"?><br>
<ncl id="htmlTest" xmlns="<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>"><br> <head><br> <br> <regionBase><br>
<region id="htmlRegion" top="50" height="400" width="500" zIndex="1"/><br>
<region id="rBoton" bottom="10" left="10" height="25" width="25" zIndex="2"/><br> <region id="rBoton2" bottom="10" left="50" height="25" width="25" zIndex="2"/><br>
</regionBase><br> <br> <descriptorBase><br> <descriptor id="htmlDescriptor" region="htmlRegion"/><br> <descriptor id="dBoton" region="rBoton" focusIndex="1" moveRight="2"/><br>
<descriptor id="dBoton2" region="rBoton2" focusIndex="2" moveLeft="1"/><br> </descriptorBase><br> <connectorBase><br> <causalConnector id="onSelectionStart"><br>
<connectorParam name="keyCode"/><br> <simpleCondition key="$keyCode" role="onSelection" /><br> <simpleAction max="unbounded" qualifier="par" role="start" /><br>
</causalConnector><br> </connectorBase><br> </head><br> <body><br> <media id="boton" src="resources/boton verde.png" descriptor="dBoton"/><br>
<media id="boton2" src="resources/boton play.png" descriptor="dBoton2"/><br> <media id="imagen" src="resources/images/lifia.jpg" descriptor="htmlDescriptor"/><br>
<port id="pBoton" component="boton"/><br> <port id="ppBoton" component="boton2"/><br> <media descriptor="htmlDescriptor" id="html" src="./resources/html/index2.html" ><br>
<property name="right" value="10px" /><br> <property name="width" value="500px" /><br> <property name="height" value="434px" /><br>
</media> <br> <br> <link xconnector="onSelectionStart"><br> <bind role="onSelection" component="boton"><br> <bindParam name="keyCode" value="ENTER"/><br>
</bind><br> <bind role="start" component="html"/><br> </link><br> <br> <link xconnector="onSelectionStart"><br> <bind role="onSelection" component="boton2"><br>
<bindParam name="keyCode" value="ENTER"/><br> </bind><br> <bind role="start" component="imagen"/><br> </link><br>
</body><br></ncl><br></div><br></div><div><div><div><div><br><br><br>
<br></div><div>EL LOG AL UTILIZAR LA OPCION DEL BOTON QUE DEBERIA MOSTRAR EL HTML ES LA SIGUIENTE<br><br><br> --------------------------| Ginga.ar 2.1.0 (3250) |--------------------------<br>[canvas::System] Using system: use=gtk<br>
[canvas::System] DEBUG: Initialize<br>[canvas::gtk::Window] DEBUG: Initialize<br>[canvas::Window] DEBUG: Set size: old=(0,0), new=(720,576)<br>[canvas::Window] DEBUG: Update bounds on overlays: overlays=0<br>[canvas::player] Using player: use=vlc<br>
[canvas::vlc] Initialize<br>[ncl30-presenter::PresentationEngineManager] DEBUG: Start document: doc=/home/gusam/workspace/Test2.1.0/2.1.0/html/28_position.ncl<br>[ncl30-converter::PrivateBaseContext] DEBUG: Doc added, url=/home/gusam/workspace/Test2.1.0/2.1.0/html/28_position.ncl<br>
[gingaplayer::Manager] DEBUG: Reserve keys: listeners=0, id=0x985f690, size=9<br>[canvas::gtk::System] Main loop begin<br>[ncl30-presenter::FormatterMediator] DEBUG: start doc, id=htmlTest, interface=<br>[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink '' inside '-1/htmlTest/'<br>
[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, can't process ncmLink '' inside '-1/htmlTest/' because ncmLink does not contains 'boton' src<br>[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink '' inside '-1/htmlTest/'<br>
[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>[ncl30-presenter::FormatterLinkConverter] DEBUG: createCausalLink] inside '-1/htmlTest/' from ncmlinkId ''<br>
[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink '' inside '-1/htmlTest/'<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=LinkTransitionTriggerCondition, listenerId=0x98c76ac, eventId=0x98c7598<br>
[ncl30-presenter::FormatterLinkConverter] DEBUG: createCausalLink] inside '-1/htmlTest/' from ncmlinkId ''<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>
[gingaplayer::Manager] DEBUG: Reserve keys: listeners=1, id=0x999d0f8, size=8<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event 'boton_1' for '-1/htmlTest/boton/dBoton'<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event 'boton_1' for '-1/htmlTest/boton/dBoton' START<br>
[gingaplayer::Device] Create player: type=image, schema=file, body=/home/gusam/workspace/Test2.1.0/2.1.0/html/resources/boton verde.png, mime=<br>[gingaplayer::player] DEBUG: Initialize<br>[gingaplayer::Player] DEBUG: Set property begin: name=src<br>
[gingaplayer::Player] DEBUG: Set property end: name=src, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=type<br>[gingaplayer::Player] DEBUG: Set property end: name=type, result=1<br>[ncl30-presenter::FormatterRegion] DEBUG: bounds: x=10, y=541, w=25, h=25, z=2<br>
[gingaplayer::Player] DEBUG: Set property begin: name=bounds<br>[gingaplayer::Player] DEBUG: Set property end: name=bounds, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=zIndex<br>[gingaplayer::Player] DEBUG: Set property end: name=zIndex, result=1<br>
[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton/dBoton)<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton/dBoton) locked<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>
[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[gingaplayer::player] DEBUG: play<br>[gingaplayer::player] DEBUG: Can play begin<br>[gingaplayer::player] DEBUG: Can play: result=1<br>
[gingaplayer::GraphicPlayer] DEBUG: Start play<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(10,541), size=(25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(10,541), size=(25,25)<br>
[gingaplayer::player] DEBUG: Apply changes<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (10,541,25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (10,541,25,25)<br>[gingaplayer::GraphicPlayer] DEBUG: apply zIndex, value=2<br>
[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>[gingaplayer::GraphicProperties] DEBUG: apply visible, value=1<br>[gingaplayer::GraphicProperties] DEBUG: apply opacity, value=1,000000<br>
[gingaplayer::GraphicPlayer] DEBUG: Begin refresh<br>[gingaplayer::ImagePlayer] DEBUG: Draw image<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>
[gingaplayer::Manager] DEBUG: Reserve keys: listeners=2, id=0x98965d0, size=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: start, event: 0x9897178<br>
[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: 'boton_1' transition '0'<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentKeyMaster, value=<br>[gingaplayer::Player::settings] DEBUG: set property, name=service.currentFocus, value='1'<br>
[gingaplayer::Player] DEBUG: Set property begin: name=focus<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=0<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=0<br>
[gingaplayer::Player] DEBUG: Set property end: name=focus, result=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>
[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id='-1/htmlTest/' transition='0'<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>
[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id='-1/htmlTest/' starting whole content<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>
[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>
[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>
[gingaplayer::Player] DEBUG: Set property begin: name=visible<br>[gingaplayer::Player] DEBUG: Set property end: name=visible, result=1<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event 'boton2_1' for '-1/htmlTest/boton2/dBoton2'<br>
[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event 'boton2_1' for '-1/htmlTest/boton2/dBoton2' START<br>[gingaplayer::Device] Create player: type=image, schema=file, body=/home/gusam/workspace/Test2.1.0/2.1.0/html/resources/boton play.png, mime=<br>
[gingaplayer::player] DEBUG: Initialize<br>[gingaplayer::Player] DEBUG: Set property begin: name=src<br>[gingaplayer::Player] DEBUG: Set property end: name=src, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=type<br>
[gingaplayer::Player] DEBUG: Set property end: name=type, result=1<br>[ncl30-presenter::FormatterRegion] DEBUG: bounds: x=50, y=541, w=25, h=25, z=2<br>[gingaplayer::Player] DEBUG: Set property begin: name=bounds<br>[gingaplayer::Player] DEBUG: Set property end: name=bounds, result=1<br>
[gingaplayer::Player] DEBUG: Set property begin: name=zIndex<br>[gingaplayer::Player] DEBUG: Set property end: name=zIndex, result=1<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton2/dBoton2)<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton2/dBoton2) locked<br>
[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>
[gingaplayer::player] DEBUG: play<br>[gingaplayer::player] DEBUG: Can play begin<br>[gingaplayer::player] DEBUG: Can play: result=1<br>[gingaplayer::GraphicPlayer] DEBUG: Start play<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(50,541), size=(25,25)<br>
[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(50,541), size=(25,25)<br>[gingaplayer::player] DEBUG: Apply changes<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (50,541,25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (50,541,25,25)<br>
[gingaplayer::GraphicPlayer] DEBUG: apply zIndex, value=2<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>[gingaplayer::GraphicProperties] DEBUG: apply visible, value=1<br>[gingaplayer::GraphicProperties] DEBUG: apply opacity, value=1,000000<br>
[gingaplayer::GraphicPlayer] DEBUG: Begin refresh<br>[gingaplayer::ImagePlayer] DEBUG: Draw image<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>
[gingaplayer::Manager] DEBUG: Reserve keys: listeners=3, id=0x988eae0, size=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: start, event: 0x9890148<br>
[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: 'boton2_1' transition '0'<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentFocus, value=1<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentKeyMaster, value=<br>
[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>
[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id='-1/htmlTest/' transition='0'<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>
[gingaplayer::Player] DEBUG: Set property begin: name=visible<br>[gingaplayer::Player] DEBUG: Set property end: name=visible, result=1<br>[canvas::Canvas] DEBUG: Flush: toBlit=3, regions=1<br>[canvas::Canvas] DEBUG: Surface to blit: 0x9897e30, zIndex=1<br>
[canvas::Canvas] DEBUG: Surface to blit: 0x988f378, zIndex=2<br>[canvas::Canvas] DEBUG: Surface to blit: 0x988c608, zIndex=1<br>[canvas::System] DEBUG: Dispatch key: key=95, isUp=0<br>[canvas::System] DEBUG: Dispatch notify: type=0<br>
[gingaplayer::Manager] DEBUG: Dispatch key code: listeners=4, key=95<br>[gingaplayer::Player] DEBUG: Set property begin: name=focusSelected<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=1<br>
[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=1<br>[canvas::Canvas] DEBUG: Flush: toBlit=2, regions=1<br>[canvas::Canvas] DEBUG: Surface to blit: 0x9897e30, zIndex=1<br>
[canvas::Canvas] DEBUG: Surface to blit: 0x988f378, zIndex=2<br>[gingaplayer::Player] DEBUG: Set property end: name=focusSelected, result=1<br>[ncl30-presenter::FormatterFocusManager] DEBUG: changeSettingState: number of settings objects: '0'<br>
[gingaplayer::Player::settings] DEBUG: set property, name=service.currentKeyMaster, value='boton'<br>[gingaplayer::TimeLineTimer] DEBUG: uptime: state=2, _elapsed=0<br>[ncl30-presenter::FormatterFocusManager] DEBUG: changeSettingState: number of settings objects: '0'<br>
[gingaplayer::Manager] DEBUG: Dispatch key, key=95, listener=0x999d0f8<br>[gingaplayer::TimeLineTimer] DEBUG: uptime: state=2, _elapsed=0<br>[ncl30-presenter::ExecutionObject] DEBUG: select(-1/htmlTest/boton/dBoton) starting event 'boton_0_ENTER'<br>
[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>
[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, even<br><br></div><div>Ahora bien si en los links reemplazmos por teclas green y red funciona algunas veces y otras no.<br>
</div><div>Haciendo variaciones en el link aveces funciona y a veces no.<br><br></div><div>La pregunta es, están mal los link?<br></div><div>Porque a veces funciona?<br></div><div>Cuando un link es simple y utiliza la misma tecla sobre diferentes componentes que estan siendo exhibidos, funciona?<br>
<br></div><div>En esta misma aplicacion se utilizo un link compuesto en la que entra en juego el focus, pero tiene el mismo comportamiento.<br><br></div><div>Bueno espero noticias y que quede solucionado si es un problema de <a href="http://GINGA.AR" target="_blank">GINGA.AR</a> o si yo soy el problema también que quede solucionado. <br>
<br></div><div>Muchas Gracias.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div>Analista Funcional - Poder Judicial de la Nación</div><div>Asistente - UNPA</div>
AdeS. Herrera Franco
</div></font></span></div></div></div></div>
</div><br><br clear="all"><div><br></div>-- <br><div>Analista Funcional - Poder Judicial de la Nación</div><div>Asistente - UNPA</div>AdeS. Herrera Franco
</div>