Java Programming tutorial How to Make Media Player

Download Media Player:

Java Programming tutorial How to Make Media Player.

In this tutorial i will teach you how to make media player using Java Fx programming language and we will use Fxml to create User Interface with and i will teach you how to apply style to your application using CSS .

this is complete tutorial for making media player in java from scratch to advance.

Follow me on Twitter and Facebook if you have any question about this video Links Are in Description.

Javascript Tutorial:

Facebook group:

Let’s Connect:
Snapchat:Add me on Snapchat! Username: mirzaawais

Follow Umair :

Business inquiry :


Slastičarna Paris says:

Hello friend. You have here a several problems. Problems are: 1. seekSlider gives a wrong information, 2. you can play multiple videos at the same time (but can control only one), 3. when you resize a screen all messed up, btw. tutorial is good.

Ahmet Batu Orhan says:

Hi Awais Mirza,

First of all, that was a great tutorial. However, I faced with a small problem. Rather than letting the user select the movie from the folder, my application directly opens the movie according to the user’s actions. I can start the movie inside my application. However, I cannot change the file path according to my application.

How can I do it with a small method? Thanks a lot.

Have a beautiful day!

Aystogon says:

Very nice! Keep it up!

vinayak kaviskar says:

Great tutorial and fun project to do. Thanks for sharing the knowledge.

Olivér Kovács says:

ChangeListener() is not working for me. No suitable method….

Vinayak Sharma says:

Awaiz, the image for open file button isn’t loading.

WARNING: Error loading image: jar:file:/C:/Users/Rahul/Documents/NetBeansProjects/Canary%20Media%20Player/dist/run2061039096/Canary%20Media%20Player.jar!/canary/media/images/folder1.png

This shows up when I run the project. Please help me out here.

Mohamoud Osman Hamud says:

Hi , Teacher One Again Another error When I write A meohod Of Mouse Event Handler
My Error Is Like That

” type argument MouseEvent is not within bounds of type-variable T
where T is a type-variable:
T extends Event declared in interface EventHandler

cannot find symbol
symbol: method setOnMouseClicked(>)
location: class seekSlider ”

Please Help Me Teacher.

Waqas Farooq says:

hi i copied same your media player code
but there will be errors
my program cant access methods through mediaPlayer object
can you see my code and remove errors and guide me?
how i send you my code? your email?

avijit nanda says:

this one is a big comment please read it
earlier it showed that fxml document controller does not have a main method now restarting netbeans it builds everything correctly but when project is runned it shows there was a problem sending the command to the program

Waqas Farooq says:

i have problem in a code in this line there is error
mediaView.setMediaPlayer( mediaPlayer);

Anandita Rohi says:

Can you tell me how to create a video playlist in this and play it serially.

Saarthak Chhabra says:

Hii awais…i have a doubt….when i am changing to full screen mode, the whole borderPane is going fullscreen rather than only the screen(the video)…i am not able to understand the reason behind this……can you help me out???

Ahmed Kadry says:

please can you help me in netbeans ca’t see Scene Builder but it was working before

Maheshwar Prasad says:

Is possible my video is encrypt and watermarkeble through this video

Houcem Khlifi says:

Hey Awais ! I have a problem in the begining , when I right-click the FXML document , the open button does not show up and I can’t have access to the C builder. Please help me on this

Prateek Jain says:

I did same code bt in my project there is no display of video only sound hearplease helpthis show WARNING: Loading FXML document with JavaFX API of version 8.0.111 by JavaFX runtime of version 8.0.25

Joban Bajwa says:

seek not working properly

Marcos Hernandez says:

As I am writing this code this code I am getting the error message cannot find symbol… What am I doing wrong???

Marcos Hernandez says:

Can you please tell me how to install the scene builder? I am not sure but it would appear that I don’t have it installed on my machine. Please someone reply to this freely. I am new to netbeans and have no clue what the hell I am doing. Thank you in advance

Mohamoud Osman Hamud says:

Awais Mirza I have Some Problem The First Time Was I tryed it The Vedio Is Not Playing and Printing Error Like This
“Exception in thread “JavaFX Application Thread” java.lang.RuntimeException: java.lang.reflect.InvocationTargetException”
Please Help me….

Harsh Kumar says:

when i insert the css and modify css file and insert to scene builder and save the project and the it show Exception while runnig application

Xingyu Zhao says:

Hi, I use your method to build a media player in a mac, but I can not choose any file and error shows [QL] Can’t get plugin bundle info at file://localhost/Applications/, can you help out of here

Ghast Iconoclast says:

When writing the block of code for the currentTimeProperty.addListener(),

I get this error:

Cannot find symbol:
symbol: class duration

None of the imports suggested by NetBeans fix the issue.

Devashish Pcydelic says:

Hi I have made a same media player but i Just had couple of question that i wanted to ask you
1 how to display time in the seek slider that how much video is played .
2 MKV file format is not running in this media player how should i make it play

Eshan Singh says:

great job

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours