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