[Ginga-argentina] Ginga-argentina Digest, Vol 45, Issue 7

Ignacio Giagante igiagante at gmail.com
Thu Jun 6 16:28:20 CEST 2013


Leo estoy usando la version 2.0. El código completo está en mail que tiene
como subject "problema con el cambio de source". Quise probar mi código con
la 1.3 y revento todo. Supuestamente deberíamos ir para adelante y usar la
2.0, no la 1.3. Pero bueno, hace bastante que estoy parado con el tema del
manejo de eventos entre NCL y Lua.




2013/6/6 <ginga-argentina-request at lists.ourproject.org>

> Send Ginga-argentina mailing list submissions to
>         ginga-argentina at lists.ourproject.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
> or, via email, send a message with subject or body 'help' to
>         ginga-argentina-request at lists.ourproject.org
>
> You can reach the person managing the list at
>         ginga-argentina-owner at lists.ourproject.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ginga-argentina digest..."
>
>
> Today's Topics:
>
>    1. Re: rol "onSelection" (Leo)
>    2. Re: Ginga-argentina Digest, Vol 45, Issue 6 (Ignacio Giagante)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 6 Jun 2013 09:47:07 -0300
> From: Leo <lisasmendi at lifia.info.unlp.edu.ar>
> Subject: Re: [Ginga-argentina] rol "onSelection"
> To: Lista de la comunidad argentina de Ginga
>         <ginga-argentina at lists.ourproject.org>
> Message-ID:
>         <
> CAN7x8Ep9bHZi8L4xqjeeB3Bqu+Dap0oXhj9MBjzkDNJ3qWSiDg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hola Ignacio, podr?as decirme que versi?n de ginga est?s corriendo?
> No est? mal tu entendimiento sobre el uso del connector. Es ese el ?nico
> connector que est?s usando en el c?digo?
>
>
> El 5 de junio de 2013 17:09, Ignacio Giagante <igiagante at gmail.com
> >escribi?:
>
> > Gente, el rol "onSelection" no me queda muy claro y necesitar?a que
> > alguien me de una mano. Supuestamente teniendo el siguiente c?digo...
> >
> > <causalConnector id="onKeySelectionStopSetStart">
> > <connectorParam name="keyCode"/>
> >  <connectorParam name="var"/>
> > <simpleCondition key="$keyCode" role="onSelection"/>
> >  <compoundAction operator="seq">
> > <simpleAction max="unbounded" qualifier="seq" role="stop"/>
> >  <simpleAction max="unbounded" qualifier="seq" role="set" value="$var"/>
> > <simpleAction max="unbounded" qualifier="seq" role="start"/>
> >  </compoundAction>
> > </causalConnector>
> >
> >
> > <link xconnector="onEndAttributionStopSetStart">
> > <bind role="onEndAttribution" component="lua" interface="srcNuevo"/>
> >  <bind role="stop" component="texto1"/>
> > <bind role="getValue" component="lua" interface="srcNuevo"/>
> >  <linkParam name="var" value="$getValue"/>
> > <bind role="set" component="texto1" interface="src"/>
> >  <bind role="start" component="texto1"/>
> > </link>
> >
> > <link xconnector="onKeySelectionStopSetStart"> <bind component="imagen2"
> > role="onSelection"> <bindParam name="keyCode" value="CURSOR_LEFT"/>
> </bind>
> > <bind component="imagen1" role="stop"/> <bind component="imagen2"
> > role="stop"/> <bind component="imagen3" role="stop"/> <bind
> > component="video" interface="bounds" role="set"> <bindParam name="var"
> > value="38.8%, 5%, 54.8%, 55.2%"/> </bind> <bind component="video"
> > role="start"/> </link>
> >
> > me dice que cuando el media imagen2 este seleccionado, se paran las
> > imagenes, se setea los bounds del video y luego arranca el video. Pero,
> > cuando se inicia la aplicaci?n el foco esta sobre la imagen1 y si apreto
> la
> > flecha izquierda, se paran las imagenes y arranca el video.
> >
> > Entonces, hay algo de este rol que no lo estoy entiendo y necesitar?a que
> > alguien me de una mano por favor.
> >
> > Saludos,
> >
> > Ignacio
> >
> > __________________________________________Lista de correo
> > Ginga-argentina at lists.ourproject.org
> > cambiar suscripci&#243;n:
> > https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
> > Sitio web: http://comunidad.ginga.org.ar
> > Wiki: http://wiki.ginga.org.ar
> >
> >
>
>
> --
> Saludos Leo
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> https://lists.ourproject.org/pipermail/ginga-argentina/attachments/20130606/387de03c/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Thu, 6 Jun 2013 11:21:04 -0300
> From: Ignacio Giagante <igiagante at gmail.com>
> Subject: Re: [Ginga-argentina] Ginga-argentina Digest, Vol 45, Issue 6
> To: ginga-argentina <ginga-argentina at lists.ourproject.org>
> Message-ID:
>         <CAA0puXeXWL1TAFxS9jopPrF0cYkLYLj5c1adQM=
> GZtAxt8p5hA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Leo, estoy de acuerdo con lo que dice el log. Lo que necesito es que me den
> una mano de como hacer que se produzcan dos eventos con NCL.
>
> Esto es lo que quiero hacer: cuando mueva el foco de una imagen a otra, se
> cambie el texto. Pens? en captar un evento desde Lua enviado por NCL y que
> este le env?e algo a NCL para decirle para este Texto y que arranque el
> otro.
>
> Con respecto a lo que dice el log, es increible. El ejemplo lo saque de las
> filminas del Lifia.
>
> Deber?a volver a la versi?n 1.3 o seguir con la 2.0?
>
> Saludos y muchas gracias,
>
> Ignacio
>
>
> On Thu, Jun 6, 2013 at 7:00 AM, <
> ginga-argentina-request at lists.ourproject.org> wrote:
>
> > Send Ginga-argentina mailing list submissions to
> >         ginga-argentina at lists.ourproject.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >
> > https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
> > or, via email, send a message with subject or body 'help' to
> >         ginga-argentina-request at lists.ourproject.org
> >
> > You can reach the person managing the list at
> >         ginga-argentina-owner at lists.ourproject.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Ginga-argentina digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Re: Problemas con el cambio de source (Leo)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 5 Jun 2013 21:19:49 -0300
> > From: Leo <lisasmendi at lifia.info.unlp.edu.ar>
> > Subject: Re: [Ginga-argentina] Problemas con el cambio de source
> > To: Lista de la comunidad argentina de Ginga
> >         <ginga-argentina at lists.ourproject.org>
> > Message-ID:
> >         <CAN7x8EoM3oh9GKV2tqsj-=
> > vY3tExqBrLLyqf7Yvd73mkHk_LiA at mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hola Ignacio, el cambio de src de un media no est? permitido.
> >
> > Eso es lo que te indica el log de la consola.
> >
> > [ncl30-presenter::FormatterPlayerAdapter] WARNING: property src not
> > supported
> >
> >
> >
> >
> > El 5 de junio de 2013 17:09, Ignacio Giagante <igiagante at gmail.com
> > >escribi?:
> >
> > > Gente, estoy empezando a hacer una aplicacion y hace dos semanas que
> > estoy
> > > parado con el mismo problema.
> > >
> > > Lo que intento hacer es que al apretar la flecha izquierda se genere un
> > > evento de onEndAttribution para cambiar la fuente de un texto, es
> decir,
> > > quiero cambiar el texto viejo por uno nuevo.
> > >
> > > Cuando quiero ejecutar el evento, mi dice lo siquiente....
> > >
> > >    --------------------------| Ginga.ar 2.0.0 ()
> > > |--------------------------
> > > izquierda
> > > [ncl30-presenter::FormatterPlayerAdapter] WARNING: property src not
> > > supported
> > > [ncl30-presenter::FormatterScheduler] WARNING: could not prepare player
> > >
> > > No se que puede ser. Intente correr mi aplicaci?n con Ginga 1.3, pero
> > > revento por todos lados. Le? que no soporta focusBorderTransparency,
> pero
> > > saque este atributos de los descriptores y lo mismo.
> > >
> > >
> > > ------------------------------ C?digo NCL
> > >
> -------------------------------------------------------------------------
> > >
> > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > <!-- Generated by NCL Eclipse -->
> > > <ncl id="test" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
> > >  <head>
> > >  <transitionBase>
> > > <transition id="transFade" type="fade"/>
> > >  <transition id="transbarWipe" type="barWipe"/>
> > > </transitionBase>
> > >  <regionBase>
> > > <region id="regionBackground" width="100%" height="100%" zIndex="1">
> > >  <region id="regionImagen1" top="50" left="50" height="25%"
> width="25%"/>
> > >  <region id="regionImagen2" top="50" left="270" height="25%"
> > width="25%"/>
> > > <region id="regionImagen3" top="50" left="490" height="25%"
> width="25%"/>
> > >  <region id="regionTitulo" top="230" left="280" right="230"/>
> > >  <region id="regionBGTexto" top="350" left="50" bottom="25" right="50">
> > >  <region id="regionTexto" top="15" left="25" />
> > > </region>
> > > <region height="100%" id="videoReg" left="0%" top="0%" width="100%"
> > > zIndex="1"/>
> > >  <region id="regionLua" height="100%" width="100%" />
> > > </region>
> > > </regionBase>
> > >
> > > <descriptorBase>
> > > <descriptor id="descBackground" region="regionBackground"/>
> > >  <descriptor id="descImagen1" region="regionImagen1"
> > > focusIndex="1"
> > >  focusBorderWidth="5"
> > > focusBorderColor="silver"
> > > focusBorderTransparency="30%"
> > >  moveLeft="3"
> > > moveRight="2"/>
> > >  <descriptor id="descImagen2" region="regionImagen2"
> > >     focusIndex="2"
> > > focusBorderWidth="5"
> > >  focusBorderColor="silver"
> > > focusBorderTransparency="30%"
> > > moveLeft="1"
> > >  moveRight="3"/>
> > >  <descriptor id="descImagen3" region="regionImagen3"
> > >      focusIndex="3"
> > > focusBorderWidth="5"
> > > focusBorderColor="silver"
> > >  focusBorderTransparency="30%"
> > > moveLeft="2"
> > > moveRight="1"/>
> > >  <descriptor id="descBGTexto" region="regionBGTexto"/>
> > >  <descriptor id="descTitulo" region="regionTitulo"
> > > transIn="transbarWipe" transOut="transFade" explicitDur="5s">
> > >  <descriptorParam name="fontColor" value="silver"/>
> > > <descriptorParam name="fontSize" value="60"/>
> > >  </descriptor>
> > >  <descriptor id="descTexto" region="regionTexto">
> > >  <descriptorParam name="fontColor" value="navy"/>
> > > <descriptorParam name="fontSize" value="30"/>
> > >  <descriptorParam name="fontFamily" value="Tiresias"/>
> > > </descriptor>
> > >  <descriptor id="videoDesc" region="videoReg"/>
> > >  <descriptor id="descLua" region="regionLua" />
> > >  </descriptorBase>
> > >  <connectorBase>
> > >  <causalConnector id="onEndAttributionStopSetStart">
> > > <connectorParam name="var"/>
> > >  <simpleCondition role="onEndAttribution"/>
> > > <compoundAction operator="seq">
> > >  <simpleAction role="stop"/>
> > > <simpleAction role="set" value="$var"/>
> > >  <simpleAction role="start"/>
> > > </compoundAction>
> > > </causalConnector>
> > >
> > > </connectorBase>
> > >
> > > </head>
> > >
> > > <body>
> > >  <port id="pLua" component="lua"/>
> > > <port id="pBackground" component="background"/>
> > >  <port id="pBGTexto" component="bgTexto"/>
> > > <port id="pTexto1" component="texto1"/>
> > >  <port id="pTitulo" component="titulo"/>
> > >  <port id="pImagen1" component="imagen1"/>
> > > <port id="pImagen2" component="imagen2"/>
> > >  <port id="pImagen3" component="imagen3"/>
> > >  <media id="background" src="../media/background2.jpg"
> > > descriptor="descBackground"/>
> > >  <media id="titulo" src="../media/fito.txt" descriptor="descTitulo"/>
> > >  <media id="bgTexto" src="../media/bgPaper.jpg"
> descriptor="descBGTexto"
> > > />
> > >  <media id="texto1" src="../media/texto1.txt" descriptor="descTexto">
> > > <property name="src"/>
> > >  </media>
> > >
> > > <media id="imagen1" src="../media/ortiga.jpg"
> descriptor="descImagen1"/>
> > >  <media id="imagen2" src="../media/melisa.jpg"
> descriptor="descImagen2"/>
> > > <media id="imagen3" src="../media/regaliz.jpg"
> descriptor="descImagen3"/>
> > >  <media id="video" src="../media/oficina.mp4" descriptor="videoDesc">
> > > <property name="bounds"/>
> > >  </media>
> > >
> > > <media id="lua" descriptor="descLua" src="test.lua">
> > >  <property name="tecla"/>
> > >   <property name="srcNuevo"/>
> > >   </media>
> > >
> > > <link xconnector="onKeySelectionSet">
> > > <bind component="lua" role="onSelection">
> > >  <bindParam name="keyCode" value="CURSOR_LEFT"/>
> > > </bind>
> > > <bind component="lua" role="set" interface="tecla" >
> > >  <bindParam name="var" value="left" />
> > > </bind>
> > > </link>
> > >
> > >     <!-- links para las devoluciones de lua -->
> > > <link xconnector="onEndAttributionStopSetStart">
> > >  <bind role="onEndAttribution" component="lua" interface="srcNuevo"/>
> > > <bind role="stop" component="texto1"/>
> > >  <bind role="getValue" component="lua" interface="srcNuevo"/>
> > > <linkParam name="var" value="$getValue"/>
> > >  <bind role="set" component="texto1" interface="src"/>
> > > <bind role="start" component="texto1"/>
> > >  </link>
> > >
> > > </body>
> > > </ncl>
> > >
> > > ---------------------------------C?digo
> > > Lua------------------------------------------------
> > >
> > > function handler(evt)
> > >
> > > local evento = {
> > >  class = 'ncl',
> > > type = 'attribution',
> > > name = 'srcNuevo',
> > >  value='../media/texto2.txt'}
> > >  if evt.value == "left" then
> > >  print("izquierda")
> > > evento.action = "start"
> > > event.post(evento)
> > >  evento.action = "stop"
> > > event.post(evento)
> > > end
> > >
> > > end--end function
> > >
> > > event.register(handler)
> > >
> > > __________________________________________Lista de correo
> > > Ginga-argentina at lists.ourproject.org
> > > cambiar suscripci&#243;n:
> > > https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
> > > Sitio web: http://comunidad.ginga.org.ar
> > > Wiki: http://wiki.ginga.org.ar
> > >
> > >
> >
> >
> > --
> > Saludos Leo
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> https://lists.ourproject.org/pipermail/ginga-argentina/attachments/20130605/dc883a28/attachment-0001.htm
> >
> > ------------------------------
> >
> > _______________________________________________
> > Ginga-argentina mailing list
> > Ginga-argentina at lists.ourproject.org
> > https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
> >
> >
> > End of Ginga-argentina Digest, Vol 45, Issue 6
> > **********************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> https://lists.ourproject.org/pipermail/ginga-argentina/attachments/20130606/acb55cd6/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Ginga-argentina mailing list
> Ginga-argentina at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
>
>
> End of Ginga-argentina Digest, Vol 45, Issue 7
> **********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/ginga-argentina/attachments/20130606/b7df0b34/attachment-0001.htm 


More information about the Ginga-argentina mailing list