Redimensionamento de vídeo

31 views
Skip to first unread message

Anderson Marques

unread,
Nov 9, 2010, 3:51:26 PM11/9/10
to dev...@googlegroups.com, xpt...@googlegroups.com, tvinte...@googlegroups.com
Olá,
Estou com o seguinte problema, tenho que redimensionar o vídeo da TV para uma área menor ao iniciar minha aplicação, através de um script lua. Alguma idéia ou sugestões de como posso fazer isso?
Desde já agradeço.

--------------------------------------------------------------
Master Student at Federal University of Pará
Center for Exact and Natural Sciences - CCEN
Academic master's degree in Computer Science
Researcher at Rede de Informática - ( http://www.redeinformatica.com.br )

Gilber Leal

unread,
Nov 9, 2010, 4:58:57 PM11/9/10
to Desenvolvimento para TV digital
Ola Anderson.
O arquivo Lua não trabalha com vídeos. Para redimensionar o vídeo,
antes de você iniciar a aplicação Lua, redimensione o vídeo no próprio
NCL.
Segue um código exemplo.
<connectorBase>
<causalConnector id="onKeySelectionTestSet">
<connectorParam name="keyCode"/>
<connectorParam name="varTest"/>
<connectorParam name="varSet"/>
<compoundCondition operator="and">
<simpleCondition role="onSelection" key="$keyCode"/>
<assessmentStatement comparator="eq">
<attributeAssessment attributeType="nodeProperty"
eventType="attribution" role="testProperty"/>
<valueAssessment value="$varTest"/>
</assessmentStatement>
</compoundCondition>
<simpleAction max="unbounded" qualifier="par" role="set"
value="$varSet"/>
</causalConnector>
</connectorBase>

O "verTest" verifica o tamanho atual do vide e o "varSet" passa um
novo parametro.

<!-- Redimensiona o video -->
<link xconnector=" onKeySelectionTestSet">
<bind role="onSelection" component="Video1">
<bindParam name="keyCode" value="INFO"/>
</bind>
<bind role="testProperty" component="Video1"
interface="isResized">
<bindParam name="varTest" value="false"/>
</bind>
<bind role="set" component="Video1" interface="isResized">
<bindParam name="varSet" value="true"/>
</bind>
<bind role="set" component="Video1" interface="bounds">
<bindParam name="varSet" value="55%, 26%, 40%, 40%"/>
</bind>
</link>

<link xconnector=" onKeySelectionTestSet">
<bind role="onSelection" component="Video1">
<bindParam name="keyCode" value="RED"/>
</bind>
<bind role="testProperty" component="Video1"
interface="isResized">
<bindParam name="varTest" value="true"/>
</bind>
<bind role="set" component="Video1" interface="isResized">
<bindParam name="varSet" value="false"/>
</bind>
<bind role="set" component="Video1" interface="bounds">
<bindParam name="varSet" value="0, 0, 250%, 250%"/>
</bind>
</link>

É importante que a mídia tenha a propriedade “bound” e seja dado um
value =”falce” .
<media id="Video1" src="media/video1.mpg" descriptor="DVideo1">
<property name="bounds"/>
<property name="isResized" value="false"/>
</media>


Espero ter ajudado.
Reply all
Reply to author
Forward
0 new messages