PDA

View Full Version : Touble with videoDisplay


stonyx
08-03-2006, 06:28 PM
I'm having trouble displaying 2 videos on the same videodisplay component

i'm using e4x to make a filter search trough a xml file, everything works great my problem is that some of the results have 2 or 3 videos and when i try to see a second video i get NO BITRATE MATCH

here is some of my code (won't compile)
...
<mx:DataGrid dataProvider="{xlc}" editable="false" width="170" id="datagrid" scroll="true" height="543" x="6" bottom="6" variableRowHeight="true" wordWrap="true">
<mx:columns>
<mx:DataGridColumn dataField="name"/>
</mx:columns>
</mx:DataGrid>

<mx:List id="lista" x="652" y="382" height="57" width="288" dataProvider="{datagrid.selectedItem.video}">

<mx:VideoDisplay autoPlay="false" id="videos" source="{lista.selectedItem.video.@src}"/>
<mx:Button click="videos.play()" toggle="true" selected="{videos.playing}"
enabled="{!videos.playing}" x="3" width="30" bottom="5"/>
...

hangalot
08-07-2006, 09:44 AM
maybe if you took all the smiley's out ;)

have you debuged to see what gets returned exactly by the e4x querry?

also because with flex 2 you can add and remove from the display tree at will, have you considered createing new mediadisplay components and checking if that solves your problem?

stonyx
08-07-2006, 06:51 PM
i think is because i'm using the datagrid component as the dataprovider of the list component but i don't know a different way

stonyx
08-14-2006, 08:29 PM
i think is because i'm using the datagrid component as the dataprovider of the list component but i don't know a different way

i solved thank you