<div dir="ltr"><div>Hola Ignacio, el cambio de src de un media no está permitido.</div><div><br></div><div>Eso es lo que te indica el log de la consola.</div><div><br></div><div>[ncl30-presenter::FormatterPlayerAdapter] WARNING: property src not supported</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">El 5 de junio de 2013 17:09, Ignacio Giagante <span dir="ltr"><<a href="mailto:igiagante@gmail.com" target="_blank">igiagante@gmail.com</a>></span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Gente, estoy empezando a hacer una aplicacion y hace dos semanas que estoy parado con el mismo problema. </span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">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.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Cuando quiero ejecutar el evento, mi dice lo siquiente....</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> --------------------------| <span style="background-color:rgb(255,255,204)">Ginga</span>.ar 2.0.0 () |--------------------------</div><div>
izquierda</div><div>[ncl30-presenter::FormatterPlayerAdapter] WARNING: property src not supported</div><div>[ncl30-presenter::FormatterScheduler] WARNING: could not prepare player</div><div><br></div><div>No se que puede ser. Intente correr mi aplicación con <span style="background-color:rgb(255,255,204)">Ginga</span> 1.3, pero revento por todos lados. Leí que no soporta focusBorderTransparency, pero saque este atributos de los descriptores y lo mismo.</div>
<div><br></div><div><br></div><div>------------------------------ Código NCL -------------------------------------------------------------------------</div><div><br></div><div><div><?xml version="1.0" encoding="ISO-8859-1"?></div>
<div><!-- Generated by NCL Eclipse --></div><div><ncl id="test" xmlns="<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>"></div>
<div><span style="white-space:pre-wrap">        </span><head></div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><transitionBase></div><div><span style="white-space:pre-wrap">                        </span><transition id="transFade" type="fade"/></div>
<div><span style="white-space:pre-wrap">                        </span><transition id="transbarWipe" type="barWipe"/></div><div><span style="white-space:pre-wrap">                </span></transitionBase></div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span><regionBase></div><div><span style="white-space:pre-wrap">                        </span><region id="regionBackground" width="100%" height="100%" zIndex="1"></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><region id="regionImagen1" top="50" left="50" height="25%" width="25%"/></div>
<div><span style="white-space:pre-wrap">                        </span><region id="regionImagen2" top="50" left="270" height="25%" width="25%"/></div><div><span style="white-space:pre-wrap">                        </span><region id="regionImagen3" top="50" left="490" height="25%" width="25%"/></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><region id="regionTitulo" top="230" left="280" right="230"/></div><div>
<span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><region id="regionBGTexto" top="350" left="50" bottom="25" right="50"></div>
<div><span style="white-space:pre-wrap">                                </span><region id="regionTexto" top="15" left="25" /></div><div><span style="white-space:pre-wrap">                        </span></region></div><div><span style="white-space:pre-wrap">                        </span><region height="100%" id="videoReg" left="0%" top="0%" width="100%" zIndex="1"/></div>
<div><span style="white-space:pre-wrap">                        </span><region id="regionLua" height="100%" width="100%" /></div><div><span style="white-space:pre-wrap">                        </span></region></div><div>
<span style="white-space:pre-wrap">                </span></regionBase></div>
<div><br></div><div><span style="white-space:pre-wrap">                </span><descriptorBase></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descBackground" region="regionBackground"/></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descImagen1" region="regionImagen1" </div><div><span style="white-space:pre-wrap">                                </span>focusIndex="1" </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderWidth="5" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderColor="silver" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency="30%" </div>
<div><span style="white-space:pre-wrap">                                </span>moveLeft="3"</div><div><span style="white-space:pre-wrap">                                </span>moveRight="2"/></div><div><span style="white-space:pre-wrap">                        </span></div>
<div>
<span style="white-space:pre-wrap">                        </span><descriptor id="descImagen2" region="regionImagen2"</div><div><span style="white-space:pre-wrap">                        </span> focusIndex="2" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderWidth="5" </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderColor="silver" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency="30%" </div><div><span style="white-space:pre-wrap">                                </span>moveLeft="1"</div>
<div><span style="white-space:pre-wrap">                                </span>moveRight="3"/></div><div><span style="white-space:pre-wrap">                                </span></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descImagen3" region="regionImagen3"</div>
<div><span style="white-space:pre-wrap">                        </span> focusIndex="3" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderWidth="5" </div><div><span style="white-space:pre-wrap">                                </span>focusBorderColor="silver" </div>
<div><span style="white-space:pre-wrap">                                </span>focusBorderTransparency="30%" </div><div><span style="white-space:pre-wrap">                                </span>moveLeft="2"</div><div><span style="white-space:pre-wrap">                                </span>moveRight="1"/></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descBGTexto" region="regionBGTexto"/></div><div><span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span><descriptor id="descTitulo" region="regionTitulo" </div><div><span style="white-space:pre-wrap">                        </span>transIn="transbarWipe" transOut="transFade" explicitDur="5s"></div>
<div><span style="white-space:pre-wrap">                                </span><descriptorParam name="fontColor" value="silver"/></div><div><span style="white-space:pre-wrap">                                </span><descriptorParam name="fontSize" value="60"/></div>
<div><span style="white-space:pre-wrap">                        </span></descriptor></div><div><span style="white-space:pre-wrap">                                </span></div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descTexto" region="regionTexto"></div>
<div><span style="white-space:pre-wrap">                                </span><descriptorParam name="fontColor" value="navy"/></div><div><span style="white-space:pre-wrap">                                </span><descriptorParam name="fontSize" value="30"/></div>
<div><span style="white-space:pre-wrap">                                </span><descriptorParam name="fontFamily" value="Tiresias"/></div><div><span style="white-space:pre-wrap">                        </span></descriptor></div><div><span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span><descriptor id="videoDesc" region="videoReg"/></div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><descriptor id="descLua" region="regionLua" /></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                </span></descriptorBase></div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><connectorBase></div>
<div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span><causalConnector id="onEndAttributionStopSetStart"></div><div><span style="white-space:pre-wrap">                                </span><connectorParam name="var"/></div>
<div><span style="white-space:pre-wrap">                                </span><simpleCondition role="onEndAttribution"/></div><div><span style="white-space:pre-wrap">                                </span><compoundAction operator="seq"></div><div>
<span style="white-space:pre-wrap">                                        </span><simpleAction role="stop"/></div><div><span style="white-space:pre-wrap">                                        </span><simpleAction role="set" value="$var"/></div><div>
<span style="white-space:pre-wrap">                                        </span><simpleAction role="start"/></div><div><span style="white-space:pre-wrap">                                </span></compoundAction></div><div><span style="white-space:pre-wrap">                        </span></causalConnector></div>
<div><br></div><div><span style="white-space:pre-wrap">                </span></connectorBase></div><div><br></div><div><span style="white-space:pre-wrap">        </span></head></div><div><br></div><div><span style="white-space:pre-wrap">        </span><body></div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><port id="pLua" component="lua"/></div><div><span style="white-space:pre-wrap">                </span><port id="pBackground" component="background"/></div>
<div><span style="white-space:pre-wrap">                </span><port id="pBGTexto" component="bgTexto"/></div><div><span style="white-space:pre-wrap">                </span><port id="pTexto1" component="texto1"/></div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><port id="pTitulo" component="titulo"/></div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span><port id="pImagen1" component="imagen1"/> </div><div><span style="white-space:pre-wrap">                </span><port id="pImagen2" component="imagen2"/></div>
<div><span style="white-space:pre-wrap">                </span><port id="pImagen3" component="imagen3"/></div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><media id="background" src="../media/background2.jpg" descriptor="descBackground"/></div>
<div><span style="white-space:pre-wrap">                </span><media id="titulo" src="../media/fito.txt" descriptor="descTitulo"/></div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><media id="bgTexto" src="../media/bgPaper.jpg" descriptor="descBGTexto" /></div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><media id="texto1" src="../media/texto1.txt" descriptor="descTexto"></div><div><span style="white-space:pre-wrap">                        </span><property name="src"/></div>
<div><span style="white-space:pre-wrap">                </span></media></div><div><br></div><div><span style="white-space:pre-wrap">                </span><media id="imagen1" src="../media/ortiga.jpg" descriptor="descImagen1"/></div>
<div><span style="white-space:pre-wrap">                </span><media id="imagen2" src="../media/melisa.jpg" descriptor="descImagen2"/></div><div><span style="white-space:pre-wrap">                </span><media id="imagen3" src="../media/regaliz.jpg" descriptor="descImagen3"/></div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span><media id="video" src="../media/oficina.mp4" descriptor="videoDesc"></div><div><span style="white-space:pre-wrap">                        </span><property name="bounds"/></div>
<div><span style="white-space:pre-wrap">                </span></media></div><div><br></div><div><span style="white-space:pre-wrap">                </span><media id="lua" descriptor="descLua" src="test.lua"> </div>
<div><span style="white-space:pre-wrap">         </span><property name="tecla"/></div><div><span style="white-space:pre-wrap">                </span> <span style="white-space:pre-wrap">        </span><property name="srcNuevo"/></div>
<div><span style="white-space:pre-wrap">                </span> </media></div><div><br></div><div><span style="white-space:pre-wrap">                </span><link xconnector="onKeySelectionSet"></div><div><span style="white-space:pre-wrap">                        </span><bind component="lua" role="onSelection"></div>
<div><span style="white-space:pre-wrap">                                </span><bindParam name="keyCode" value="CURSOR_LEFT"/></div><div><span style="white-space:pre-wrap">                        </span></bind></div><div><span style="white-space:pre-wrap">                        </span><bind component="lua" role="set" interface="tecla" ></div>
<div><span style="white-space:pre-wrap">                                </span><bindParam name="var" value="left" /></div><div><span style="white-space:pre-wrap">                        </span></bind></div><div><span style="white-space:pre-wrap">                </span></link></div>
<div><br></div><div><span style="white-space:pre-wrap">        </span> <!-- links para las devoluciones de lua --></div><div><span style="white-space:pre-wrap">                </span><link xconnector="onEndAttributionStopSetStart"></div>
<div><span style="white-space:pre-wrap">                        </span><bind role="onEndAttribution" component="lua" interface="srcNuevo"/></div><div><span style="white-space:pre-wrap">                        </span><bind role="stop" component="texto1"/></div>
<div><span style="white-space:pre-wrap">                        </span><bind role="getValue" component="lua" interface="srcNuevo"/></div><div><span style="white-space:pre-wrap">                        </span><linkParam name="var" value="$getValue"/><span style="white-space:pre-wrap">                        </span></div>
<div><span style="white-space:pre-wrap">                        </span><bind role="set" component="texto1" interface="src"/></div><div><span style="white-space:pre-wrap">                        </span><bind role="start" component="texto1"/></div>
<div><span style="white-space:pre-wrap">                </span></link><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span> </div><div><span style="white-space:pre-wrap">        </span></body></div>
<div></ncl></div></div><div><br></div><div>---------------------------------Código Lua------------------------------------------------</div><div><br></div><div><div>function handler(evt)</div><div><br></div><div><span style="white-space:pre-wrap">        </span>local evento = {</div>
<div><span style="white-space:pre-wrap">                </span>class = 'ncl',</div><div><span style="white-space:pre-wrap">                </span>type = 'attribution',</div><div><span style="white-space:pre-wrap">                </span>name = 'srcNuevo',</div>
<div><span style="white-space:pre-wrap">                </span>value='../media/texto2.txt'}</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">        </span>if evt.value == "left" then</div>
<div><span style="white-space:pre-wrap">                </span>print("izquierda")</div><div><span style="white-space:pre-wrap">                </span>evento.action = "start"</div><div><span style="white-space:pre-wrap">                </span>event.post(evento)</div>
<div><span style="white-space:pre-wrap">                </span>evento.action = "stop"</div><div><span style="white-space:pre-wrap">                </span>event.post(evento)</div><div><span style="white-space:pre-wrap">        </span>end<span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap">        </span></div><div><br></div><div>end--end function</div><div><br></div><div>event.register(handler)</div></div></div></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Saludos Leo<br></div>
</div>