Using a video file in Flex ?

I've been trying to use one video file in my flex project but the problem here is that after giving the source location it's not showing anything except a black pane and the format of the video file is in .AVI.I'm using VideoDisplay class to show the video.
Any help on this guys...

Just check it with the .flv files. If it works fine for them
then your code is fine and you have to search for your format or convert it in flv my any means.
with Regards,
Shardul Singh Bartwal

Similar Messages

  • How to use my as3 file in flex

    hi, I am new in flex and want to divert into flex. How to  use my as3 file into flex. Is there any sample tutor . so, that I could learn fast.

    Please clarify. Is this .as file a class you previously used as a complonentcomponent you now wish to use as the main application?
    If the .as file just has variables and functions you wish to access from your Flex app, use:
    include "subfolder1/subfolder2/etc/MyASFile.as";
    If you want to use classes from the file, do this:
    import subfolder1.subfolder2.etc.MyClassName;
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to play video files in flex 3

    Hi,
    i want to play 3gp, wmv, avi or mpeg video files in flex 3. can any one help me in detail. please

    if it is only happening with server side videos it can be a cross-domain policy issue, you can take alook  here for more information;
    http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html

  • 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

  • Getting problems while playing video files in flex player

    Hi friends,
                    Here i can able to play all video file formats like .mp4,3gp,.flv,.swf.But the problem ,i can't able to play mobile recording video files in this player even if that files are mp4 or 3gp or flv.In this scenario,can't understand what should do and where is my problem.So it would be grateful if anybody suggests and share me some idea where i am wrong.
    Regards,
    abhishek

    People use one-player-per-video because you can't reuse player objects. Player is a parent class to a whole bunch of subclasses, each subclass is capable of playing a specific kind of video. So when you create your Player object, you're actually creating some subclass type that's specific to that video type. So while it's technically possible to use a single Player subclass to play more than one video, unless all of your videos are of the same video encoding / audio encoding...you won't be able to reuse it.
    What you need to do is dispose of the last player before you create a new player (player.close), and do that over and over again. That way, you're never using more than 1 player's worth of memory...

  • Using MXP (package) files in Flex?

    So, many of components and code libraries of different kinds and flavours get distributed in the lesser known MXP format, which many believe makes for "ideal" distribution. My problem is I am a skilled ActionScript/Flex/Flash developer who not always has access to a Windows box, and even if I have, I can't seem to find any valuable information on how to open/extract content in this format. The only thing I know is that it is obviously a drag-and-drop operation in Flash CS* to import and use these files, but most likely I will be using Flex. Is there any chance of using these files in Flex instead? I have to use several code libraries that are only distributed as those MXPs, which does not seem to be a very "open" format.
    Thanks.

    Thanks.
    MXP files do not appear to be any variation of ZIP archive format.
    I will be using whatever as long as I can make use of the component itself, which is packaged as an MXP. Inside this MXP there is an MXI file too. I do not have any control over the distribution format of this component, these are developed by another party. All I need it to make use of the component(s). If this involves opening the MXP, extracting the MXI, and getting an ActionScript or SWF bytecode out of it, fine. I really do not care much for the format, I just need my application to make use of the component itself.
    Are there any tools that convert an MXP package to something less binary perhaps? Or something that Flex can use at least?
    After all the component is the same bytecode that Flash Player uses anyway, compiled from either Flex or Adobe Flash.

  • Need to determine which project files uses a video file

    Short of going through each of my FCP project files one by one, is there any way to find out which of my project files uses a particular video file?
    Thanks,
    John Link

    As long as it has a name you can search for it.
    The problem is not to find a media file, it is to find all the project files that use a media file. Thanks, cometmace, for providing a solution to that problem, and welcome to the Apple Discussions.

  • CODEC used in video file

    Hi ,
    I want to know how to determine the codec used in particular file .
    Kindly guide me in proper direction
    thank you
    regards
    Karthick G

    844115 wrote:
    I want to know how to determine the codec used in particular file .Write a file header parser for every relevant filetype in existance, and then parse the header based on the filetype and it'll give you the encoding parameters in there somewhere...

  • Use flash video coponent in flex?

    Hi
    I want to use flash player video player feature.Please let me
    know how to do this.
    I need use the class fl.video.VideoEvent but it is not flex
    libary.do I have to build swc file,what is the steps to do this.
    Thanks
    Mk

    Hi Mk,
    Emanuil Rusev has created an an easy to use, open source Flex
    video player called FX Video. You can find the FX Video home page
    here:
    http://www.fxcomponents.com/?p=29
    And the FX Video source here:
    http://www.fxcomponents.com/src/fxvideo_0.92/
    Thank you Emanuil!!!
    Please take a look at the FX Video video player and see if it
    provides the functionality that you need. If not, please post back
    with detail on what further functionality you require.
    Regarding
    fl.video.VideoEvent,
    Flex does have a similar event
    mx.events.VideoEvent
    The Flex VideoEvent is related to the Flex UI control
    mx.controls.VideoDisplay.
    VideoDisplay is pretty rudimentary. The FX Video video player cited
    above uses both VideoDisplay and VideoEvent. If you are not
    familiar with the Flex VideoDisplay control, you can find a
    runnable example online in the Flex docs here:
    http://livedocs.adobe.com/flex/3/langref/mx/controls/VideoDisplay.html#includeExamplesSumm ary
    Please post back regarding whether the above answers your
    question, and if you find it helpful :-)
    Best regards,
    g

  • How to Play all type  audio or video file in Flex 4.5 mobile

    Hi,
    I need audio player and video player include by Mobile app.
    <s:VideoPlayer - not mobile optimized.

    First of all, thanks for your reply.
    second, the way i found is this: http://www.sparkfun.com/products/10748   sparkfuns IOIO device. i'm planning to use its UART port for real time serial communication.
    yet the thing i couldnt understand is, how people never feel the need to use threading in Flex. I mean, HOW?

  • How to use and publish large video files in presenter 7 ?

    I am creating video intensive e-learning contents in presenter 7 (updated to 7.05).
    I generally, use 2 or 3 flv files (up to 50 MB size) in my presentation.
    After I publish my presentation in a web site, users must wait too long for watching any single video.
    Is there any method to use large video files (flv or any format) in presenter 7 and users can watch videos without any delay?
    Best regards.

    The problem you're facing is that Adobe Presenter output video playback is primarily Progressive Download rather than Streaming.
    Options, for you, include:
    1) Figure out a streaming video solution
    2) Use Adobe Media Encoder to compress/squash your video into more manageable sizes before importing the video into Presenter. I have found a decent compromise is the Web Medium preset as its datarate of 600kbps is just about the most a DSL connection can handle.
    3) Split your videos (instead of 2-3 50MB files, you'd have 4-6 25MB files).
    JP

  • Import and Management of Video Files by Date Still Broken

    It really is very disappointing that after 3 versions, and 110 bug fixes, basic things like importing or managing a video file by date is still completely broken.
    Even more troubling, is that for someone who uses LR3 this is a very obvious problem, and should be very easy to fix.
    When you import a file on a wide range of cameras the date that is used for the video file as far as LR3 is concerned is the date you are importing it, not the date it was taken. This makes any management of the file, especially when managed next to pictures, very difficult.
    The problem, as far as I can tell, is that in Windows, a file has both a 'Date Created' and a 'Date Modified'. 'Date Created' is whenever the file was created on the PC. If you bought a new computer and transferred a bunch of files over on 30/12/2010, all of your files will have a 'Date Created' that is 30/12/2010 regardless of when the photos or videos were taken. Or if you take a video on September 1st and import it onto your computer September 15th, it will have a 'Date Created' of September 15th.
    'Date Modified' however lists the date that the file was last changed. For video files, that most likely was the date the video was shot.
    Every program I have ever used for video files has always organized them by Date Modified (when organizing them by date). For example, its the default in Windows 7 Explorer when showing video files, all the video files listed by the date you have taken them. Date Created really doesnt have any useful information.
    Its inexplicable to me why LR3 uses Date Created instead of Date Modified. It is a glaring error, that should be easily fixed. Microsoft can manage to do it right, as a byproduct in its OS, Im not sure why an imaging company in a $400 piece of specialist software cannot.
    And just in case this is overlooked as a minor problem, it certainly is not. It happens to the following cameras:
    D90 (first camera to shoot video)
    D3s (thought by many to be the best low light camera)
    D7000 (likely to be Nikon's most important DSLR)
    D3100 (likely to be Nikon's most purchased DSLR)
    Canon S95 (one of 2 most popular P+S for DSLR owners)
    Fuji 31fd (Ill never forget you!)
    And those are just the cameras I have on my desk, Im sure it happens to many others.
    Also, when importing these files by date, LR3 will import them into a folder 1 date later then the date that LR3 is using for the file. So, just to be clear, you could take a video on May 1st, import it into LR3 on May 2nd and LR3 would say it was taken May 2nd, and it would be placed in the folder for May 3rd.
    Im really not sure why something so basic has not been addressed in so long, and it makes any sort of managment of video files by date in LR3 useless.
    Very disappointing.

    I agree that the wrong file system date is being used. But I scanned all my Lightroom files (manually) tagged with 'video'. When the file contains suitable metadata with a capture time that is used. When that's missing, the (wrong) file system date is used.
    Interestingly I even found one camera where the dates were originally right (in 2009), then disappeared for a while (probably due to a firmware upgrade!) and then came back again. Summary of what I found:
    Very old (Philips) webcam / format AVI / no metadata visible / wrong date
    Canon Powershot A80 / format AVI / metadata visible / right date
    Nokia N73 cellphone / format MP4 / no metadata / wrong date
    Canon EOS 5D Mark II around 2009 / format MOV / metadata visible / right date
    Canon EOS 5D Mark II around 2010 / format MOV / no metadata / wrong date
    Canon EOS 5D Mark II around 2011 / format MOV / metadata visible / right date
    So my conclusion is that the camera makers are making a bit of a mess when they introduced video. Nikon introduced its video a year or so later than Canon. I don't know if "no metadata" means that there is none, or that Adobe just doesn't like the format. But given the pattern of the firmware updates with Canon, it looks like Canon and Adobe ultimately agreed on the format. But in any case Lightroom (I am using 3.4.1) has a bug w.r.t. its fallback scenario of reading file system dates.
    In my case, the dates changed when I copied all my data from one disk (old NAS) to a new one (new NAS). It is disconcerting that you get the copying date despite comparison tools declaring the files to be identical (Beyond Compare 3 also keeps an eye on date differences).
    Hope this helps, Peter

  • Stage video capability in flex mobile - the whole truth

    I am finding it confusing to work out the capabilities of different types of Flex. So I have been trying throught trial and error. Hopefully forum members can shed light on this
    In flex mobile apps you can access actionscript. Actionscript contains the stage video classes. Does that mean we can use stage video in a flex mobile app by using the actionscript?
    In an Air app we can access actionscript - does that mean we can do the same in Air.
    I hear stage video is only available for GoogleTv and other tv applications, but is that news out of date, seeing stage video classes are available in actionscript?
    I managed to get stage video working in a Flex "Actionscript" project (on the web, but not on my desktop) - yippee-yai-yo.
    But tried and failed to get it working inside a Flex "Flex" projext, or a Flex "Air" project. Is that because I don't know what I am doing, or because it is not possible?
    Also "IF" Stage Video can work in a pure Actionscript project, which it seems to be able to, does that mean I can use it in a mobile actionscript project and use it across android, iphone, blackberry. Or not...
    All help gratefully received, thank you.

    Unfortunately, I did not find a solution and at that point stopped working with Flex for iPad. If you do find a way to stream secure video I would really appreciate knowing!

  • Embedded vs. External video file?

    Started playing around with a Flash tutorial on video and saw two options to use a video clip with an SWF file.
    I wanted some clarification:
    Embedding the file creates a huge SWF, while having the file external allows for a smaller SWF, right?
    But in order to use the external file, you must use AS to call functions, right?
    External file allows for update to the file (externally) without having to republish, right? duh.
    One thing I noticed about embedding, I can scrub on th Timeline and see frame-by-frame of the video file.
    But, can't do that when it is loaded externally - it shows a box with an 'x', and can't see video 'til I publish.
    Scrubbing frame-by-frame is ideal for me because I sync certain elements within the SWF file with the video file.
    When loaded externally, can't do that. (I guess a workaround would be to use the video file externally, but also embed it on a layer I can later delete, that way I have the frame-by-frame ability.
    Now, AS2 or AS3 for video playback? My tutorial is AS2, and was done in MX 2004, I am using CS4 - does that matter for AS?
    Thanks. Isn't this fun?

    Pretty much all of your conclusions are correct, except if you want to synchronize the video with the timeline, your best bet is to embed the file.  It's not likely that what you edit based on an embedded version that you later delete will remain synched as intended with a file being dynamically loaded/played in its place.

  • Can Premiere Elements NOT re-encode a video file

    I want to take 200 HD camcorder files and put them on a Blu-ray disc with a basic menu structure.
    I know Premiere Elements can do the menu structure.  My question: Is it able to use the video files without re-encoding them?  (The source files are 1280x720, H.264/AVC, 29.97fps.)  I can't test this using the trial version because it watermarks the video.
    If PE can't do it, am I overlooking some simple way of doing Blu-ray menus using the Creative Suite products?  I have used Premiere Pro and Encore to author BDs, but that involved setting up every element of the menu structure by hand.

    OC Photoworx
    Although I cannot give you first hand workings of Premiere Pro CC because I do not use the program (I am strictly an Elements Windows user),
    I offer the following Adobe documentation that I found online for Premiere Pro CC features that you seek and that Premiere Elements does not have.
    Smart Rendering
    https://helpx.adobe.com/premiere-pro/using/smart-rendering.html
    CUDA (which Premiere Elements has not supported)
    Adobe Premiere Pro CC - Faster Video Editing | NVIDIA
    and for a comparison of Premiere Elements vs Premiere Pro CC Disc Menus and burn to Disk..
    Premiere Elements (which you probably are fully aware of)
    Adobe Premiere Elements Help | Sharing to DVD or Blu-ray Disc.
    Premiere Pro's Disc Menus and Burn to Disk
    Using Premiere Pro CC & Encore CS6 for Bluray, DVD, and Interactive Video for iPad,ATV, and Mobile HD | DAVTechTable | A…
    Adobe Encore * Creating menus
    Best wishes with whatever you video editing decisions are.
    ATR

Maybe you are looking for

  • Could not find log sequence

    Hi guys, as I am still new to RMAN I would be greatfull to You for some help and guidance here. I am cloning database with RMAN duplicate database command and at the and of the script I got RMAN-06055: could not find log sequence 86362 thread 1 . The

  • How to I connect Sourcing digital output from My Interface Board to NI USB 6501 channel configured as Digital input

    When I connect an input to DI channel of USB 6501 card  from my board which has sourcing Output t, iIn the Off state it is not pulled down properly. The volatge on the port in is 2.1V -2.5V based on the pull down resistor on my board. I suspect that 

  • On a HP Officejet Pro L7780 All-in-One printer, is there a toner and where is it?

    On a HP Officejet Pro L7780 All-in-One printer, is there a toner and where is it located? I've looked in Products and Supplies and don't see it but my printer is saying that it's low or empty.

  • Internett Problem with apple products

    Hello, I bough an Asus EA 66 for hope to get better internettsignal, but NO. I did not get any better signal.. but on my Samsung Galaxy Tab was the signal on the top.. Why not on apple products?? Any tips or tricks.. sorry for my bad english :/

  • Partition problem

    i was wondering how could i get the following error when my partition strategy is partition by range (service_dt) partition call_minvalue values less than (to_date('2007-07-09','YYYY-MM-DD')) tablespace data1, partition call_part_20070719 values less