JMF Play files in a sequence one after another

Hi
i developed a JMF based player for playing more than one files in a sequence one after another.
problem is that it playes all files at same time.
it should run 2nd file when one file is completed.

I think time period or state of media will be helpful

Similar Messages

  • Playing movies in Front Row one after another automatically?

    I have a number of short video clips that I can watch with Front Row. However, every time a clip ends, I have to go and click “play” on the next clip and this is annoying. I am wondering if there is a way to make movies play one after another without stopping. Thanks for the help!

    David,
    Thanks for the help. I'm still thinking there must be SOME way to pull this off. It seems like Mac's can do just about anything if you take the time to figure it out. Why wouldn't the people who designed Front Row not add this feature? It doesn't make any sense. There has to be a way. Anybody else have any ideas?

  • Processing JMS messages in sequence one after another

    This is my use case which I wan to implement in OSB.
    1. I have a queue which will receive messages in huge numbers from a single sender.
    2. I have a proxy which will read each message and process the message and send it out.
    In step 1 , I want each message to be read sequentially and when step 2 finishes executing then I want to read the next message from the queue.
    I need to give an acknowledgment to JMS that the message has finished processing and it can make the next message available to the proxy.
    What is the best option to implement this use case ?.
    Regards

    By default Weblogic JMS Queues are FIFO. But that is true only if there is only one consumer of the queue.
    In case of a clustered environment that is not true and in case of OSB even with a single managed server multiple threads are created for a JMS listener Proxy(by default 16). So there will be 16 instances of the Proxy trying to read messages from the Queue and each will be handed out a message and sequential integrity is disturbed.
    There are three ways to overcome this problem:
    1. Unit of Order
    This is suitable only when you want messages of the same group to be processed sequentially while multiple groups can be processed in parallel.
    For e.x. you are getting multiple orders for multiple customers and you want to ensure that the orders of same customer are processed sequentially (in case a customer tries to change the quantity of an order then the latest one should be processed last). In this case you can set UOO as the CustomerID and each customer's order will be processed sequentially but orders of different customers will be still processed in parallel. WLS JMS achieves this by assigning a target queue instance on the cluster for each UOO value. It will assign Q!MS1 to CustID=1, Q!MS2 to CustID=2 and so on. All messages of the same UOO(of the same customer) will go to the same instance on the queue. Furthermore it will ensure that no two messages of the same UOO are released together to the listeners. So if a queue instance has 5 messages each of both Cust=1 and Cust=2, only one message each of Cust1 and Cust2 will be processed by the listeners even if there are 16 listening threads.
    Pros and Cons:
    Overall performance is improved since you can still achieve some parallel processing.
    There will be a slight overhead of processing the UOO headers on the JMS servers.
    Can not ensure sequencing of all the messages. (Although you can achieve that by setting the same UOO on all the messages)
    If the managed server assigned to a UOO is down, if a publisher tried to put the next message for that UOO, it will fail since it will not try to send that message to any other managed server.
    2. Single threaded processing
    If you don't want to process even different groups of messages in parallel and if you want absolute sequencing (i.e. irrespective of the CustomerID you want all the messages to be processed in the sequence they arrive) you will need to process them in a single threaded model. The JMS queue should be deployed on only one managed server of the cluster. The JMS proxy listening to the queue should also be deployed on a single managed server(You will need to change the targeting for the EJB created for this Proxy in the Deployments) and there should be a Work Manager for this Proxy with Maximum Thread Constraint set as 1. In the Connection Factory which the Proxy uses, set the Maximum Messages per session to 1. Another approach for Single threaded could be to set the same value of UOO on all of the messages. This will make all the messages to go to the same Q instance in the cluster and also will make sure that even if Proxy has multiple threads, only one message will be processed at a time.
    Pros and Cons:
    Completely single threaded processing, will take more time since messages will be processed one after the other.
    Load balancing will go awry as all the messages will be processed by only one server.
    3. Using custom implementation
    The most complex way is to create a completely custom implementation. Put all the messages in a DB and then process them one at a time based on timestamp.
    Pros and Cons:
    It will take more effort to implement than the other two approaches.
    It will again need single threaded processing after the messages are put on the DB
    Performance wise there will be more impact because of additional DB calls
    More complex to maintain
    Based on your exact requirements you can choose which approach you want. If you have SOA suite as well them it would be better to move this solution to SOA suite as OESB(Mediator) component of SOA suite has re-sequencing feature.

  • Play a series of Presentations one after another in a loop?

    Is it possible to construct a playlist, with Presentations as the objects within the playlist?  Surely this must be a no-brainer, right?
    I want to loop...
    DO FOREVER
       1) Play presentation #1 for 30 seconds, then...
       2) Play presentation #2 for 10 seconds,
    END

    I found the answer was already posted here --> 
    https://supportforums.cisco.com/thread/2040482?tstart=0
    so, question answered..

  • How do i play two sound file one after another

    Hi All,
    How do i play two sound file one after another using single AudioClip Component?.
    Advance in thanks
    Manivel

    AudioClip gives you very little control over what happens to the sound, it also isn't capable of playing long clips or waiting until a clip ends. It will play multiple clips over top of each other.
    To do what you want you should use the facilities of javax.sound. Here's a post with an example: http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768
    There is also a tutorial, but its example fails for long clips.

  • FCP7 - Queue sequences to render one after another

    FCP7
    I'm restoring some old analogue tapes.
    Each SEQUENCE is about 20 to 30 minutes long.
    I preform cropping, colour correction and apply the Neat Video Noise Reduction filter to each sequence.
    Rendering of each clip takes about 2 to 3 hours approx.
    I set up 3 to 4 SEQUENCES which I'd like to render overnight.
    I have been reading the FCP manual and searching the net and the Apple forums.
    As far as I can tell there is no such thing as a "Render Queue" for Sequences in FCP.
    ie; you add several unrendered sequences to a queue and click "render" and each renders in turn.
    Could someone confirm this for me please?
    So;
    - Is there another way in FCP7 to render sequences one after the other?
    I'll try putting 3 sequences together in another sequence and see how that goes.
    Just not sure if I can seperate them afterwards while retaining the render.
    Thank you.
    Robert.

    Ok, let me see if I understand this correctly.
    - I have a number of sequences which are unrendered.
    - I add them all to batch export.
    - As the unrendered files are exported, they are rendered.
    - The rendered sections are not retained in the sequence in FCP.
    - The rendered sections exist only in the exported files.
    Is that right?

  • How to play two presentations from the DMP one after another and looping

    Can anyone help me on this.I want to play two presenations one after another and looping from the DMP.

    Semuhtu,
    The easiest solution for looping two or more DMD presentations
    is to create a nested playlist within DMD.  You simply
    create a master presentation and add a playlist to this
    presentation.  Add the desired presentations to this playlist
    and then schedule or send the Action to the DMP(s) to play
    the Master Presentation.  The 2 or more child presentations will
    play and loop until you stop it manually.
    Summary of Tasks
    * Using DMD create Presentations (2 or more) that you would like
      to display on the DMP-Display(s).
    * After the presentations are created, you will need to find out
      what the URL addresses are for each presentation. Using the
      "Actions" drop down on the DMM-DMP Manager screen, you select
      a DMP and send the Presentation to the DMP.  Once the DMP displays
      the presentation, access the DMP-DM Web admin page and copy the URL
      address in the "Startup URLs-->Browser" field.   Repeat this process
      for each DMD presentation that you want to loop.
      For example:
      http://dmm.company.com:8080/xTAS-core/appgen/clad/clad_95_.htm
      http://dmm.company.com:8080/xTAS-core/appgen/clad/clad_96_.htm
      and so on...
    * Another parameter or variable that you will need to find out is
      the duration of your DMD presentation(s).  Some Presentations may be
      a slideshow of images and some may contain videos.  Your will need to
      play each presentation on the DMP to determine the duration length of
      each presentation that you will add to the looped playlist. 
    * Create a Master presentation using DMD. In this presentation, you will
      create add a "Playlist" to the presentation by selecting the Playlist
      button-drop down.  Select "All Media Types" and a Playlist object will
      be added to the Master presentation.
      - Double-click on the object to add content
      - Select "Add URL" button in the Playlist Content window.
      - Fill in the required fields (URL Title & Link) in the "Add URL"
        window.  Repeat the process for each presentation that you want
        to add.
      - Set the Duration for each item in the Playlist. Select the Item
        in the list and then DOUBLE-CLICK on the "Planned Duration"
        field and edit the time to desired duration.  Repeat process for
        each item.
      - Save Master Presentation
    * Schedule or use the  "Actions" drop down on the DMM-DMP Manager screen
      send the Master Presentation to the DMP(s).  The Playlist will play and
      Loop after the last item in the Master Playlist.
    If this answers your question, Please take time to mark this
    discussion answered & rate the response.
    Thank You!
    T.

  • How can I make my movies to play one after another automatically?

    I couldn't find the settings to play all my movies one after another.
    Any idea?

    Given the number of threads bemoaning the lack of such features (mostly for music videos) and countless enhancement requests sent here:
    http://www.apple.com/feedback/appletv.html
    ..and the lack of the facility being added in over a year make me think it's unlikely to ever happen but I'd love ot be proved wrong!
    AC

  • Movies play one after another automatically?

    In IDVD 8...can individual movies automatically play one after another without having to return to the menu to reselect the next movie and clicking on it?
    I have 7- 3 min. movies I want to play together ...one after another...automatically in idvd08.

    If I had $5 for every time that has been asked...
    It can NOT be done in iDVD. It can be done in DVD Studio Pro.

  • IDCS6 MACOSX JS: Data Merging many txt files one after another

    Hello everybody.
    I have a situation where I have to data-merge many text files to the one actual indesign "base" file. The formats of the databases are all the same, the point of difference is a code in the second field of the database that refers to a mailing zone (not a zip/postcode, a "distribution centre" code that has 56 or so possibilities). I would prefer to data merge one file and then somehow split the resulting PDF via Acrobat, but the length of the resulting mailing zones is inconsistent and something that can't be done though the "split document" feature in acrobat.
    The database starts out as one massive file but using a one-line  code, can be split into its mailing zones into separate text files.
    My ultimate question: is there any way to data merge more than one file at once (e.g. one after another) and give them their names based on the names of the input text file?
    Ole Kvern had a script to Data Merge one file without the UI. I have altered the last line slightly so that it outputs to a PDF based on [High Quality Setting]:
    if(app.documents.length != 0){
            var myDocument = app.activeDocument;
            app.dataMergeOptions.removeBlankLines = true;
            //Select a source file.
            var myDataFile = File.openDialog("Select a data file")
            var exported = "file location(redacted for the sake of this post)"
            if(myDataFile != ""){
                    myDocument.dataMergeProperties.selectDataSource(myDataFile,);
                    myDocument.dataMergeProperties.exportFile(exported,"[High Quality Print]",);
    I figure the answer has to do with the variable "myDataFile" and rather than being simply open a dialog, it would be somehow selecting an array of text files, but this is where I am out of my depth.
    Any insights or other thoughts that may not involve trying to do many merges at once but may somehow revolve around one large merged PDF?
    Many thanks
    Colin

    I've answered my own question, but the answer lies outside of Adobe InDesign – it uses bookmarks within Adobe Acrobat.
    1) Data Merge the art/data to one large PDF file.
    2) In the resulting PDF file, manually search out the mailing zones and apply bookmarks to each first instance only of each mailing zone. In this case, it is a manual process of find/replace to find one of 70 possible mailing zones that may be used in any database. Each bookmark should be named with its respective code. It is a manual process, but it would take 5 minutes so this is acceptable.
    3) Using "Split Document" from the pages panel, make sure the "top level bookmarks" radio button is checked, and in the Output Options make sure that the "Use bookmark names for files" radio button is checked.
    I'm aware that this was a rather obscure question that only a fraction of users on this forum may wish to know an answer for, but hopefully this workaround helps someone else in a similar situation.
    Colin

  • Appending videos one after another

    Salutations everybody.
    I need to use a MediaPlayer to play multiple video and / or audio files one after the other.
    The idea is that the user will select all the video he wants to hear and then hit the 'Play' button. Then I need to play all those videos in order, one after the other. That is, as soon as one video is done I want to begin playing the next video and so on.
    I assume this can be done ? Anyone can help me on the how to ?
    Thanx !

    The videos must also be checked. I had unchecked them so that they would not be transferred to my iPod that won't play them. It wasn't until I checked them and did the other things in this thread that the videos began to play one after another.
    I would like this to work when the videos are being played at full screen. But I can't seem to get that to work at all.

  • Songs Skip Forward One After Another/Sporadic and Out of Nowhere

    I have an older IPOD 40g that skips through songs, one after another, without playing anything, and seems to do it in any mode, especially in overall Shuffle mode. I have the "shuffle Songs" feature on, but other than that, it has a pretty standard set up.
    I have restored to the defaults, last week, and it started doing the wierd stuff again today.
    Sometimes I have a hard time getting it to unfreeze and reset as well.
    I appreciate any help.

    Have you tried Party Shuffle? If you control click on a track, you can choose "Play Next In Party Shuffle". I often listen the way you're describing. I start listening in Party Shuffle (which I have set to select from a specific playlist). When I am reminded of another song, I select the song and then choose Play Next in Party Shuffle. And so on.
    As for your second question, you could try moving your entire short playlist into Party Shuffle. Once that playlist was done, Party Shuffle would revert to it's normal selection criteria (you could set it to pull from your entire library or a specific playlist). Music would keep playing.
    Can you tell I like Party Shuffle?

  • Playings Videos one after another

    If there any way to play one video one after another, without doing it manually?

    Video playlists won't work on the iPhone, just the regular iPods such as the classic.

  • When I try and open Microsoft Word 2011 documents they start opening one after another at a rapid speed and I can't stop it. I reboot and same thing happens?

    When I try and open Microsoft Word 2011 documents on my  IMAC they start opening one after another at a rapid speed and I can't stop it. I reboot and same thing happens. The documents open in rapid succession on their own and don't stop until I force close or after maybe 100 or more open I start getting the following message for each document attemting to open "This document could not be registered. It will not be possible to create links from other documents to this document" and then in paretheses the name of the document. After I click okay another trys to open. Any suggestions?

    If you had multiple documents open and quit the app without closing all of the docs first, it will open them again when you launch the app. Open Word, and then close all the documents, you may be asked to save the document, if the document was already saved but you made changes to it before you quit the app, you may need to save the changes first, shorcut ( command and s keys). After you close all of the documents then quit the app and restart the computer. See if this works.

  • Displaying images in canvas one after another

    Hi all,
    I have a problem displaying images in canvas one after another. I am using for loop and when i run the application, all images run back in the and only finally only the last image gets displayed in the emulator. I also used thread.sleep(). But it din't work.
    Here is my code:
    // A canvas that illustrates image drawing
    class DrawImageCanvas extends Canvas
    Image image;
    public void paint(Graphics g)
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    String images[]={"paint_2.PNG","radha.PNG","cute.png","design.png","flowers.png"};
    for(int i=0;i<images.length;i++)
    image = null;
    System.out.println("/"+images);
         try
         image = Image.createImage("/"+images[i]);
    catch (IOException ex)
    System.out.println(ex);
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    return;
    if (image != null)
    g.drawImage(image, width/2, height/2, Graphics.VCENTER | Graphics.HCENTER);
    try
    Thread.sleep(5000);
    catch(Exception ex)
         System.out.println("the exception is.."+ex);
    Help me and Thanks in advance.

    See the code below : prefer the use of a Timer and a TimerTask instead of Thread.sleep().
    showNotify (from Canvas) is used to launch the timer.
    import java.io.IOException;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    public class DrawImage extends Canvas {
        Image image;
        String images[] = {"img1.png", "img2.png", "img3.png", "img4.png", "img5.png",
                            "img6.png", "img7.png"};
        Image[] tabImage;
        int imageCounter = 0;
        public DrawImage(){
            try {
                tabImage = new Image[images.length];
                for (int i = 0; i < images.length; i++)
                    tabImage[i] = Image.createImage("/" + images);
    } catch (IOException ex) {
    ex.printStackTrace();
    public void paint(Graphics g) {
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    image = tabImage[imageCounter];
    if (image != null)
    g.drawImage(image, width / 2, height / 2, Graphics.VCENTER | Graphics.HCENTER);
    else{
    System.out.println("null");
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    protected void showNotify(){
    Timer t = new Timer();
    t.schedule(new PhotoSwitcher(), 5000, 5000);
    private class PhotoSwitcher extends TimerTask{
    public void run() {
    if (imageCounter < images.length - 1)
    imageCounter++;
    else
    imageCounter = 0;
    repaint();
    I hope this will help you !
    fetchy.
    Edited by: fetchy on 14 ao�t 2008 09:48                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Can I instal SAP Netweaver 2004s trial on windows vista home premium

    Hi , Can I install SAP Netweaver 2004s trial on WIndows vista home premium. Please advise. One more thing is I am not able to download the Trial version from the SAP's FTP site. Because ftp is blocked in our company. Is there any other site from whic

  • Date In Terminal Shows Wrong Time

    I have a user (iMac Core 2 Duo 2.4GHz, 10.6.7, 6GB RAM) complaining that Entourage is reporting messages being sent/received 5 hours past the actual time. Sure enough, a test message I sent at 2:50 pm shows in her inbox as being sent/received at 7:50

  • Evernote 5.4.0.3698

    http://rorymon.com/blog/index.php/app-v-recipe-evernote/ For this one, personally I decided to deploy the application locally to desktop users but this recipe is useful for deploying with RemoteApp or XenApp PLEASE MARK ANY ANSWERS TO HELP OTHERS Blo

  • Cannot access online help in cs6cc

    Following appears when trying to access Help via CS6CC "Adobe Photoshop CC" There was an error launching the default browser. You ma need to re-install the application and the help component. If the issue is because I do not nor will I ever use Googl

  • Can't download Flashplayer 11.5 to Mac with OS X 10.8

    Tried al of Adobe's troubleshooting steps without success. DL dialog box says DL was successful, but playerv did not install. Any suggestions?