How to use multiple video files??

hi all,
i am using flex 4 ...
now i have designed video player..
i used single flv file for execution..
how to use more flv files in tis program???
i have included program also..
can any one reply for this...
thanks in advance...
regards,
saran r
video.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()" height="700" >
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import mx.core.UIComponent;
            import flash.events.NetStatusEvent;
            import flash.media.Video;
            import flash.net.NetConnection;
            import flash.net.NetStream;
            private var nc:NetConnection;
            private var stream:NetStream;
            public var videoDuration:Number;
            public var nsClient:Object = new Object();
            private var videoComp:Video = new Video();
            private var meta:Object = new Object();
            private var timer:Timer = new Timer(100);
            private var uiComp:UIComponent = new UIComponent();
            private function init():void
                nc = new NetConnection();
                nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                nc.connect("rtmp://localhost/saran");                 
                this.addElement(uiComp);
                uiComp.addChild(videoComp);
                timer.addEventListener(TimerEvent.TIMER,timerHandler);
                timer.start();
            private function netStatusHandler(event:NetStatusEvent):void
                trace("Code ===>>>    "+event.info.code);
                if(event.info.code == "NetConnection.Connect.Success")
                    connectStream(nc);
            private function connectStream(nc:NetConnection):void {
                stream = new NetStream(nc);
                videoComp.attachNetStream(stream);
                stream.play("Terminator")
                // stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                stream.client = nsClient//new CustomClient();
                nsClient.onMetaData = metadataHandler;
                trace("stream ===>>>    "+stream.currentFPS);
                //responder = new Responder(onResult);
                // nc.call("getStreamLength", responder, "bikes" );
            private function metadataHandler(metadataObj:Object):void
                meta = metadataObj;
                videoComp.width = metadataObj.width;
                videoComp.height = metadataObj.height;
                //positionBar.move(videoComp.x, ((videoComp.y + videoComp.height)+20));
                //positionBar.width = videoComp.width;
                trace("Duration ====>>>>   "+meta.duration);
            private function timerHandler(event:TimerEvent):void
                //trace("Timer called.........."+stream.time);
                //positionBar.setProgress(stream.time, meta.duration);
        ]]>
    </fx:Script>
</s:Application>

I have the same question but I am using two pc's

