Playing a sequence of video files

Dear all,
I'm trying to use JMF to play a sequence of video files, i.e. one after the other.
The program I have written creates multiple players, one for each video file. It then realizes and prefetches them all. Then the program starts the first player and on an EndOfMedia event, plays the next and so on.
The problem that I have is that on my Swing gui, it shows the first video but none of the rest, although you can hear the audio! Below is the code that is called on an EndOfMedia event to start the next player.
    private void nextInSequence() throws EndOfSequenceException {
        // Close Previous Players
        if (current > 0)
            clipPlayers[current-1].close();
        // No more clips in sequence
        if (current >= clipPlayers.length)
            throw new EndOfSequenceException();
        myVisual = clipPlayers[current].getVisualComponent();
           if (myVisual != null) {
              visualPanel = new Panel();
               visualPanel.setLayout(new FlowLayout());
               visualPanel.add(myVisual);
               add("Center",visualPanel);
        else {
            remove(status);
               add("Center",status);
               status.setText("No VisualComponent available.");
        validate();
        myVisual.setVisible(true);
        // start current player
        clipPlayers[current].start();
        current++;
    }I have set the LIGHTWEIGHT_RENDERER hint for the manager. The nextInSequence() method shown above is in a class extending JPanel.
Anybody any ideas?
Many thanks,
Oli Gosling

Hi,
Im having a similar problem and i was wondering if you were able to get a solution??
Thanks for your help.

Similar Messages

  • IPhone 4S keeps playing audio from a video file that is no longer on my phone.

    If I'm listening to music and try to change tracks or pause with the earbud buttons the music fades out and starts playing audio from a video file. It will only play about 3-4 seconds and then stop. This also will happen when double clicking the home button to try and change tracks. When I do that the track skipping buttons won't work and there's no title for the short bit of audio that plays. The only way to get music to start playing again is to go into music and press play again. The music I had been listening to is sitting there paused. The audio from the mystery video file still sometimes plays even when you're in music and the only way you would know is the little play icon at the top right part of the screen. I have removed every video off of my phone and it still does it. This is really frustrating.

    Sounds like a bad battery.  You'll need to bring the phone into Apple for evaluation.
    I'm sure you've been using your phone as designed and properly backing up your data, so you should have minimal, if any data loss should the phone need to be replaced.

  • What HTML code do I need to get Adobe Flash to play an embedded MP4 video file (8 MB)?

    What HTML code do I need to get Adobe Flash to play an embedded MP4 video file (8 MB)?
    Thanks
    Mark

    Here are a couple of ways, one using the Netstream class and the other using the FLVPlayback component.
    For the NetStream approach, the following in the timeline code will play/loop the intended mp4 file...
         var video:Video;
         var connect_nc:NetConnection = new NetConnection();
         connect_nc.connect(null);
         var stream_ns:NetStream = new NetStream(connect_nc);
         stream_ns.client = this;
         function netStatusHandler(p_evt:NetStatusEvent):void {  
             if (p_evt.info.code == "NetStream.Play.Stop") {
                 stream_ns.seek(0); // to loop the video
         stream_ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
         video = new Video();
         addChild(video);
         video.attachNetStream(stream_ns);
         stream_ns.play("path_to/your.mp4");
    For the FLVPlayback component, add it to the stage, give it an instance name ("fp" used below), assign your mp4 file ("path_to/your.mp4") as the source property in the Properties panel, and select the option to autoplay as well.  Place the following code in the timeline...
         fp.addEventListener(Event.COMPLETE, playAgain);
         function playAgain(evt:Event):void {
             fp.play();
    To put the Flash swf file in an html page, in the Publish Settings set it to publish an swf and an html page.  Publish the file an the html page will be created for you.

  • Need Help for Embed Tag to playing all type of video files in any browser

    Hai,
    I am using the following Embed Tag for playing video files in Browsers.
    <OBJECT
    ID="mediaPlayer"
    CLASSID= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    TYPE="application/x-oleobject"
    STANDBY="Loading media player components..."
    HEIGHT="200" WIDTH="250">
    <PARAM NAME="showcontrols" VALUE="true">
    <PARAM NAME="autostart" VALUE="false">
    <PARAM NAME="loop" VALUE="false">
    <PARAM NAME="filename" VALUE="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>">
    <EMBED TYPE="video/x-msvideo"
    STANDBY="Loading media player components�"
    CONTROLLER="true"
    CONTROLS="ImageWindow,ControlPanel"
    SHOWCONTROLS="true"
    AUTOSTART="false"
    HEIGHT="200" WIDTH="250"
    SRC="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>" >
    </OBJECT>
    But this Embed Tag does not playing such type of video files(ex: *.flv, *.mov, *.avi etc.,)
    i need to play all types of video files using the Embed Tag.
    Can anyone please help me for this.
    Edited by: devtamil on Oct 3, 2007 12:27 PM

    Hi,
    Im having a similar problem and i was wondering if you were able to get a solution??
    Thanks for your help.

  • Play meny kinds of video files located at client?

    I want to play *.rm, *.asf, *.mpe, *.avi video files , How to write HTML code to play them according its format? my code can not play video file but only a black background:
    <object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='MediaPlayer1' >
    <param name=&#21333;&#36873;13.avi' value='C:\\testtest\\mmes\\&#21333;&#36873;13.avi' height='100' width='150'>
    </object >
    How to........
    thanks in advanced

    anybody would like to give me some code?

  • Playing .exe or .dvr video files on macbook pro.

    I know that .exe means executable files which are windows files, and i know that these files don't contain viruses i backed up video files from our surveillance video at a location that isn't at home. i want to view these files on mac and do a project on iMovie.

    A .exe cannot be used on a Mac. You would need a PC or run Windows on your Mac. I'm not familiar with the .dvr format. It may be possible to convert them to a format playable on a Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    1. Install the Apple Boot Camp software. Purchase Windows XP w/Service Pak 2 or Vista. Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows. Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7. Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7. VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows. The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris. It is not as fully developed for the Mac as Parallels and VM Fusion.
    6. Last is Q. Q is a freeware emulator that is compatible with Intel Macs. It is much slower than the virtualization software, Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc. There are performance differences between dual-boot systems and virtualization. The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system.
    See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion.
    Boot Camp is only available with Leopard or Snow Leopard. The Boot Camp Beta that was used with Tiger has expired and is no longer available for use. So contrary to the other poster's comment, Boot Camp isn't truly "free." You must purchase Leopard or Snow Leopard to get it.

  • Cannot play Cyber shot camcorder video files

    I have a new touch-screen 'Toshiba Qosmio and am trying to find my way around it...
    I have a Sony Cyber-shot camera and used to upload all my pictures and videos to my previous p.c. using Picasa, but I do not have this program on my Toshiba.
    I have uploaded my latest photos and videos into My Pictures and all files are listed with their thumbnails.
    However, when I attempt to play a video by double-clicking, Toshiba Video Player tells me "this video cannot be played back".
    Can anyone tell me why this is and how I can access these files and play them back?
    I shall be really grateful.
    Thanks in anticipation.
    AthenaB

    Hi
    Maybe you should try another video player since not all video formats are supported by Toshiba video player.
    Did you test the VLC player?
    Recommend doing this.. the VLC player is a freeware tool
    I would also recommend checking the camcorders user manual to get some info about the file formatthen you could search for tools which would handle the camcorders file format.

  • FireFox is not playing sound on any video files. Youtube, Hulu, etc. I am not having this problem with the other web browsers on my computer.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/908837]]</blockquote>
    I think it is related to a babylon add on that my son installed. I don't know how to get rid of it.

    Hi,
    To check if Babylon is the cause: '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''', click '''Extensions''' on the left , '''Disable''' and restart. Likewise for other suspected add-ons. You can disable / enable more than one or all.
    You may also want to check [https://support.mozilla.org/en-US/kb/No%20sound%20in%20Firefox?s=windows+7+sound&r=0&as=s this.]
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Can Flash play multiple audio and video files at the same time?

    Hello,
    I would like to create a web-based client/application that
    can play multiple a/v files or stream multiple a/v files at same
    time. Is this possible with Flash, without the use of RTMP? If yes,
    can you please provide an example. Thanks in advance.
    Regards,
    Nilang

    You never edit within a clip. The purpose of opening a clip is to make sync adjustments, audio equalization, color correction, stabilization, things that you might want do overall to the master clip before you edit it. You edit the portion of the clip you want from the browser into a project. There is really very seldom any need to open a clip into the timeline.

  • Nokia 700 cannot play all the regular video files

    My new Nokia 700 cannot play all video that played perfecly on N8. Why? I hoped new more poverfull hardware can handle more codecs. Very dissapointed. Any chance to upgrade from nokia firmaware? 

    Hi kompotFX,
    You can find more information here on this matter 
    http://discussions.europe.nokia.com/t5/Phone-Applications/Nokia-700-video-and-audio-codecs/td-p/1224...
    Regards,
    haZey
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Satellite C50-A-15L: unable to play music or video files via media player

    Hi all
    I am having problems with my media player and explorer functions all of a sudden - it seems to have occured after a recent 'important update' (always causes more issues than fixes).
    Anyway, since this update, I have been unable to play any music or video files via the media player or cut and paste any items when sorting files out.
    All fine previously, but now when I highlight and click 'cut', the timer cuts in and the window goes straight to 'not responding'. Drag and drop works OK, then going back to delete files.
    As for media files, double click one and no response, right click and 'open', again, nothing...
    Anyone else experienced similar problems?
    Of know of a fix or patch?
    Many thanks
    Matt

    From my point of few you have no problems with notebook but with Microsoft system.
    "Hotmail" isnt Toshiba product.
    If you have problems login the Hotmail account, you should contact the Microsoft support for help.
    By the way: you can always set the system back to early time point before you received any updates.
    Windows 8 creates a restore point for you automatically during Windows Updates and other system maintenance events.
    Open charm bar (Win key + c), choose Apps and search for Restore Point. Then click on Settings. On the left hand side you will see the option called Create a restore point.
    New window would open. Within the System Protection tab choose System restore.
    Clicking on Next would lead to next step where you could restore the computer to the sate it was before the selected event (windows update).

  • Windows Media Player Doesn't play video files or DVDs (Windows 7 Home Premium)

    Hello,
    I recently purchased a new hard drive and installed Windows 7 Home Premium on it. Since then, Windows Media Player has not been able to play any kind of video files or DVDs. I have tried using the Fixit tool and turning the WMP off and on with the Windows
    Features menu, but it has not solved the problem. I have also made sure that my video and audio drivers are up to date.
    The errors that come up say:
    Windows Media Player cannot play the file. The Player might not support the file type or a required codec might not be installed on your computer.
    and
    Windows Media Player cannot play DVD video. You might need to adjust your Windows display settings. Open display settings in Control Panel, and then try lowering your screen resolution and color quality settings.
    Any help with this would be great, because I like using WMP better than other media players.

    Hi,
    Firstly, please try to use the Video example in C:\Users\Public\Videos\Sample Videos if it could play normally.
    Secondly, try to reinstall Graphic Card driver for test.
    If problem persists, try to remove WMP in Windows feature and add it again for test.
    Roger Lu
    TechNet Community Support

  • Encore wont play video files

    I recently upgraded encore from ver.2 to cs3 and find that ver.cs3 wont play video files.
    It wont play the file in the project window, it just stops at the first frame. If I move the slider below the viewer the video material is updated but it wont play.
    In the monitor view it wont play either, I can view the material by manually moving the cursor.
    It wont play a preview either, it just stops.
    It builds a DVD without problems and the dvd plays fine without errors but the program wont play any video files.
    Ver.2 plays all the same video files without problems.
    Please help!

    Whew!
    Glad that you got it fixed, and thanks for posting what worked for you.
    Good luck with the interview,
    Hunt
    PS - BTW, welcome to the forum!

  • Cannot play video files in new photos app for mac

    Hi There,
    I recently moved from an older imac to a new one (both had Yosemite installed). I moved my photos over by copying my old photo library file and pasting it to replace the same file on the new mac. All my photos came over fine, however i am unable to play some of the video files. I get a warning saying 'Cannot Play file - Photos cannot play this video. Do you want to try opening it in Quicktime Player?'. If i try in quicktime it won't open either.
    What's strange is that when i go to the info tab for these videos they show as .MOV files that were taken on an iphone 5S - but they are very small in size - 5KB or so. Perhaps the size of the thumbnail image only. Any ideas on how i can fix this? When i open them on the old mac i get an other warning issue stating 'The necessary data reference could not be resolved'
    Thanks in advance for any help.
    John

    At that size, what copied over is just the reference to the video file, not the video itself. Some suggestions:
    1. In iPhoto, select the video, then in the File menu select Reveal in Finder. If this finds the original file, add it manually to Photos.
    2. Perform a Spotlight search for the video file title/name. If found, move to Photos.
    3. If you imported or modified the files in iMovie, launch it and find/export the originals from there.

  • Can't play any music or videos after 7.4.3.1 upgrade

    Any body seen this type of problem after the update??
    After upgrading to iTunes 7.4.3.1 I can't play any music on my PC. iTunes allows me to select the tune piece from the library, loads the player and just sits there not advancing the song.
    If I try to play am MP3 through Windows Media Player same thing happens. I also can't play any of the video files I have on dick either. They play a few seconds worth, pause, then play a pit more and it repeats.
    Thanks
    Jay

    +If I try to play am MP3 through Windows Media Player same thing happens.+
    If two of your media players are doing that, we'd better have a look in your control panels.
    Open your "Sounds and Audio Devices" control panel. Click the "Audio" tab.
    Is the correct default device showing up in the "Sound Playback" area?

Maybe you are looking for

  • Sharp edges on MacBook Pro

    What chances are there of Apple changing it's sharp edge design on future Mac Book Pros? I've just returned a 13" MacBook Pro because the front edges are so sharp they left red marks on the the sides of my hands hurt after 2 hours of typing with the

  • Error message when trying to open PHP include?

    Hi there, I have seen a number of posts here about issues with Contribute editing PHP pages and am starting to get concerned... I have another one to add to the list. I have created a site that uses PHP includes for the header and the drop down menus

  • Is this possible to access arbitrary frame and to modify the mask?..

    Sorry for a bit messy discussion title. Please, let me explain. I have some experience in implementing video processing algorithms, but as our own software and never under AE. Now there is an idea to implement something for AE and first of all, I'm c

  • Xml reading specific node and putting them in hashtable

    Hi Friends I have to create program to print xml filenames and the id (which is a tag) inside the xml file. the filenames i have to print are the names of xml files themselves and then they have id taginside the file and there can be more then one id

  • I downloaded h2o videos and i did not get them on my ipod only my computer

    i downloaded some h2o videos and i only got them on my computer not my i pod how can i fix that