Controlling multiple videos with one set of controls

I'm currently working on a project that allows the user to view multiple videos at one time. The videos will be exactly the same length and video format/type. I'd like to let the user use just one set of controls to view each video. Is this possible? If so, does anyone have any code samples?
I also want the video to not start when the application starts. I've got that done, but I'd also like the first panel of the video to be displayed. How can I do that?
Thanks!

PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

Similar Messages

  • Controlling multiple instruments with one VI

    I have 5 instruments that I need to control simutaneously.  Right now, each is controlled separately by its own VI, all of which run in LabVIEW 7.1.  I would like to consolidate control into one panel instead of 5.  I have seen examples of libraries that contain multiple sub-VIs controlled by a main VI, but I cannot figure out how data is passed between them, or how to create a library from my existing VIs.  Is there a way to do this? 

    For a simplistic answer, you just have to place your existing VIs into a new top level main VI. In order to pass data from a subVI to a mian, you wire the controls/indicators on the subVI to the subVI's connector pane. These is really basic LabVIEw knowledge and if you don't know how to do this, then you should probably spend some time learning LabVIEW basics. A great starting point is at http://www.ni.com/academic/lv_training/how_learn_lv.htm.
    With 7.1, a library is an llb file and you really don't need to use one of these. They can be handy for distributing an application but should not be used during development. Just keep your VIs in folders.

  • Controlling multiple TextAreas with one ScrollBar

    Hello,
    Fairly new to java so you may have to excuse my lack of java knowledge!
    I would like to create a Frame with three TextAreas, side-by-side, controlled by a single ScrollBar.
    I thought it would be fairly easy. Just add the three TextAreas to a Panel then add a ScrollPane to the Panel. If that is the right way, how can you make the TextArea as high as the number of rows. Think I've seen some example using Swing but I'm using AWT.
    I've provided some example code if it helps:
    import java.awt.*;
    public class MyExample extends Frame
      TextArea field1 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
      TextArea field2 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
      TextArea field3 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
      MyExample()
        super("My Example");
        this.setSize(800, 500);
        new BorderLayout();
        //enter any data into all three text areas
        for (int i = 0; i < 150; i++)
          field1.append(i+"\n");
          field2.append(i+"\n");
          field3.append(i+"\n");
       /** Any method here to make the TextAreas the maximum height (so the TextAreas
       *   are too large for the Panel and need the scrollbar!). I have tried setSize,
       *   setMinimumSize, setMaximumSize, setRows and prob more but cannot get any
       *   to work!?!
        // create panel and add the three text areas
        Panel centerPanel = new Panel(new GridLayout(1,3));
        centerPanel.add(field1);
        centerPanel.add(field2);
        centerPanel.add(field3);
        //create a scroll pane and add the panel to control
        ScrollPane scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        scrollPane.add(centerPanel);
        // add scroll pane to frame
        add("Center", scrollPane);
    }Any help is appreciated!
    Dave

    Hai dave,
    try the below program in which i set the panel size by calculating the textarea size. To caluculate the number of lines in the text area-field1:
    1. store the value of field1 in a string
    2. find the number of '\n' -end line characters
    this gives the number of lines in the text area-field1
    then set the height of the panel equivalent to the height of field1 by using the calculated number of lines * 15( a single line takes 15"-i am not certain but it is OK).
    import java.awt.*;
    public class MyExample extends Frame
    TextArea field1 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
    TextArea field2 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
    TextArea field3 = new TextArea("", 0, 0, TextArea.SCROLLBARS_NONE);
    public MyExample()
    super("My Example");
    this.setSize(800, 500);
    new BorderLayout();
    //enter any data into all three text areas
    for (int i = 0; i < 300; i++)
    field1.append(i+"\n");
    field2.append(i+"\n");
    field3.append(i+"\n");
    /** Any method here to make the TextAreas the maximum height (so the TextAreas
    * are too large for the Panel and need the scrollbar!). I have tried setSize,
    * setMinimumSize, setMaximumSize, setRows and prob more but cannot get any
    * to work!?!
    **/int k=0;
    String str=field1.getText();
    /*my for loop to calculate number of lines in the string which holds value of TextArea-field1*/
    for(int j=0;j<str.length();j++){
         if(str.charAt(j)=='\n')k++;
    System.out.println(String.valueOf(k));
    Panel centerPanel = new Panel(new GridLayout(1,3));
    centerPanel.add(field1);
    centerPanel.add(field2);
    centerPanel.add(field3);
    Dimension dim=field1.getPreferredSize();
    ScrollPane scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
    scrollPane.add(centerPanel);
    //the scroll bar of mouse can't work!(?)
    centerPanel.setPreferredSize(new Dimension(780,k*15));
    add("Center", scrollPane);
    setVisible(true);
    public static void main(String args[]){
         new MyExample();
    * if you still have problem then post but expects my reply after atleast 2 days:i am busy

  • Controlling multiple movies with one button

    Hi flash gurus,
    I have 4 movies of the same length running on my stage in the
    FLV playback component, with different instance names. I also have
    a single play/pause component. I want all of the movies to play
    together and unpause/pause when I press the play/pause button.
    However, I have only been able to get the play/pause button to
    control one of the movies (the last one listed in the
    actionscript). I'm using the following code to attach the
    play/pause component to the FLV playback movie:
    FLV_instance_name1.playPauseButton = PlayPause_instance_name
    FLV_instance_name2.playPauseButton = PlayPause_instance_name
    FLV_instance_name3.playPauseButton = PlayPause_instance_name
    FLV_instance_name4.playPauseButton = PlayPause_instance_name
    When I use this, the play/pause button only controls the
    FLV_instance_name4 movie. How do I get it to control all 4 moives?
    Any help is much appreciated. Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • Deploy multiple times with one set of bean classes?

    Let's say I have MyBean, MyBeanHome and MyBeanImpl. Is it OK if deploy them
    twice as follows (ejb-jar.xml). Notice the difference in ejb-name. Then in
    the weblogic-ejb-jar.xml I define certain attributes differently, such as
    clustered or not.
    Thank,
    Bill
    <session>
    <description>My Session Bean</description>
    <ejb-name>MyBean</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>My Non-clustered Session Bean</description>
    <ejb-name>MyBeanNC</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>

    Two beans with the same bean and interface classes, may be deployed as different
    beans if
    the <local-jndi-name/>
    or <jndi-name/> in the weblogic-ejb-jar.xml is different.
    thanks,
    Deepak
    "Bill" <[email protected]> wrote:
    Let's say I have MyBean, MyBeanHome and MyBeanImpl. Is it OK if deploy
    them
    twice as follows (ejb-jar.xml). Notice the difference in ejb-name. Then
    in
    the weblogic-ejb-jar.xml I define certain attributes differently, such
    as
    clustered or not.
    Thank,
    Bill
    <session>
    <description>My Session Bean</description>
    <ejb-name>MyBean</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>My Non-clustered Session Bean</description>
    <ejb-name>MyBeanNC</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>

  • Controlling a video with swipe gesture

    I'm trying to control a video with swipeleft/swiperight events to play/playback a video. It does not work with built in actions. Should I code something? Is there any sample to help?
    Thank you.

    Just in case this article triggers some ideas
    How to add swipe gestures to video playback
    Thanks,
    Preran

  • I need an idea how to place multiple videos on one page

    Multiple videos on one page in Muse neded for a video portfolio..
    Anyone got a great idea how this can be done please. (or direct me to a tutorial link - doing one is all I can find)
    I am happy with either embedded or Menu linked on objects to videos.
    Youtube is hosting the videos
    I just cant find any way to put hyperlinks or urls in objects and I can not find a way to make small video players in Muse.
    If I scale the container ..things go very weird. eg the video goes tiny and into a corner.
    I feel like I am working with half a tool box!!!
    I cant even find a template where this has been done.
    Any help is appreciated. Thanx.

    That works perfectly thank you.
    Now I am wondering if I can have a single "viewer" that will play any selected video from a button , a menu or other trigger?
    Info for others if required. :  The You tube ID required in the widget setting is not the URL.  Its an alpha/numeric obtained from part of the YT embedding code.
    example - the bold underlined section
    <iframe width="720" height="405" src="//www.youtube.com/embed/w6ZcCOCihuY" frameborder="0" allowfullscreen></iframe>

  • Select or deselect multiple rows with one single selection  event

    Does anyone know how to create a JTable which can select or deselect multiple rows with one single selection event in JTable. Fore example, if the table has
    row1
    row2
    row3
    row4
    row5
    row6
    What I need is when user select row1 or row2, both row1 and row2 should be set to be selected. Then if user press CTRL and click one of row3 or row4, both of them should be selected including the previouse selected row1 and row2.
    For deselection, if row1 and row2 are selected, when users deselect one of row1 or row2, both of them should be deselected.
    Hopefully someone can give me a hint.

    Here is a partial solution using a JList. Only one line gets highlighted when the user makes a selection in the list. But, two lines are returned. There is a blank line between every two lines.
         private void addLineToList() {
              String a = f_one.getText();
              String b = f_two.getText();
              if (a.length() == 0) {
                   Utils.showInformationMessage("Item field is empty.");
                   f_one.requestFocusInWindow();
                   return;
              if (b.length() == 0) {
                   Utils.showInformationMessage("Match field is empty.");
                   f_two.requestFocusInWindow();
                   return;
              model.addElement("item: " + a);
              model.addElement("match: " + b);
              model.addElement(" ");
              int size = model.getSize();
              pairList.setSelectedIndex(size - 3);
              f_one.setText("");
              f_two.setText("");
              f_one.requestFocusInWindow();
         private void editList() {
              if (pairList.getSelectedValue().toString().equalsIgnoreCase(" ")) {
                   Toolkit.getDefaultToolkit().beep();
                   f_one.requestFocusInWindow();
                   return;
              if (!f_one.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Item field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   OptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              if (!f_two.getText().equals("")) {
                   int result = JOptionPane.showConfirmDialog(this,
                   "The Match field contains text. Replace the text?",
                   "Flash Card Activity", JOptionPane.YES_NO_OPTION,
                   JOptionPane.INFORMATION_MESSAGE);
                   if (result == JOptionPane.NO_OPTION) return;
              String item = "";
              String match = "";
              int index = pairList.getSelectedIndex();
              String choice = model.getElementAt(index).toString();
              if (choice.startsWith("item")) {
                   item = choice;
                   match = model.getElementAt(index + 1).toString();
                   model.remove(index);
                   model.remove(index);
                   model.remove(index);
              else {
                   item = model.getElementAt(index - 1).toString();
                   match = choice;
                   model.remove(index + 1);
                   model.remove(index);
                   model.remove(index - 1);
              int size = model.getSize();
              if (size > 2) {
                   pairList.setSelectedIndex(size - 2);
              f_one.setText(item.substring(6));
              f_two.setText(match.substring(7));
              f_one.requestFocusInWindow();
         }

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • Multiple iPhones with one one computer

    I was using multiple iPhones with one one computer, each iPhone device has it's Owen Apple ID. When I connected my device. I got my mothers photos, contacts &amp; applications. All my applications are deleted, is there a way to retrieve my iPhones photos and applications ?

    Sign out of your mom's account in itunes, then sign in with your account, then restore your phone from your itunes backup.

  • Multiple selections to multiple layers or multiple files with one go ?

    Hi,
    how to convert multiple selections to multiple layers or multiple files with one go ?
    Thanks!

    You may want to ask over at
    http://forums.adobe.com/community/photoshop/photoshop_scripting?view=discussions
    or
    http://ps-scripts.com/bb/
    I think there are Scripts about for the task or at least ones that could be adapted without too much problems.
    The usual approach is, I think, creating a Work Path from a Selection and then using (expanded) Selections based on the individual subPathItems to intersect with the original selection.
    Of course there are possibilities for bad results …

  • Photoshop crashes while using multiple windows with one image

    Has anyone else encountered the following problem:
    Photoshop CS4 crashes sooner or later when working with multiple windows with one image (window->arrange->new window for...).
    I remember having same problem since CS2. Is this a bug in Photoshop or am I having a bad luck?
    Technical specifics:
    Ps CS4, iMac, 21.5, 10.6

    Don't know.  I haven't heard of other people having that problem.
    Do you have a crash report I could look at?
    Or have you attached your email to crash reports sent to Adobe and can you tell me the date on one of them?

  • Create multiple delivery with one invoice

    Hi all,
    can you tell me how to do multiple delivery with one invoice,
    i tried in vf01 by giving their my 3 delivery nos but it is generating three invoices
    pls explain this in details
    points will be rewarded
    regards,
    smmmmmm

    Dear Sameer
    As per your requirement run the Tcode VF04 (Billing Due list) and select the Delivery Documents for which you want to to have single Billing Document by clicking on Collective Billing document/Online  Push Button in that screen.
    To Have Single Billing Document for Multiple Delivery you need to have Payer,Terms of Payment,Incoterms(part 1 and part2) same for all materials orelse the billing document will split and this split analysis is visible during creating of Billing document.
    Hope this will help you in solving your problem.
    Regards
    PSH

  • Wanted Computer Controled Electronic Cards with Software for Motion Control

    Hi everybody
    Already worked on designing a cnc table to cut sheet materials.
    But we don't know enough for electronics. We think a system which is
    software driven from pc. So, we look for Wanted Computer Controled
    Electronic Cards with Software for Motion Control but we don't know more
    which motors, electronic cards and control panel we have to use.
    Please help me. Thanks.
    Atilla KESKEKLER
    Ahmet Bayman Cad. No 10/4 Otosanayi 4.Levent 80650 Istanbul Turkiye
    Tel: + 90 212 270 74 00 Fax: + 90 212 270 75 89
    www.aareklam.com.tr [email protected]

    Dear Atilla,
    You should contact AutomationSolutions (www.AutomationSolutions.com) to receive help with designing your system. They can spec your motors and help you picking the correct controllers and drivers from National Instruments to control the motors that you want to use. Please let me know if you need more information about the capabilities of Motion Control systems from National Instruments.
    Thank You,
    Morten Jensen
    National Instruments

  • Controlling 2 videos with 1 control ?

    when i import a video into flash 8 i can attach prebuild
    controls to it. can i use these controls to control 2 videos at
    once ?

    i got it to work with the following code using custom ui
    elements :)
    thanks again to charles.crepin and maybe it will help
    Nickels55.
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns1:NetStream = new NetStream(nc);
    ns1.play("flv/Main_Teil_1.flv");
    var vWin1:
    Video;
    vWin1.attachVideo(ns1);
    var ns2:NetStream = new NetStream(nc);
    ns2.play("flv/Main_Teil_2.flv");
    var vWin2:
    Video;
    vWin2.attachVideo(ns2);
    var nDuration:Number;
    ns1.onMetaData = function(oData:Object):Void {
    nDuration = oData.duration;
    var btPause:Button;
    var btPlay:Button;
    var btStop:Button;
    btPause.onRelease = function():Void {
    ns1.pause();
    ns2.pause();
    btPlay.onRelease = function():Void {
    if(ns1.time < Math.floor(nDuration) ){
    ns1.pause(false);
    ns2.pause(false);
    } else {
    ns1.seek(0);
    ns2.seek(0);
    };

Maybe you are looking for

  • When I export a photo, iPhoto crashes

    Hi, I have a problem with exporting photos from iPhoto. This is what it says. Does anybody recognize this problem and can give me some advise how to solve it. Thanx in advance. Process:         iPhoto [681] Path:            /Applications/iPhoto.app/C

  • Using Toplink with JSF

    This kind of crosses the boundaries of 2 forms. And since I'm not getting much response over in JDev perhaps this forums residents could help shed some light on the problem: Updating Toplink objects with JSF

  • Thunderbird mailing list cuts off some addresses

    I have a relatively small mailing list of 13 addressees in my address book. When used in an e-mail, only the first 7 or 10 (different attempts produced different results with same list) addressees on the list get listed in the To: - area of the sent

  • Compile for Debug Results in "Error: No more data to read from socket"

    I am testing the debugger in SQL Developer, and although I can compile objects normally (using the menu/tool bar options), when I compile a procedure for debug, I get this message: Error: No more data to read from socket There is no sql error message

  • Java Dictionary Project + create autonumber for KEY field?

    Hi there, I would like to create a Java Dictionary project that has a table with an AUTONUMBER as the key field. I know exactly how to do this in SQL Server using the IDENTITY field but cannot see an option when using the Java Dictionary project? Any