Results 1 to 8 of 8
- 03-08-2016, 10:59 PM #1
Member
- Join Date
- Mar 2016
- Posts
- 2
- Rep Power
- 0
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!
- 03-09-2016, 01:12 AM #2
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
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,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 03-09-2016, 03:35 AM #3
Member
- Join Date
- Mar 2016
- Posts
- 2
- Rep Power
- 0
- 03-09-2016, 10:27 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
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 **
- 03-09-2016, 04:58 PM #5
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: Playing .mpg video in Java without controls
The JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 03-09-2016, 05:16 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
- 03-10-2016, 07:57 PM #7
Senior Member
- Join Date
- Sep 2014
- Location
- MA, USA
- Posts
- 399
- Rep Power
- 7
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
- 03-11-2016, 10:52 AM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
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
-
Playing video from a Java based Engine
By shiraha in forum New To JavaReplies: 2Last Post: 01-31-2012, 06:13 PM -
playing a video in a java application using jmf
By 200808147 in forum Advanced JavaReplies: 3Last Post: 08-17-2011, 04:01 PM -
Video clips in side bar start playing automagically.
By JosAH in forum Suggestions & FeedbackReplies: 10Last Post: 05-26-2011, 10:01 AM -
How to go about playing video in a Java Application
By Fortu in forum New To JavaReplies: 2Last Post: 02-03-2011, 04:07 AM -
problem with playing video in javafx application
By kiranblighty in forum JavaFXReplies: 1Last Post: 02-27-2010, 01:09 AM
Bookmarks