Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a video game in Java and want to play an MP4. I am making a scene where I show the video as a tutorial on how to play. Are there any specific media APIs which I can look into?

What I have tried:

I have tried looking for some APIs. I found tutorials on Youtube but nothing worked, what can I do?
Posted
Updated 28-Jan-22 22:03pm

1 solution

Don't waste time on YouTube, their so called tutorials are rarely worth the time. Java has a fully featured sound package that you can make use of. See Trail: Sound (The Java™ Tutorials)[^]. Also, here is a quick and dirty sample: Java sound example: How to play a sound file in Java | alvinalexander.com[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900