Skip to content

ItsCosmas/JavaFX-simple-MediaPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Java Media Player with JAVAFX

  • A lightweight project I built while learning java:

  • Below are screenshots of the Media player:

  • A Screenshot of the Media Player Home

  • A Screenshot of the Media Player Home

  • It has a Simple Method to Extract Media Name from the path directory shown in the code.

  • It's pretty basic and only plays MP4 files

  • To Use on Windows uncomment the windows block comment on MainClass.java and block comment the Linux block.


/*	 // On Windows OS
         String [] mediaTitleParts = MEDIA_URL.split(":");
         String mediaTitleSecondPart = mediaTitleParts [1];
         System.out.println(mediaTitleSecondPart);
         String [] MediaTitlePartsMain = mediaTitleSecondPart.split("\\\\");
         MediaClass the Title part which usually the last String after split
 */

	// On Linux and Mac
	String [] MediaTitlePartsMain = MEDIA_URL.split("/");
	//MediaClass the Title part which usually the last String after split
	String MediaTitle = MediaTitlePartsMain [MediaTitlePartsMain.length - 1];

About

Java with JavaFX simple MediaPlayer desktop app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages