Strange VideoDisplay component problem

Hello

I have an interesting question with the VideoDisplay component. I have a list of .flv files that appear in a List component. When the user clicks on one of the file names, click contains the path to the file and puts it into a bindable variable called "contentFile".

I then use the source property of the VideoDisplay to define what video to begin playing.

My code is simple and it works. Here it is:

< mx:VideoDisplay x = "0" y = "239" width = "320" height = "240"

ID = "vidDisplay".

source = "{contentFile}" / >

Here's the strange thing. When to use the following code:

"source ="{contentFile}"

my video takes several seconds to set buffer in advance before it starts to play (depending on the size of the source .flv file). Then when it starts to play, half the time that the video is very choppy, half the time it plays OK.

However, when I set the source using an exact path for a video such as:

source="/myVideos/myCoolVideo.flv".

the video immediately loads almost instantly and play always super smooth. I tested this out on Mac OS x, FireFox, Safari, and WinXP in FireFox and IE. The same answer is repeatable. The same exact video chosen via the variable method bindable takes a while to load and playback can be summary.

What can possibly be the difference between these two methods?

Let me know if you need more information.

Thank you

Dan

Although you will find your solution, don't forget to close the thread.

Tags: Flex

Similar Questions

  • VideoDisplay component to play the mp4/h.264 content

    Hello
    I want to build a simple video player that plays HD movie content.

    The component VideoDisplay in flex builder 3 can you play used mp4/h.264 content?

    If Yes, how is it done as I've tried to set VideoDisplay source to a local file MP4 and it will not play? I know for sure that the file is loaded and it is h.264.

    Can someone help me please?

    Concerning
    Adam
    Flexchief

    Hey Chief,.
    I think you will find that the answer to this question lies in your encoding, not in Flex.

    The VideoDisplay component plays FLV and H.264 files. Your video file should meet the MPEG4 specifications. If you have created a MP4 file using an Adobe product, it should work if you don't wander too far from the Adobe Media Encoder parameters, as trying to squeeze the size of the file down, too far. Flash player 9.0.115.0 or later must be used to view the H.264 video.

    When in doubt, use SOUL to create a short MP4 clip with the default settings (use something like '320 x 240 banner') and see if that plays out. If she plays, start going through all your encoding settings and see if put you something out-of-spec - like maybe the audio settings. Just use straight AAC for audio bitrate, 48 kHz, 192 Kbps. Video, use NTSC (fps shouldn't matter...) pixels progressive, square, 'main' profile, 'level' of 3. Change Bitrate CBR encoding (you're probably using high quality VBR, but just try).
    One of these parameters may trigger Flex upward. Just to experiment. If this does not work, send me more information on how you created the video file.

  • DRM component problem, can't update Windows Media Player security

    I try to use my OverDrive and I have this same problem of 'a problem has occurred in the DRM component. Contact microsoft support"with the button unclickable on the link I see that many others have had. I looked at previous answers for them and I have renamed my DRM folder to DRMbackup, changed my proxy on Windows media player settings, troubleshooted the patch use windows media he asked (including reinstall them WMP), cleared my cookies in IE and firefox, and the update button is unclickable. I've also been running IE as an administrator. This is ridiculous. I just click the button to update my DRM and get on with it (I'm not worried about the previously protected songs) what else can I try not to mention that from another computer? I've been troubleshooting for more than 3 hours!

    I had the same frustration. Finally resolved with instructions to: http://support.microsoft.com/kb/976590.

    I hope this helps.

  • Strange photo printing problem.

    Windows 7 SP1 runs on a home-built PC (Intel Core 2 Duo E8400/Nvidia 8600GT) my printer is a HewlettPackard Deskjet 1050 A., I'm having a problem very strange printing photos and other images.

    If the image is stored on my PC, it will print only in shades of gray, well that the images display correctly in color on the monitor. Images printed directly from the internet using "file > print" in the menu of the browser print in color.

    Diagnostic and test pages print in color, as expected. Color of text prints correctly. In "Printing Options", "Print in grayscale" is disabled. I thought initially a printer problem, but printer diagnosis and convenience stores to find nothing wrong.

    I think that the problem must be in the attributes or properties of the image, but I don't know where to begin the search in order to find a solution.

    Anyone know what I can do to fix this?

    Gary,

    In addition to answering the question about the types of files which are giving you the problem, what program you use to view and print the files saved on your computer?

    If you are using the Windows Photo Viewer (Windows 7 by default), see--> http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/jpegs-only-print-in-black-and-white-via-the-image/b9c1a406-b046-48d3-b9c3-ab23279c8b3a

  • Unable to use HP Support Center to sweep the Officejet 6500 E709a, Twain component problem.

    The diagnosis of HPSDU.exe reports that the Twain component is in use by another application, even immediately after the restart. I run the HP cleaner utility to uninstall the old drivers of HP and installed the latest download of the package complete printer and ran the update function downloaded some critical fix related to networking. I rebooted several times. HPSDU technical information popup window shows this (bad design, cannot simply copy and paste from this window!):

    Version of the 140.000.000.000 software

    MJP1FN0907AR firmware version

    APC Raw Version 0

    Service ID 20155

    Print version 70.101.308.0 driver

    I have the printer ethernet connected and can use Windows Scan ok, but which provides no output to PDF the way HP.

    Dell XPS, Win7-64 bit Pro,

    The Dell has MS Win 7 Pro, v 6.1.7601 SP1 Build 7601.

    Hardware Abstraction Layer Version = "6.1.7601.17514".

    This is the first time I try to install the full package on Win 7 HP. I used it in the past on Vista (different computer) without problem.

    My hard drive crashed, so I'm a new, completely re-installed everything, now it works fine. Sigh.

  • Rendering html with the webview component problem

    Hello

    I have a big problem to render this page html with the webview component:

    < html >
    < head lang = "en" >
    < meta charset = ' UTF-8 ' >
    < title > Rotation PB< / title >
    < style type = "text/css" >
    { #myDivRotate }

    color: violet;
    background-color: #d8da3d;
       height: 200px;
       width: 300px;
    top of the margin: 20px;
    margin left:20px;
    -webkit-transform:perspective(400px) rotateX(30degrees)
    -webkit-backface-visibility:visible;
       }

    < / style >
    < / head >
    < body >
    < div id= "myDivRotate" >
    Cuckoo

    < / div >
    < / body >
    < / html >


    The problem comes from the "perspective" in - webkit-transform. No it's ok. But with this one, the result is different from a standard browser like chrome or safari.


    Could you help me?


    Thank you.


    PS: I can not download from Jpeg file...

    attributes css - webkit are not supported by JavaFX WebView.

    attributes css - webkit are not standard (for example, they are unlikely to work either in IE or Firefox).

    CSS transformations are currently experimental technology, usage that is not normalized in user agents.

    You can request this experimental technology by creating a feature request.

    If support for css transforms has been added to the Web format, he would use standardized for attributes and not names - webkit prefix names.

  • FLV playback component problem

    Hello world.

    I have problems with the FLV Playback component in Flash Professional CS5. In particular, I have works perfectly under Flash, I published it and yet when I go to insert the SWF file on my Web page using Dreamweaver CS4 the play with all the controls bar disappears. I am a completely free taught novice so I've probably missed something very obvious, but any help would be greatly appreciated because it is now driving me crazy!

    Thanks in advance

    Let yourself be guided by the server.  It is a random test in DW.

  • CheckBox component problem

    Hey guys,.

    I have a rather strange problem, something that I was not able to find information on research using google.  In my flash project, I have several components check box in different frames, the user can switch between images using buttons.  Anyway the question I see is when the user switches between these different periods, the checkbox components are never in the right place... almost looks like they are out, its almost random glitching every time I have rebuild and test the .swf.  Any ideas of what could be the cause?  These boxes are standard with no label and no instance name...

    Here are some screenshots...

    Thus, it appears in the Editor (correctly)

    correct.png

    This happens during execution:

    wrong.png

    Sometimes it's a placement even crazier when I switch on the frame with these boxes.  in any case could be something weird, I do, but the strange thing is how its quite random places, so I want of its maybe a bug any?

    If you are placing the boxes in the adjacent frames and copy from one image to the other instances, then you can end up with a situation where checkboxes inherit previous images properties, such as the position and the status of their instances.  You can move around by them stretching with empty frames between them, or their passage to different layers of an image to the image.

  • Create a component problem statement.

    Hi all
    I use Jdeveloper 11.1.1.4.0.
    I am planing to create a declarative component ADF of Component.The will be a collection of panel presentation that contains the menu (Action > export to excel) and command button (add new record).

    The scenario will be like this:
    1 - the developer will drag my new component (myCustomPanel) on his page and drag the control inside this comonent to create ADF read-only table data.
    2. during execution, the table must appear surrounded by (myCustomPanel) and the user can use the "Action menu" export the content to Excel and can click on 'Add new record' to navigate to another page to add record.

    The solution that I've done is:
    in my "myCustomPanel", I created two attributes, the first is 'tableID' and the second is "targetPage" represents the culmination of the navigation to the page 'add new record '.
    The developer must provide these two attributes when using "myCustomPanel".

    The problem is:
    When executing when the user clicks on the button 'Add new record' an error is triggered.
    The error in this line:
    < af:commandToolbarButton text = "Add" id = "dc_ctb1" action = "#{attr.targetPage}" / >
    the action of the command key property expects a managed bean. But I proved with the page attribute.

    I want Dynamics provides the naviation result to the button using the attribute name. Is this possible?

    concerning

    Check your method attributes, you have a double 'targetPage.

    The 'handleTargetPage' method is automatically created for you when you deploy the component and your... . Component class is created by the component mechanism declarative.
    You don't have to implement yourself. It is simply a wrapper for the component, which then forwards the call to the method specified in the expression of the real.

    So, as soon as you specify a

    
    someMethodName
    .....
    
    

    a 'handleSomeMethodName' method is automatically created for you, and you should be able to select for the action attribute of the commandToolbarButton (in the property inspector, change..., methods of component declarative).

    The 'element' is an 'internal' reference to the... . Class for your component component declarative, the wrapper decalarative (so to speak) that contains your JSF components as children. You can use it, for example, to access the id in the component jspx, as:

    ....
    
    ....
    
    ....
    

    Sascha

  • Component problem, transparency and paint custom paint

    It is a little weird to describe problem so I tried to compact an example I can in small. I have a component that goes to a defined framerate, so it has a runnable interface and loop through and call repaint() on himself. If the component is not in a loop to repaint there is no problem, he draws the JInternalFrame transparent very well, but when he loop it creates a reall mess, sort of 'pulse' draw the background all wrong, and the buttons that you hover over appear in the upper right of the pane, its really weird.

    In any case, I was wondering if someone could take a look at my sample code and see if they can see what's wrong with it:
    import java.awt.Color;
    import java.awt.Graphics;
    
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    
    
    public class Test extends JFrame
    {
         public Test()
         {
              this.setVisible(true);
              this.setSize(1000, 600);
              JDesktopPane dtp = new JDesktopPane();
              this.add(dtp);
              
              JInternalFrame internalFrame1 = new  JInternalFrame("frame1",true,
                        true,true,true);
              internalFrame1.setLocation(100, 100);
              internalFrame1.setSize(300, 300);
              internalFrame1.setVisible(true);
              internalFrame1.setBackground(new Color(250,0,0,50));
              internalFrame1.setOpaque(false);
              dtp.add(internalFrame1);
              
              JInternalFrame internalFrame2 = new  JInternalFrame("frame2",true,
                        true,true,true);
              internalFrame2.setLocation(500, 100);
              internalFrame2.setSize(300, 300);
              internalFrame2.setVisible(true);
              internalFrame2.setBackground(new Color(250,0,0,50));
              internalFrame2.setOpaque(false);
              internalFrame2.add(new JLabel("check transparency on this"));
              dtp.add(internalFrame2);
              
              CustomPaintComponent cpc = new CustomPaintComponent();
              
              internalFrame1.add(cpc);
              
              this.validate();
         }
         
         public static void main(String args[])
         {
              Test t = new Test();          
         }
         
         class CustomPaintComponent extends JPanel implements Runnable
         {
              public CustomPaintComponent()
              {
                   Thread thread = new Thread(this);
                   thread.start();
                   this.setOpaque(false);
                   
              }
              
              public void paintComponent(Graphics g)
              {
                   super.paintComponent(g);
                   g.drawOval(0, 0, 50, 50);
                   g.drawString("CustomPaintComponent", 10, 10);
              }
    
              @Override
              public void run()
              {
                   while(true)
                   {
                        try
                        {
                             System.out.println("repainting!");
                             Thread.sleep(100);
                             repaint();
                        } catch (InterruptedException e)
                        {
                             e.printStackTrace();
                        }
                        
                   }
              }
         }
    }

    I'm under JDK 1.6.0_24 on Windows XP

    CustomPaintComponent cpc = new CustomPaintComponent() {
      @Override public void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setColor( new Color(250,0,0,50) );
        g.fillRect(0, 0, getWidth(), getHeight());
    
        g.setColor( Color.BLACK );
        g.drawOval(0, 0, 50, 50);
        g.drawString("CustomPaintComponent", 10, 10);
      }
    };
    //internalFrame1.add(cpc);
    internalFrame1.setContentPane(cpc);
    //or
    //JComponent c = (JComponent)internalFrame1.getContentPane();
    //c.setOpaque(false);
    //c.add(cpc);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    

    Published by: aterai on 08/03/2011 21:59

  • Strange Remove applet problem

    Hello

    I have a problem with the deletion of a specific applet on my card. When you try to remove it, I get 6985 SW. When I'm trying to remove his main pkg with related bodies, I get 6985 SW too. The strange thing is, I am able to instantiate the same applet (of the same module) with other AID that can be removed without problem. I can't reproduce this with my emulator.

    Is someone can you please tell me what is happening?

    Thank you very much in advance.

    Hello

    It is possible that you have static references in your code that are created during execution that are not be cleaned. This will prevent the applet cannot be deleted. I would have thought that remove the package with related bodies would work. Is it possible that there is another cmdlet on the map to access fields or self-esteem of this applet?

    You must implement the AppletEvent interface in your applet so that you have a hook to be called when the applet instance must be deleted. You can then use this cleaning all the references you have that there would be. It won't help now that you cannot remove the old applet, but it avoids what happens in the future.

    See you soon,.
    Shane

  • Strange copy paste problem

    I encountered a very strange problem using copy and paste with CS4 (11.0.2). When I select all, move on to another image, copy and paste, the pasted image is moved in position!  As I've never met this problem before, I spent several hours trying to isolate the cause.  It seems to be limited to a particular image.  Although I have saved in several formats, as well with PhotoShop and other programs, the behavior is the same.

    Here is a link to the image:

    http://i164.Photobucket.com/albums/U28/VinceB_photo/VbTest2.PNG

    If you save this image as a .png and load it in PhotoShop, you will see that the background is transparent.  If I use the magic wand and a low tolerance to select the transparent part and fill it with an opaque color, the shift on the problem of copy/paste goes!  I tried to reproduce the problem by making a new image with a transparent background and shades of gray in an RGB image, but do not meet the displacement on the problem of copy/paste.

    For reference, the image is the diffuse map a sticker to be applied to another texture.  I wanted to copy on a layer above the normal map to check the size and recording.  I always wanted to do, but am frankly stumped.  Any help would be appreciated.

    EDIT: even if you do not know the solution, if you can load the image in PhotoShop, select all, copy and paste (to produce a copy of the original in a higher layer) and check that the two images do not register, which would increase the confidence of my mental health.

    Christmas is correct to diagnose the 'why' of this problem. If you copy and beyond the layer, it moves everything as you described... However, after a glance you can see that it moves to position the pixels copied exactly in the center of the selected space. You can check by repeating your process to duplicate the Maj... then select the original layer, Select All > Align Vertical centers > Align Horizontal centers. As you can see the works of original art now lines up perfectly with the pasted object. Photoshop is just centering the number given by a few pixels of the document or selection on the dough.

  • public property and instantiation of the component problem

    Hello everyone.

    I tried to tackle the flow of instantiating components and do things in the right way, but I seem to run into problems.

    For example, I have a custom, with some variable public properties exposed component. I create my component and set my variables like this:

    PARENT

    BTN = new ConditionBtn();

    btn.aXML = myXML;

    btn.addEventListener ("change", answerChangeHandler);
    this.addChild (btn);


    And inside my component, I am trying to manage the instantiation like this:

    CHILD COMPONENT

    private var isSelected:Boolean;

    before initialize event handler

    private function preInitialize (): void {}
    }

    initialize the event handler
    private void initialize (): void {}

    If (aXML.@selected == "true") {}

    selected = true;

    } else {}

    selected = false;

    }
    }

    the creation complete event handler
    private void creationComplete (): void {}
    }

    This does not work well because when the initialize event fires, aXML shows that NULL when debugging. It is not sensible to me, but because the initialize event is not raised until I call this.addChild of the parent, which is done AFTER I put the value of aXML in my component so you would think that data should be there already.

    I tried to move the logic in the creationComplete handler but aXML is always set to null at this point. The work around I'm doing creates another function I call hand after I add it to the scene like this:

    PARENT

    BTN = new ConditionBtn();

    btn.aXML = myXML;

    btn.addEventListener ("change", answerChangeHandler);
    this.addChild (btn);

    btn.bindManually ();

    CHILD COMPONENT

    private var isSelected:Boolean;
    public function bindManually (): void {}

    If (aXML.@selected == "true") {}

    selected = true;

    } else {}

    selected = false;

    }
    }

    Now it works, but this seems like a very bad practice. Isn't that the point of all the pre-init and initialize events is to allow you to configure your component prior to when he emerges finally everything is configured and that it should not be re - install?

    I'm doing something wrong?

    Ago a well defined lifecycle you use that involve createChildren(), commitProperties, measure and updateDisplayList.  See the doc on creating custom components

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • UIScrollBar component problems

    Hello world!!!
    I am facing a terrible problem with the UIScrollBar component.
    The script is quite simple. It works well local. When I publish on doesn´t fine line work. The scroll bar is invisible (it seems to disable). I would appreciate if someone could give some hint why this happens.


    Thanks in advance

    to access the TextField object properties using the text box using the following syntax

    myTextArea.textField

  • Flash CS3 V3 component problem

    I use the component 'button' and then I manually with the skin it Flash CS3 when I change the color of the 'up' movieclip and doing a "CFC" the new component I created works correctly, but when I do a second component "button" (CFC) and use it on the scene to with one another 'up' color of movieclip. He always uses the "old" color on both. It's like the 'library' is shared for both. Has anyone have the same problem?

    The answer is 'skins' just search under "Creating skins for some instances" in the Flash CS3 help file.

Maybe you are looking for

  • All of a sudden my shrunken screen size... How can I get the display back to what it was

    All of a sudden my shrunken screen size... How can I get the display back to what it was

  • Satellite P500 - wireless card disappeared

    Hello I had a Satillite P500 with Windows 7 for a few weeks now and when I got it connected to my wireless network. However, there are a few days, the wireless stopped working completely and disappeared from the Device Manager - does not show the sam

  • How to connect to the list of the pins for a redeclenchables pulse train

    Hello I'm relatively new toDAQmx, especially for the counters. I have problems to determine what pins to plug on the DAQ card. I would like to run the vi described here, but am not sure how to connect the card. I looked at the manual of the X series

  • Camcorder JVC - GZ - MG670BU

    I have a business belonging to JVC GZ-MG670BU camcorder.  I tried to call JVC support and they were no help at all.  I hope someone here can help with my question.  I had a recording session video which I recorded more than 20 different clips.  I was

  • Not able to install MySQL

    When I install MySQL in my PC. Then it installs successfully by the command line, but the service starts do not. The error is of service may not be started on the local computer. Please give me the solution?