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"/>
...
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"/>
...