Results 1 to 8 of 8
  1. #1
    TTD03 is offline Member
    Join Date
    Mar 2016
    Posts
    2
    Rep Power
    0

    Default Playing .mpg video in Java without controls

    Hey all, new to the site!

    So I am wondering if there is a way I can play .mpg video clips in a series, with one .mpg following the next, with the next video being determined by a keyboard input while the previous video was playing.

    Additionally, is there a way to play .mpg videos without a "media player" setting? IE, I don't want any controls to be available for use, I just want the video playing in a full or windowed screen mode.

    Thanks all!

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Playing .mpg video in Java without controls

    I haven't done this myself but you may want to check out the Java Media Framework. There may be some classes that either provide that capability or can be subclassed and modified to provide it.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    TTD03 is offline Member
    Join Date
    Mar 2016
    Posts
    2
    Rep Power
    0

    Default Re: Playing .mpg video in Java without controls

    Quote Originally Posted by jim829 View Post
    I haven't done this myself but you may want to check out the Java Media Framework. There may be some classes that either provide that capability or can be subclassed and modified to provide it.

    Regards,
    Jim
    Thank you! I've looked into it. It just looks confusing as hell, especially since I am new to this.

    If anyone else has any suggestions, please let me know!

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Playing .mpg video in Java without controls

    JMF has been dead for quite some time now.

    JavaFX has a MediaPlayer class for loading media (including MP3 files).
    I would look at that (and the associated MediaView).
    Most things in FX are configurable so you should be able to set it up the way you want.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Playing .mpg video in Java without controls

    Quote Originally Posted by Tolls View Post
    JMF has been dead for quite some time now.
    Well! So much for my sagacious advice. :)

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Playing .mpg video in Java without controls

    Quote Originally Posted by jim829 View Post
    Well! So much for my sagacious advice. :)

    Regards,
    Jim
    To be fair, I did have to look it up.
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    6

    Default Re: Playing .mpg video in Java without controls

    The supported container types for video are (besides other types) MP4 containers, so files with the extension .mp4, .m4a, .m4v

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Playing .mpg video in Java without controls

    That should have read "MP4" above...:)
    JavaFX MediaPlayer handles (or says it does) .mp4, .m4a and .m4v files...according to the api page.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Playing video from a Java based Engine
    By shiraha in forum New To Java
    Replies: 2
    Last Post: 01-31-2012, 05:13 PM
  2. playing a video in a java application using jmf
    By 200808147 in forum Advanced Java
    Replies: 3
    Last Post: 08-17-2011, 03:01 PM
  3. Video clips in side bar start playing automagically.
    By JosAH in forum Suggestions & Feedback
    Replies: 10
    Last Post: 05-26-2011, 09:01 AM
  4. Replies: 2
    Last Post: 02-03-2011, 03:07 AM
  5. problem with playing video in javafx application
    By kiranblighty in forum JavaFX
    Replies: 1
    Last Post: 02-27-2010, 12:09 AM

Tags for this Thread

Posting Permissions

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