3 Replies Latest reply: May 14, 2011 9:03 PM by 861980 RSS

    JMF In Fullscreen Exclusive Mode

    852328
      Hello,

      I was wondering if anyone could let me know if JMF is supported inside a Fullscreen Exclusive Application? I seem to have no problem setting up JMF Video output for a standard JFrame/Frame, but when setting a "fullscreenWindow" the Player turns black. I cannot seem to find any posts on whether this is supported or if there are bugs when in Fullscreen Exclusive Mode.

      Thanks
      -Michael Morris
        • 1. Re: JMF In Fullscreen Exclusive Mode
          captfoss
          Never written a fullscreen exclusive application. In fact, I've never even heard of such a thing.

          http://download.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html

          "In full-screen exclusive applications, painting is usually done actively by the program itself"

          Ah. So no, I don't think JMF would support that because it's not going to be actively rendering, only passively rendering in response to paint requests. It's AWT/Swing based, after all...

          But, the fact that JMF doesn't support it does not mean JMF can't support it. JMF provides a custom Renderer interface which you could implement to actively render the stuff. It'll essentially give you a copy of the video frame in a Buffer object which you can then turn into an image using the BufferToImage class and then render that however you'd render an image for a full screen exclusive application...
          • 2. Re: JMF In Fullscreen Exclusive Mode
            852328
            Thank you, this is what i has been thinking it would come to. I was simply not sure if there were any other methods of getting this to work in FullScreen Exclusive Mode.

            I'll be checking what I can do to actively render each frame. But I wonder how this will effect speed of video playback. Granted in my situation I only want to play a small, maybe 10 second, video, I wonder if video framerate will be hurt in the process of rendering each frame and painting to the screen.

            Thanks for confirming this for me.

            Cheers
            Mike
            • 3. Re: JMF In Fullscreen Exclusive Mode
              861980
              Hi,

              Did you managed to solve this issue?

              Cheers

              Nicolas