Ola a todos!
Bom sou Vinícius e estou desenvolvendo um projeto fim de curso sobre a Interatividade da TV Digital juntamente com mais 5 menbros do grupo, estamos demostrando por meio do composer como funcionaria a interatividade.
Porém como todo "santo" projeto, estamos dando de frente com problemas, eu estava desenvolvendo o documento final me baseando no exemplo12 adicionando novas opções de acordo com o que iremos mostrar. Os problemas são os seguintes:
1 - Os vídeos que coloquei no documento não rodam no composer e são vídeos no formato suportado (mpg), apenas imagens, textos e músicas.
2 - Quando exportei o documento para tentar roda-lo pelo Ginga ele não funcionou ele exportou, mas o ginga informa erros. segue abaixo:
Ginga-NCL Emulator v1.1.1
Copyright PUC-Rio (Laboratorio TeleMidia), 1989-2007
[ERR] br.pucrio.telemidia.ginga.ncl.adapters.img.ImagePlayerAdapter: Could not f
ind IMAGE!
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at br.pucrio.telemidia.ginga.ncl.model.presentation.FormatterRegion.setR
egionVisibility(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.model.presentation.FormatterRegion.show
Content(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.model.presentation.FormatterLayout.show
Object(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.eventStateChanged(Un
known Source)
at br.pucrio.telemidia.ginga.ncl.model.event.FormatterEvent.changeState(
Unknown Source)
at br.pucrio.telemidia.ginga.ncl.model.event.FormatterEvent.start(Unknow
n Source)
at br.pucrio.telemidia.ginga.ncl.model.components.ExecutionObject.start(
Unknown Source)
at br.pucrio.telemidia.ginga.ncl.adapters.DefaultFormatterPlayerAdapter.
start(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.runAction(Unknown So
urce)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.startEvent(Unknown S
ource)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.startDocument(Unknow
n Source)
at br.pucrio.telemidia.ginga.ncl.Formatter.startDocument(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.gui.GingaPlayerWindow.startPresentation
(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.gui.GingaPlayerWindow.actionPerformed(U
nknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.io.IOException: File Not Found
Fobs4JMF - Native shared library found
OpenError: File open error
java.io.IOException: File Not Found
[ERR] Unable to handle content of "file:C:/Documents and Settings/Vini/Desktop/P
rojeto Final - Arquivo Final/../../../../../../Desktop/Projeto Final - Arquivo F
inal/VÝdeos/videodomenu.mpg".Error instantiating class: com.sun.media.protocol.f
ile.DataSource : java.io.IOException: File Not Found
Exception in thread "Thread-3" java.lang.NullPointerException
at br.pucrio.telemidia.ginga.core.player.av.JMFPlayer.<init>(Unknown Sou
rce)
at br.pucrio.telemidia.ginga.ncl.adapters.av.jmf.JmfVideoPlayerAdapter.c
reatePlayer(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.adapters.DefaultFormatterPlayerAdapter.
prepare(Unknown Source)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.runAction(Unknown So
urce)
at br.pucrio.telemidia.ginga.ncl.FormatterScheduler.runAction(Unknown So
urce)
at br.pucrio.telemidia.ginga.ncl.model.link.LinkSimpleAction.run(Unknown
Source)
at br.pucrio.telemidia.ginga.ncl.model.link.LinkRepeatAction.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Vou deixar também o código da configuração que eu fiz até o momento:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ncl id="exemplo12" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head>
<regionBase>
<region id="rgTV" width="1080" height="768">
<region id="rgMenu" width="1024" height="768" zIndex="1"/>
<region id="rgVideo1" left="195" top="152" width="640" height="358" zIndex="3"/>
<region id="rgopcao1-1" left="200" top="160" width="310" height="125" zIndex="2"/>
<region id="rgopcao1-2" left="520" top="160" width="310" height="125" zIndex="2"/>
<region id="rgopcao1-3" left="200" top="310" width="310" height="125" zIndex="2"/>
<region id="rgopcao1-4" left="520" top="310" width="310" height="125" zIndex="2"/>
<region id="rgOpcao1" top="75" width="200" height="50" zIndex="3"/>
<region id="rgOpcao2" left="400" top="75" width="200" height="50" zIndex="3"/>
<region id="rgOpcao3" left="800" top="75" width="200" height="50" zIndex="3"/>
<region id="rgOpcao4" top="600" width="200" height="50" zIndex="3"/>
<region id="rgOpcao5" left="400" top="600" width="200" height="50" zIndex="3"/>
<region id="rgOpcao6" left="800" top="600" width="200" height="50" zIndex="3"/>
<region id="rgResultado" left="150" top="100" width="200" height="100" zIndex="3"/>
</region>
</regionBase>
<descriptorBase>
<descriptor id="dResultado" region="rgResultado"/>
<descriptor id="dOpcao1" region="rgOpcao1" focusIndex="1" moveDown="2" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao2" region="rgOpcao2" focusIndex="2" moveDown="3" moveUp="1" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao3" region="rgOpcao3" focusIndex="3" moveDown="4" moveUp="2" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao4" region="rgOpcao4" focusIndex="4" moveDown="5" moveUp="3" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao5" region="rgOpcao5" focusIndex="5" moveDown="6" moveUp="4" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao6" region="rgOpcao6" focusIndex="6" moveUp="5" focusBorderWidth="-2" focusBorderColor="blue"/>
<descriptor id="dOpcao1-1" region="rgopcao1-1" focusIndex="1-1" moveDown="1-3" moveRight="1-2" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dOpcao1-2" region="rgopcao1-2" focusIndex="1-2" moveDown="1-4" moveLeft="1-1" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dOpcao1-3" region="rgopcao1-3" focusIndex="1-3" moveUp="1-1" moveRight="1-4" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dOpcao1-4" region="rgopcao1-4" focusIndex="1-4" moveUp="1-2" moveLeft="1-3" focusBorderWidth="-2" focusBorderColor="red"/>
<descriptor id="dMenu" region="rgMenu"/>
<descriptor id="dVideo1" region="rgVideo1"/>
</descriptorBase>
<ruleBase>
<rule id="r1" var="opcao" comparator="eq" value="1"/>
<rule id="r2" var="opcao" comparator="eq" value="2"/>
<rule id="r3" var="opcao" comparator="eq" value="3"/>
<rule id="r4" var="opcao" comparator="eq" value="4"/>
<rule id="r5" var="opcao" comparator="eq" value="5"/>
<rule id="r6" var="opcao" comparator="eq" value="6"/>
<rule id="r1-1" var="opcao" comparator="eq" value="1-1"/>
<rule id="r1-2" var="opcao" comparator="eq" value="1-2"/>
<rule id="r1-3" var="opcao" comparator="eq" value="1-3"/>
<rule id="r1-4" var="opcao" comparator="eq" value="1-4"/>
</ruleBase>
<connectorBase>
<causalConnector id="onBegin1StartN">
<simpleCondition role="onBegin"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector>
<causalConnector id="onSelection1SetNStopNStartN">
<connectorParam name="var"/>
<simpleCondition role="onSelection"/>
<compoundAction operator="seq">
<simpleAction role="set" value="$var" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="onKeySelectionStartNStopN">
<connectorParam name="keyCode"/>
<simpleCondition role="onSelection" key="$keyCode"/>
<compoundAction operator="seq">
<simpleAction role="start" max="unbounded" qualifier="par"/>
<simpleAction role="stop" max="unbounded" qualifier="par"/>
</compoundAction>
</causalConnector>
<causalConnector id="composerOnBeginStartDelay">
<connectorParam value="xs:string" name="delay"/>
<simpleCondition role="onBegin"/>
<simpleAction delay="$delay" role="start"/>
</causalConnector>
<causalConnector id="composerOnEndStopWithDelay">
<connectorParam value="xs:string" name="delay"/>
<simpleCondition role="onEnd"/>
<simpleAction delay="$delay" role="stop"/>
</causalConnector>
</connectorBase>
</head>
<body>
<media type="application/x-ginga-settings" id="nodeSettings">
<property name="opcao"/>
</media>
<media id="video1" src="Músicas/Bone Thugs N Harmony ft Akon - I Tried.mp3" descriptor="dVideo1"/>
<media id="opcao1" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção1.jpg" descriptor="dOpcao1"/>
<media id="opcao2" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção2.jpg" descriptor="dOpcao2"/>
<media id="opcao3" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção3.jpg" descriptor="dOpcao3"/>
<media id="opcao4" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção4.jpg" descriptor="dOpcao4"/>
<media id="opcao5" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção5.jpg" descriptor="dOpcao5"/>
<media id="opcao6" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/opção6.jpg" descriptor="dOpcao6"/>
<switch id="switchOpcao3">
<bindRule rule="r1" constituent="selecao30"/>
<media id="selecao30" src="http:/Desktop/Projeto Final - Arquivo Final/Vídeos/4videodo2menu.mpg" descriptor="dOpcao1-4"/>
</switch>
<switch id="switchOpcao2">
<bindRule rule="r1" constituent="selecao20"/>
<media id="selecao20" src="http:/Desktop/Projeto Final - Arquivo Final/Vídeos/3videodo2menu.mpg" descriptor="dOpcao1-3"/>
</switch>
<switch id="switchOpcao1">
<bindRule rule="r1" constituent="selecao10"/>
<media id="selecao10" src="http:/Desktop/Projeto Final - Arquivo Final/Vídeos/2videodo2menu.mpg" descriptor="dOpcao1-2"/>
</switch>
<switch id="switchOpcao">
<bindRule rule="r1" constituent="selecao1"/>
<bindRule rule="r2" constituent="selecao2"/>
<bindRule rule="r3" constituent="selecao3"/>
<bindRule rule="r4" constituent="selecao4"/>
<bindRule rule="r5" constituent="selecao5"/>
<bindRule rule="r6" constituent="selecao6"/>
<media id="selecao1" src="http:/Desktop/Projeto Final - Arquivo Final/Vídeos/1videodo2menu.mpg" descriptor="dOpcao1-1"/>
<media id="selecao2" src="C:\Documents and Settings\Vini\Meus documentos\Vinícius\ETPC\Projeto Final\Jonatan ajuda\exemplo12\media/selecao2.html" descriptor="dResultado"/>
<media id="selecao3" src="C:\Documents and Settings\Vini\Meus documentos\Vinícius\ETPC\Projeto Final\Jonatan ajuda\exemplo12\media/selecao3.html" descriptor="dResultado"/>
<media id="selecao4" src="C:\Documents and Settings\Vini\Meus documentos\Vinícius\ETPC\Projeto Final\Jonatan ajuda\exemplo12\media/selecao4.html" descriptor="dResultado"/>
<media id="selecao5" src="C:\Documents and Settings\Vini\Meus documentos\Vinícius\ETPC\Projeto Final\Jonatan ajuda\exemplo12\media/selecao5.html" descriptor="dResultado"/>
<media id="selecao6" src="C:\Documents and Settings\Vini\Meus documentos\Vinícius\ETPC\Projeto Final\Jonatan ajuda\exemplo12\media/selecao6.html" descriptor="dResultado"/>
</switch>
<link id="Video1Start" xconnector="onBegin1StartN">
<bind component="video1" role="onBegin"/>
<bind component="opcao1" role="start"/>
<bind component="opcao2" role="start"/>
<bind component="opcao3" role="start"/>
<bind component="opcao4" role="start"/>
<bind component="opcao5" role="start"/>
<bind component="opcao6" role="start"/>
</link>
<link id="Selecao_OK1" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao1" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="switchOpcao1" role="start"/>
<bind component="switchOpcao2" role="start"/>
<bind component="switchOpcao3" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK2" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao2" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="2"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK3" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao3" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="3"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK4" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao4" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="4"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK5" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao5" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="5"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK6" xconnector="onSelection1SetNStopNStartN">
<bind component="opcao6" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="6"/>
</bind>
<bind component="switchOpcao" role="start"/>
<bind component="video1" role="stop"/>
<bind component="opcao1" role="stop"/>
<bind component="opcao2" role="stop"/>
<bind component="opcao3" role="stop"/>
<bind component="opcao4" role="stop"/>
<bind component="opcao5" role="stop"/>
<bind component="opcao6" role="stop"/>
</link>
<link id="Selecao_OK10" xconnector="onSelection1SetNStopNStartN">
<bind component="switchOpcao" role="onSelection"/>
<bind component="nodeSettings" interface="opcao" role="set">
<bindParam name="var" value="1"/>
</bind>
<bind component="switchOpcao" role="stop"/>
<bind component="switchOpcao1" role="stop"/>
<bind component="switchOpcao2" role="stop"/>
<bind component="switchOpcao3" role="stop"/>
<bind component="imagem" role="start"/>
</link>
<media descriptor="dMenu" src="http:/Desktop/Projeto Final - Arquivo Final/Imagens/Menu1.jpg" id="ImagemMenu">
<area end="999999.0s" begin="5.0s" id="Video1start"/> <--eu não utilizei essa Âncora!/>
</media>
<port component="ImagemMenu" id="port_exemplo12_ImagemMenu"/>
<link xconnector="onBegin1StartN" id="começodovideo1">
<bind role="onBegin" component="ImagemMenu"/>
<bind role="start" component="video1"/>
</link>
<media descriptor="dVideo1" src="Vídeos/videodomenu.mpg" id="imagem"/>
</body>
</ncl>
Aguardo resposta!
Grato desde já!
Autor: Vinícius sacramento
88 comentários
Pelo fato do arquivo não estar totalmente concluído, e ter opções que existem, mas não possuem funcionalidades pode estar atrapalhando? Grato desde Já!