Similar Messages

  • How to use multiple videos in template

    I'm using the Directions HD template in Motion 3 and trying to figure out how to use more than one drop zone. When I drop a video into the first drop zone, it appears in all drop zones. How can I use multiple videos?

    Step 1: Find the Drop Zone layer (inside the Video group/folder) and select the Custom behavior and type Command - K (Convert to Keyframes from the Object menu)
    Step 2: Duplicate the Drop Zone the number of times you want to be able to change media.
    Step 3: For Each drop zone, move the playhead to the position you need to set an In Point; then do the Out Points... I recommend overlapping the Outs and Ins and crossfading using opacity keyframes. [For some of these, this will mean a 1 or 2 frame crossfade... or pick your points for straight cuts. ]
    Step 4: Select all the Drop Zones and create a group (Command-Shift-G).
    Step 5: Select the "Clone Layer" (it will be unchecked in the Layers List inside the Video group), and drag the newly created group of drop zones into the  Source well.
    You can mix up the way the background (emitted copy) video plays by clicking the Random Seed button at the buttom of the Emitter > Particle Cell inspector.
    HTH

  • How to use multiple configuration files in a web Application

    Hi,
    I am using JDev 11 TP3,JBoss4.2.1,Trindad 1.2.4.
    In my project I have to use a set of (Login) pages over several other projects.
    So I stored those pages (& backing beans) at an external location.
    Now while editing the deployment profile of the web application I included the login pages from external location using "Contributors".
    This way I was able to bring all the resources in the war. But the Faces-config.xml which contains the managed-bean registration of the login pages does not get included.
    1. Either I could change the name of the external faces-config and register it in the current project by includeing it. OR
    2. I could mention the managed-bean info in the current project's faces-config.
    I want to use option 1.
    How may I do it??

    Hi,
    if you package the managed beans in JAR files and add the faces-config.xml in the META-INF directory of it then it automatically registers at runtime
    Frank

  • How do you join multiple video files?

    I have multiple video files, all encoded with same codec, together so that I have 1 single large file. How do I do it with FCP? Ive tried doing it, but for some reason the final file is twice as large as the sum of the individual files...
    Thanks!!

    When you export an FCP edit, you get one file from many.
    If the individual files are all sequenced on one track, with no gaps between them,
    AND everything is all the same codec, the output file will be approx. the same size
    as the sum of the input files.
    You might be accidentally using a different codec, however. Verify by opening
    a source clip and your export clip in QuickTime Player, and selecting Get Info.
    Compare pixel dimensions, frame rate, etc.

  • How to use multiple table in single control file?

    Hi,
    How to use multiple table and data file in sigle control file? I have a four table and four csv file i mean data file for that. I am running concurrent program to load the data from csv file to custom table. based on my input data file name, it has to take automatically from one control file.
    Can anyone share with me how can i acheive this?
    Thanks

    Hi,
    Can't we acehive like below. I don't this exactly corrcect.
    OPTIONS (SKIP=1)
    LOAD DATA
    INFILE << file name 1 >>
    APPEND INTO TABLE XXCZ_VA_SAMPLE1
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         PARENT_ITEM               "TRIM(BOTH FROM :PARENT_ITEM)"
    LOAD DATA
    INFILE << file name 2 >>
    APPEND INTO TABLE XXCZ_VA_SAMPLE2
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         ITEM_NUMBER               "TRIM(BOTH FROM :ITEM_NUMBER)"
    )Edited by: orasuriya on Sep 14, 2009 3:03 AM

  • Questions on how to utilize still/ Video files from 3Gs using iLife 09?

    Hi,
    Just got back from a trip where I took a bunch of stills and videos using the my 3Gs. I just downloaded them onto my Mac using iPhoto.
    1. How do get the video files from iPhoto into iMovie as it seems that iPhoto imported it all.
    2. How do I get the images that were taken with Location services turned "ON" to display the location they were taken?
    3. Will location mapping also work with iPhone video files?

    Maybe someone in the iMovie discussion forum would know some of the specifics from iPhoto to iMovie. I thought I remember seeing a way to import straight from my iMove.
    Here is the discussions link
    http://discussions.apple.com/category.jspa?categoryID=141

  • How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?

    Hi!
    Question about the problem mentioned in subject.
    I have configured that JNLP opens with 1.5 version, both versions are enabled in Java Control Panel Runtime Settings but when I try to start a desktop java console says:
    Java Web Start 1.5.0_22
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    And the opening of the desktop creates an exception:
    Java Web Start - Invalid Argument Error
    TooManyArgumentsException[ Too many arguments supplied: {C:\WINDOWS\Temporary, Internet, Files\Content.IE5\....
    I'm trying to open my desktop with 1.5 version and other programs with 1.6 version. What is it that I still need to do? I'm kind of confused with this. Some of my collagues have succeeded with this and some doesn't, with the same configuration.
    So the question is, how to use multiple JREs with IE8 so that one application uses 1.5 version and others 1.6 version?
    Br,
    Katri
    Edited by: ka**** on 09-Mar-2011 01:16
    Edited by: ka**** on 09-Mar-2011 03:16

    ka**** wrote:
    ..Question about the problem mentioned in subject.No "Using multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8" is a statement. To transform it to a question would be something like "How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?".
    Once you can come up with an actual question, I might look at this more closely.

  • HOW CAN I TRANSFER VIDEO FILES FROM MY PC TO IPAD MINI VIA ITUNES??? WITHOUT ANY ADDITIONAL DOWNLOADABLE APP

    HOW CAN I TRANSFER VIDEO FILES FROM MY PC TO IPAD MINI USING ITUNES???  i have to google every little thing that has to do with my ipad, why cnt they make it more user friendly???? i have to dl another app just so ican transfer vid files to mu ipad mini. i already converted them to the proper format. i just cant seem to find out how to transfer with with only itunes

    im just new to itunes and ipad mini is my first apple product thats why im really having a hard time with this. i cant transfer the video file to my library... i tried dragging it to the "movies" part in my library but it still doesnt copy to the movie librarry just like how i do it with my songs.. not even the typical list appears.... all it says is movies and studd about the library and itunes, ill post a pic so u can see...

  • How do I export video files from iPhoto to a backup external hard drive for safekeeping?

    How do I export video files from iPhoto to a backup external hard drive for safekeeping?  Each time I try, the video will not play from the external hard drive.

    Use the File ➙ Export ➙ File Export menu option with Kind = Original.  That should get the original video file exported.  Try to export one to the Desktop first and open it with Quicktime Player.  If all goes well export the rest to a folder on the EHD. How is the EHD formatted?  It should be OS X Extended (journaled).

  • How can I access video file from sd card on ipad2?

    How can I access video file from sd card on ipad2?

    Your iPad 2 will see the video if:
    It's in a DCIM folder on the top level of the card (which is how most cameras do it)
    It's name is 8 characters, no more, no less (CKDI9483 for example)
    It's a format that the iPad will play
    I've made mp4's of things, folderized them right and named them 'right' and can transfer them to my iPad, so you can use a computer to make the files conform to what the iPad will see.

  • How do you transfer video files from the iPad to a separate device?

    How do I transfer video files from my iPad Air to a separate device or storage device so that I free up memory on my iPad

    You can directly transfer photos and videos via WiFi between the iDevices, PCs, and Macs with an App like Photo Transfer.
    See: https://itunes.apple.com/us/app/photo-transfer-app-easily/id365152940?mt=8
    Or you can upload the photos and videos to the Dropbox service using the Dropbox App on the iDevice, PC, or Mac and download them to the another device using the Dropbox App on that device. By the way, once the videos are on Dropbox you can share them with others.
    See: https://itunes.apple.com/us/app/dropbox/id327630330?mt=8

  • How do I transfer video files shot from my camera (Canon 5DMk2) which is in .MOV format into iTunes ?

    how do I transfer video files shot from my camera (Canon 5DMk2) which is in .MOV format into iTunes ?  My photos and video files are first imported into Aperture then synced with iTunes. However, itunes does not capture the Video files but uploads the phtos from Aperture during sync.
    I tried dragging the video files into iTunes but it still would not be captured into iTunes ?
    Appreciate any help on this. Thanks

    Open them in Quicktime Player 10.1. Then, use Quicktime's Share menu > iTunes.  That will create an iTunes compatible version and automatically load it into your iTunes movie library.

  • How to use multiple tape drive for single filesystem on single client.

    Hello All.
    I want to backup single filesystem with multiple tape drive.
    Incase of Symantec veritas netbackup "NEW_STREAM" for multi-stream backup.
    Backup client has a  single backup filesystem like /data1  directory with 4 LTO6 drives.
    /data1 directory doesn't have a sub-direcotry, just present a files.
    If /data1 directory has a sub-directory like /data1/aaa, /data1/bbb, /data1/ccc , Is it possible to use multiple drives?
    Please anybody answer the questions.
    Thanks advanced.

    See how to use multiple tape drive from single client when I want to backup single filesystem?

  • How can clients view video file that I upload to my Creative Cloud area?

    How can clients view video files that I upload to my Creative Cloud area?  Is there a special password that they have to use to gain access?
    Thanks for any guidance.
    Dave

    As a video professional, i agree and am VERY disappointed with this policy.  I attended CC presentations at various conventions, film festivals and meetups for a year-and-a-half before I made the leap to CC, and no one EVER mentioned a restriction to transferring video files.
    Whether it's to save storage space or not, that's how it APPEARS to the end user.  Anybody who knows ANYthing about how video pirates commit their crime (which it most-certainly is), knows that there are plenty of FREE, untraceable (or nearly-anonymous) resources to carry it out.  The need for anyone to pay $30 or more per-month to do it with an acct that has their info attached to it is ludicrous!  If anything it's CONTRIBUTING to piracy to encourage creatives to transfer their material to collaborative parties using a less-secure, more heavily-trafficked third-party service than the one they're paying for exclusive use for.
    Adobe's policy makers need to review this restriction and remove it or provide ANOTHER reason why it exists because this one doesn't fly.  And if it continues, make sure a disclaimer gets inserted in CC pitch presentations because likely half of the attendees are working with video.

  • Hi, how to transform a video file from Mark 5D iii into MVI_2500-Apple ProRes 422 for Progressive material.mov

    Hi, how to transform a video file from Mark 5D iii into MVI_2500-Apple ProRes 422 for Progressive material.mov ?
    Is it the best way to work with videos in Final Cut Pro?
    Thank you!
    Anastasia

    Is your 5D media progressive from the camera? Simply use the optimize option when you import into FCP.

Maybe you are looking for