Results 1 to 2 of 2
  1. #1
    Godslug is offline Member
    Join Date
    Mar 2012
    Rep Power

    Default Play A Video in JFrame

    Hey everyone, I recently decided to make a text adventure for a Sci-Fi General Elective final project. To introduce the player (my teacher) to the plot, I wanted to create a short video rather than have him read a few paragraphs of text. The issue is, I can't figure out how to play the video in Java. Most of the links google brought me to all discussed how to create an actual media player. All I want is to simply have about a 1 minute video (format doesn't matter I can always convert to the easiest format to use) play in JFrame before the player is brought to the "main menu".

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Play A Video in JFrame

    JavaFX has the capability to show video, but supports only a few specific formats'codecs.
    Incorporating Media Assets Into JavaFX Applications: About This Tutorial | JavaFX 2.0 Tutorials and Documentation

    If you go that route and have a question, please post in the Java FX forum.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to play a video from a file using jmf in a java
    By 200808147 in forum New To Java
    Replies: 0
    Last Post: 07-10-2011, 12:20 PM
  2. Class to play variety of video formats
    By Swankee in forum New To Java
    Replies: 0
    Last Post: 10-12-2009, 08:38 PM
  3. How to play video files in Java
    By Hasan in forum Advanced Java
    Replies: 11
    Last Post: 04-26-2009, 11:57 PM
  4. code to play Video from server
    By arvind in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-15-2009, 09:19 AM
  5. Play sound and Video in a Mobile Phone
    By luisarca in forum Sun Java Wireless Toolkit
    Replies: 2
    Last Post: 05-23-2007, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts