Load video with Remote Data Providers : VideoDisplay « Graphics « Flex






Load video with Remote Data Providers

Load video with Remote Data Providers
         
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="srv.send()">
    
    <mx:Script>
        
            import mx.rpc.events.ResultEvent;
            import mx.collections.ArrayCollection;
            
            [Bindable]
            public var videos:ArrayCollection;
            public function handleResult(event:ResultEvent):void
            {
                videos = event.result.ut_response.video_list.video;
            }
            
      
    </mx:Script>
    
    <mx:HTTPService id="srv" url="http://server.com/yourvideo"
        useProxy="false"
        result="handleResult(event)" />
    
    <mx:List width="500" height="500" dataProvider="{videos}">
        <mx:itemRenderer>
            <mx:Component>
                <mx:HBox height="105">
                    <mx:Image source="{data.thumbnail_url}" />
                    <mx:VBox width="100%" height="100%">
                        <mx:Label text="{data.title}"/>
                        <mx:Text text="{data.description}" width="100%" />
                    </mx:VBox>
                </mx:HBox>
            </mx:Component>
        </mx:itemRenderer>
    </mx:List>
    
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Look up VideoDisplay's metadata cuePoints and compare to current cue point object
2.Listen for a Flash Video's cue points with VideoDisplayListen for a Flash Video's cue points with VideoDisplay
3.Use Button to control VideoDisplayUse Button to control VideoDisplay
4.Ready, rewind, playheadUpdate, close, complete and progress actions for VideoDisplayReady, rewind, playheadUpdate, close, complete and progress actions for VideoDisplay
5.autoPlay, autoRewind for VideoDisplayautoPlay, autoRewind for VideoDisplay
6.Detect connection error when loading flv with VideoDisplayDetect connection error when loading flv with VideoDisplay
7.Detecting a connection error when loading an FLV with the VideoDisplay controlDetecting a connection error when loading an FLV with the VideoDisplay control
8.Use a VideoDisplay controlUse a VideoDisplay control
9.Set cue points for the VideoDisplay control by using the cuePointManager property.Set cue points for the VideoDisplay control by using the cuePointManager property.
10.Use VideoDisplay.attachCamera() method to display a video stream from a camera
11.Use VideoDisplay control to import a media stream from Macromedia Flash Media Server 2 from Adobe
12.A VideoDisplay control
13.When the playhead of the VideoDisplay control reaches a cue point, it dispatches a cuePoint event
14.VideoDisplay CuePoint Manager
15.VideoDisplay Camera
16.VideoDisplay FMSVideoDisplay FMS
17.Play video with VideoPlayPlay video with VideoPlay
18.Play video from a URLPlay video from a URL
19.Create a Video DisplayCreate a Video Display
20.Complete and mediaPlayerStateChange events dispatched by the VideoPlayer controlComplete and mediaPlayerStateChange events dispatched by the VideoPlayer control
21.Show the user of the DynamicStreamingVideoSource objectShow the user of the DynamicStreamingVideoSource object
22.Dispatch a cuePoint eventDispatch a cuePoint event
23.CuePointEvent DemoCuePointEvent Demo
24.Use the pause() and play() to pause or play an FLV fileUse the pause() and play() to pause or play an FLV file