Use JMF to play movie in app

Hey,
I have a project in which I want to play a movie (this works already).
But it now only plays the movie, I also want to see my app.
So i want to have a movie playing and at the same time want to go through my application.

Go look at this example.
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/SwingJMF.html]

Similar Messages

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • Re: Use JMF to play mpg file

    Hi
    You have to write your platform for targeted answere. But if I got the same problem when I tried to run my jpg on not system where jmf was not (properly) installed. It is quite possible your jmf to lack its native libs (on Win, DirectShow is used for mpg playing).
    Possible solution: reinstall and make shure that dlls are in your win dir.
    If on win, try playing your files with MediaPlayer (MS).
    HtH

    Go look at this example.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/SwingJMF.html]

  • How to use JMF to play the video data in a array(not in a local file)?

    dear all:
    I am a newer to JMF.
    Now My program has a thread which is always inputing mpg video data into a static array, so I want to wrap this array as a DataSource, then let the player play the video.
    But I don't know how to wrap that as a DataSource, What I know is just play a media file.
    So could any guy give me some advice??
    Really appreciate your help!
    Thanks
    Sam
    MSN: [email protected]
    Email: [email protected]

    I have never tried doing what you are soing so I am just thinking aloud. I think that using datamerge for this is going to assign the same ID to the fields, which is why the checkboxes are filling when selecting one of them. Open the PDF in Acrobat to check it though.
    Another thought. Are you merging to a new document or direct to PDF? If going direct to PDF, try creating the merge document first. If that doesn't work, I think it will be the field IDs being also replicated. If so, then the only course of action would be either manually changing them in Acrobat, or an ID script and or an Acrobat script. Neither of which I have heard of. But if they do have the same IDs, then I would inquire in both the ID scripting forum and the Acrobat forum.
    Good luck. Interesting use of datamerge. I hope you find a suitable answer.
    Mike

  • Why can't I use Lion to play movies and music vita remote?

    I Snow Leopard it was pussible to ge acces to all the movies, music etc. vith the remotecontrol. Why cant I do that in Lion?

    softwater wrote:
    You need to make Front Row work on Lion.
    Have a look here for how to do it:
    http://applehelpwriter.com/2011/07/26/how-to-make-front-row-work-in-lion/
    This scenario is not supported by Apple or whomever. If something goes wrong .. well, a warning should be included if we point at such "custom" solutions.
    Also this will not help him in iTunes Library content in FrontRow... iTunes 10.4.x uses a Library format that FrontRow in Lion can't read any longer.. and if he has a ipod/iphone/ipad he surely can not afford to stick life-long with iTunes 10.3..
    to me this is NO solution but full of unknown future hickups, just saying. FrontRow is gone, the sooner one gets used to it, the better. What if 10.7.2 will break this "workaround" ? and what with future iTunes ? .. you see what I want to say..

  • Some questions while using JMF play mpeg-1 stream media?

    I use Helix server to provide unicast, and use JMF to play the stream media. But the JMF only play the audio stream transferred by rtp. I have used video palyer�s getVisualComponent() method to get Visual component and added it into the frame. But I get a pink screen. So I think some thing wrong with the video player.
    Who can give me an answer?
    1.     Whether JMF can play mpeg-1 video stream media?( Audio can be heard. Video stream comes to my computer but can�t be displayed.)
    2.     Which method it should use to synchronize video stream and audio stream?
    BTW: In JMF, when the RTSP player�s start() method is invoked, the player creates players by the stream�s track numbers. Video stream and audio stream have different players.

    Try posting your question under the Java Media Framework forum instead.
    You'll get much better responses if you ask the right people !
    regards,
    Owen

  • Jmf to play audio file in jsp

    hi,
    i am using jmf to play an audio file in jsp page.
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.
    How can i resolve the issue?
    Thanks and Regards
    jai

    Jaisha wrote:
    ..i am using jmf to play an audio file in jsp page.Why JMF? Core Java has had the ability to play sound since J2SE 1.3, using [Java Sound|http://forums.sun.com/forum.jspa?forumID=541].
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.I'm guessing you are a newbie to web development. To get the sound to play on the client, will require an applet or JWS launched application.
    How can i resolve the issue?Write an applet or JWS launched app.

  • Is it possible to use an external drive to play movies on my iPhone 5?  I am going on a long flight and only have a 16gb iPhone.  I will not have access to wifi, so it would have to connect manually.

    Is it possible to use an external drive to play movies on my iPhone 5?  I am going on a long flight and only have a 16gb iPhone 5.  I will not have access to wifi, so it would have to connect manually.  I've heard of apps that connect to an external for this very purpose, but its via wifi. 

    http://www.seagate.com/external-hard-drives/portable-hard-drives/wireless/seagat e-satellite/
    Use Google and you can find similar drives from other companies.

  • I have just updated my iphone 4s with ios7. since then i cant play movies from my netflix app with my av cable bought from the apple store. i get a message saying switch off mirroring on airplay, idont have air play and i dont have an apple tv. can anyone

    I have just updated my iphone 4s with ios7. Since then i cannot play movies from my netflix app using my av cable to tv. which i baught from an apple store. i get a message saying turn off mirroring on airplay. i dont have airplay or an apple TV. what can i do?
    Thanks jonmac22

    Hi Everyone,
    hope this message finds you all in time. The recent Apple TV update 5.1 is terrible. Apple knows it is which is why (thankfully for some relentless user -I have no idea who but I believe it was under threat) they have allowed to sign 5.0.2 again which means you can downgrade your Apple TV 2 and 3 to a 5.0.2 version via iTunes. Who knows how long they will keep the window open but I have downgraded my ATV early this morning. I couldn't post this earlier because I was out all day but I am doing it now.
    Here's how to do it:
    1) Connect your ATV to your computer via a Mini USB (not included with ATV but included with many other electronic devices) - in order for your ATV to appear in iTunes you must FIRST plug the USB cable to your computer and ATV and only THEN plug the power cable.
    2) Download your ipsw restore file from Apple.
    5.0.2 (ATV 2): AppleTV2,1_5.0.2_9B830_Restore.ipsw
    5.0.2 (ATV 3): AppleTV3,1_5.0.2_9B830_Restore.ipsw
    3) In iTunes select yout ATV, hold SHIFT and click on Restore
    4) Find and choose the downloaded IPSW file in the Open Dialog Box and hit Next
    5) As long as Apple still signs that version the Restore process will begin and will take a few minutes to complete.
    Enjoy!
    raadore

  • How to play movie file using java tv

    hi,
    i am trying to play movie file(.mov or mpg or mp3) using java tv in linux plotform and also using jmf jar.
    problem is while running appear black screen and getting exception or errors like
    Unable to handle format: ima4, 480x320, FrameRate=25.0, Length=460800 0 extra bytes
    Thank in adv

    Well...
    I don't know how to load and play a video with JavaTV. But I've seen some posts telling that .mpg files aren't accepted by the JavaTV.
    Some people said that I had to use .avi files and these .avi files, if they were converted from a .mpg file, must had been converted with the Cinepack technology, but I don't know how to do this.
    If you find out how to load and play a video, I'd like to know, please send me an email or access my page and post there in the comments, so I can continue doing my application with a video.
    []'s
    Cauane B.S.
    Computer Science
    CNPq Researcher - TVDi
    http://cauanebs.blogspot.com
    UCPel - Pelotas - RS

  • Cant type on my ipad or play or move any app just like am touching water all shaking

    cant type on my ipad or play or move any app just like am touching water all shaking pls help me i restored my ipad i even rest everything still have this broplem cant play game or any things its carzy help meee

    Hello jackrayan,
    Thanks for using Apple Support Communities.
    I can imagine the frustration you're experiencing with your iPad's display not responding like it used to.  I would feel the same way!
    I'd like you to follow the troubleshooting steps in the following article:
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    If the steps above don't resolve your issue, please schedule a service appointment with an Apple Retail Store for evaluation. If an Apple Retail store is not an option, contact Apple to find out your best service option or see the Service FAQ for your product.
    Take care,
    Alex H.

  • When I use my IPhone 4S to view the Shaw Go Movie Central App when I am at home I only use WiFi which is automatic, I start watching a show and sometimes I will get a message like "you can not use your cellular for video playback" or something close to th

    When I use my IPhone 4S to view the Shaw Go Movie Central App when I am at home I only use WiFi which is automatic, I start watching a show and sometimes I will get a message like "you can not use your cellular for video playback" or something close to that. Then I received an email from Telus saying I had used my 3G instead of Wi-Fi  using 75% of my data. How can this happen when I'm on Wi-Fi at home? If it switched to 3G for some reason I should have been disconnected and not just transferred to 3G network using up my data. What is the fix for this??

    It doesn't have to be that complicated, Verizon iPhones come unlocked, just tell VZ you're going on Holiday/Traveling and suspend the service, no need to pay for service if you're not going to be using it. Pick up local SIM cards in the countries of your choosing, pop them in, re-activate iMessage and you're set!
    I recommend getting a SIM card from the Three network in England, they have great EU roaming rates and free like-home roaming in Italy.
    Set your phone's region to match the country you're in, it'll save from some headaches when calling local/international numbers.
    To answer your questions,
    1. If you choose not to have a local SIM card, it is good to keep your phone in Airplane mode to save battery.
    2. Make sure the two iPhones have different names to reduce sync/restore issues.
    3. If husband has an iPhone also, you can chat with iMessage/Facetime, just give him heads up about the new number you'll have. Otherwise, use Whatsapp if he's got an Android. You can activate Whatsapp with your American number or the international number if you choose to get a SIM in Europe.
    Also, Get the MagicJack app and/or Google Hangouts, both of those apps provide you with free calling to the USA and Canada using any internet connection. Google Voice is another good way to SMS across the seas.
    Let me know if you need any more tips for iPhoning across the pond.

  • I bought a Sandisk Connect Media Drive, downloaded the app from iTunes.  Before iOS 8, movies played fine.  After iOS upgrade I can no longer play movies downloaded from iTunes to the media drive.  Anyone else have a similar issue?

    I bought a Sandisk Connect Media Drive, downloaded the app from iTunes.  Before iOS 8, movies played fine.  After iOS upgrade I can no longer play movies downloaded from iTunes to the media drive.  Anyone else have a similar issue?

    I checked with SanDisk's own online support and they indicate that they have notified Apple of the issue.
    According to SanDisk, the problem lies with Apple not having the iOS 8 version of the Safari browser having DRM decoding enabled that the Media Drive relies upon to decode and play iTunes DRM titles. Non DRM encoded videos will play in the browser.
    DRM audio is not effected as this is handled by the native iOS music app.
    As of the date of this post SanDisk have not been given a timeframe by Apple for this issue to be resolved.
    I hope that Apple resolves this issue quickly as I have a large collection of DRM video titles on a 128Mb memory card installed in the Media Drive that I am unable to view.

  • Playing a wav file (byte array) using JMF

    Hi,
    I want to play a wav file in form of a byte array using JMF. I have 2 classes, MyDataSource and MyPullBufferStream. MyDataSource class is inherited from PullStreamDataSource, and MyPullBufferStream is derived from PullBufferStream. When I run the following piece of code, I got an error saying "EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9108b2, pid=3800, tid=1111". Any idea what might be the problem? Thanks.
    File file = new File(filename);
    byte[] data = FileUtils.readFileToByteArray(file);
    MyDataSource ds = new MyDataSource(data);
    ds.connect();
    try
        player = Manager.createPlayer(ds);
    catch (NoPlayerException e)
        e.printStackTrace();
    if (player != null)
         this.filename = filename;
         JMFrame jmframe = new JMFrame(player, filename);
        desktop.add(jmframe);
    import java.io.IOException;
    import javax.media.Time;
    import javax.media.protocol.PullBufferDataSource;
    import javax.media.protocol.PullBufferStream;
    public class MyDataSource extends PullBufferDataSource
        protected Object[] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected PullBufferStream[] streams = null;
        protected PullBufferStream stream = null;
        protected final byte[] data;
        public MyDataSource(final byte[] data)
            this.data = data;
        public String getContentType()
            if (!connected)
                System.err.println("Error: DataSource not connected");
                return null;
            return contentType;
        public void connect() throws IOException
            if (connected)
                return;
            stream = new MyPullBufferStream(data);
            streams = new MyPullBufferStream[1];
            streams[0] = this.stream;
            connected = true;
        public void disconnect()
            try
                if (started)
                    stop();
            catch (IOException e)
            connected = false;
        public void start() throws IOException
            // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error(
                        "DataSource must be connected before it can be started");
            if (started)
                return;
            started = true;
        public void stop() throws IOException
            if (!connected || !started)
                return;
            started = false;
        public Object[] getControls()
            return controls;
        public Object getControl(String controlType)
            try
                Class cls = Class.forName(controlType);
                Object cs[] = getControls();
                for (int i = 0; i < cs.length; i++)
                    if (cls.isInstance(cs))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Time getDuration()
    return duration;
    public PullBufferStream[] getStreams()
    if (streams == null)
    streams = new MyPullBufferStream[1];
    stream = streams[0] = new MyPullBufferStream(data);
    return streams;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.media.Buffer;
    import javax.media.Control;
    import javax.media.Format;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.PullBufferStream;
    public class MyPullBufferStream implements PullBufferStream
    private static final int BLOCK_SIZE = 500;
    protected final ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM_MS, 8000.0, 8, 1,
    Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
    Format.byteArray);
    private int seqNo = 0;
    private final byte[] data;
    private final ByteArrayInputStream bais;
    protected Control[] controls = new Control[0];
    public MyPullBufferStream(final byte[] data)
    this.data = data;
    bais = new ByteArrayInputStream(data);
    public Format getFormat()
    return audioFormat;
    public void read(Buffer buffer) throws IOException
    synchronized (this)
    Object outdata = buffer.getData();
    if (outdata == null || !(outdata.getClass() == Format.byteArray)
    || ((byte[]) outdata).length < BLOCK_SIZE)
    outdata = new byte[BLOCK_SIZE];
    buffer.setData(outdata);
    byte[] data = (byte[])buffer.getData();
    int bytes = bais.read(data);
    buffer.setData(data);
    buffer.setFormat(audioFormat);
    buffer.setTimeStamp(System.currentTimeMillis());
    buffer.setSequenceNumber(seqNo);
    buffer.setLength(BLOCK_SIZE);
    buffer.setFlags(0);
    buffer.setHeader(null);
    seqNo++;
    public boolean willReadBlock()
    return bais.available() > 0;
    public boolean endOfStream()
    return willReadBlock();
    public ContentDescriptor getContentDescriptor()
    return cd;
    public long getContentLength()
    return (long)data.length;
    public Object getControl(String controlType)
    try
    Class cls = Class.forName(controlType);
    Object cs[] = getControls();
    for (int i = 0; i < cs.length; i++)
    if (cls.isInstance(cs[i]))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Object[] getControls()
    return controls;

    Here's some additional information. After making the following changes to MyPullBufferStream class, I can play a wav file with gsm-ms encoding with one issue: the wav file is played many times faster.
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM, 8000.0, 8, 1,
                Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
                Format.byteArray);
    // put the entire byte array into the buffer in one shot instead of
    // giving a portion of it multiple times
    public void read(Buffer buffer) throws IOException
            synchronized (this)
                Object outdata = buffer.getData();
                if (outdata == null || !(outdata.getClass() == Format.byteArray)
                        || ((byte[]) outdata).length < BLOCK_SIZE)
                    outdata = new byte[BLOCK_SIZE];
                    buffer.setData(outdata);
                buffer.setLength(this.data.length);
                buffer.setOffset(0);
                buffer.setFormat(audioFormat);
                buffer.setData(this.data);
                seqNo++;
        }

  • Error Playing .wav file on RHEL 4 using JMF

    Hi,
    We are using jmf api to play wav files on our application deployed on rhel version 4. But we are receiving the following error
    **"Cannot find a Processor for: myfolder/myAudio.wav" --->
    this exception is comming from javax.media.Manager
    throw new NoProcessorException("Cannot find a Processor for: " + source);"**.
    Any ideas what could be issue with this, am I missing some drivers/processor for wav files? I did a default jmf studio installation.
    Thanks and Regards
    Vikram Pancholi
    Edited by: vpancholi on Sep 8, 2009 8:51 AM

    If we take a look at the supported formats page...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    And the WAV file is supported by the cross-platform pack, AKA, jmf.jar.
    If you're unable to open a WAV file, I'd say it's most likely because you don't have JMF.jar on your library path. You can fix that at runtime with the switch -djava.library.path=<whatever>
    That's what I would say the issue is.

Maybe you are looking for

  • How do I stop getting email notifications from Apple. I have checked all of the "no" boxes. Help!

    How do I stop getting email notifications from Apple support. I have checked all the "no" boxes. Help!

  • Saving adobe forms in DMS through web dynpro application

    Hi all,         I have a requirement in web dynpro where the user enters few data and clicks a generate button. On click of this button i have to generate pdf forms and save it in DMS. I have already designed the adobe form, but i do not know how to

  • Error in Invoice process

    Hello Experts, I need your help. I had an requirement from the client to capture the COGS details are in transit. Created new condition type ZVRS, copy of VPRS. Assigned the Account key and G/L accounts in VKOA. Created the order and ZVRS value calcu

  • IPad Videos-List format?

    Using iPad-2 with iOS 5.1.1.   I have created playlists in iTunes for my home movies, and synced these playlists to iPad. When Videos app is open on iPad, the movies appear as icons in grid view (alphabetical order). I can't find a Playlist List form

  • Message type SHPCON, idoc type DELVRY01

    Hi SAP Gurus, I am using message type SHPCON and idoc type DELVRY01 with processing code DELV to post goods issue for a delivery note. I tried to simulate the inbound entry via WE19. I was not able to proceed with the posting because I encountered er