MediaPlayer | JavaFX GUI Tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 56

  • @JavaCodeJunkie
    @JavaCodeJunkie  4 ปีที่แล้ว

    Hope you enjoy this video about the JavaFX MediaPlayer!

  • @740iOrientBlue
    @740iOrientBlue ปีที่แล้ว

    Additional, I was using a Java 1.8 version and it didn't support lambda. jdk1.8.0_202 did support it. What "main" are you running?

  • @blindobi
    @blindobi 3 ปีที่แล้ว

    Hello @java code Junkie, I was wondering if you did this same video but using FXML and Scene builder?

    • @JavaCodeJunkie
      @JavaCodeJunkie  3 ปีที่แล้ว

      @Blindobi - Are you requesting that I make this using FXML and Scene Builder?

    • @im-fr0sty72
      @im-fr0sty72 3 ปีที่แล้ว +1

      @@JavaCodeJunkie great series man, hats off 👏
      Was asking myself if you are going to feed us more JavaFX videos? Like FXML, animations, images, treeview etc. Then again, thanks for your tutorials!

    • @JavaCodeJunkie
      @JavaCodeJunkie  3 ปีที่แล้ว

      @iM- Fr0sty - Thank you for the kind words! 🙏 The plan is to cover all of those things that you mentioned, one video at a time! 😃

  • @olankendrickcanobas5184
    @olankendrickcanobas5184 4 ปีที่แล้ว +1

    thank you very much bro!! more powers to your channel

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว

      Welcome 👍 Happy to help!

    • @olankendrickcanobas5184
      @olankendrickcanobas5184 4 ปีที่แล้ว

      @@JavaCodeJunkie have you seen my code bro?

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว

      @@olankendrickcanobas5184 - Where would I see your code?

    • @olankendrickcanobas5184
      @olankendrickcanobas5184 4 ปีที่แล้ว

      @@JavaCodeJunkie here bro. i just comment it in here.

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว

      @Olan Kendrick Canobas - I do not see code in any of your comments. If your code is long, you can send it to my email address: admin at javacodejunkie dot com.

  • @740iOrientBlue
    @740iOrientBlue ปีที่แล้ว

    Is there another tutorial for launcher? Should the extend Application? I notice you run "launcher"

  • @TnGKnow
    @TnGKnow ปีที่แล้ว +1

    i am getting these two errors : Error: Unable to initialize main class application.Medd
    Caused by: java.lang.NoClassDefFoundError: javafx/scene/media/MediaView

  • @arjunsundaram1549
    @arjunsundaram1549 3 ปีที่แล้ว +1

    I did exactly what you did but when I compile and run, i get this error: JavaFX runtime components are missing, and are required to run this application
    How should I fix this? Thanks

    • @JavaCodeJunkie
      @JavaCodeJunkie  3 ปีที่แล้ว

      @Arjun Sundaram - Check the VM Arguments for your Run Configuration. They should be similar to the following:
      --module-path ${PATH_TO_JAVAFX} --add-modules javafx.controls,javafx.fxml,javafx.graphics,javafx.media
      (substitute the path to your JavaFX library files. ie. the lib folder)
      Cheers!

  • @raviel498
    @raviel498 4 ปีที่แล้ว +2

    Nice video. But Why are you not using Scenebuilder ?

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว +5

      @Raviel - Thank you for the question! Most of my videos at this point are targeted to JavaFX beginners. I do not think that it is appropriate to introduce additional software at a point where a viewer may not yet understand the underlying concepts of creating a user interface. I do plan to cover Scene Builder later in the series.

  • @olankendrickcanobas5184
    @olankendrickcanobas5184 4 ปีที่แล้ว

    this tutorial is almost what i need bro.i just need the one that can embed network url can u help me bro? thank you very much!!

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว +1

      @Olan Kendrick Canobas - Perhaps I can help you if you give me more details on exactly what you are trying to achieve. Are you trying to embed a JavaFX MediaPlayer in a web page??? If you can explain in more detail along with some code that you have tried, I may be able to point you in the right direction.

  • @olankendrickcanobas5184
    @olankendrickcanobas5184 4 ปีที่แล้ว

    hello bro I am trying to embed a JavaFX MediaPlayer in a web page is it possible?

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว

      @Olan Kendrick Canobas - Short answer is there is no way to embed a JavaFX Media Player in a web page. But you can display an embedded video in a JavaFX WebView as I have already shown you.

  • @amirulmukminin7765
    @amirulmukminin7765 2 ปีที่แล้ว +1

    hi sir. i hope u noticed this video. i followed every single step but it gives me this error
    java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = main

    • @JavaCodeJunkie
      @JavaCodeJunkie  2 ปีที่แล้ว

      @Amirul Mukminin - Thank you for the question. Can you please check to ensure that the class Launcher.java extends Application.
      Also, FYI, the entire project code is available for download from GitHub.
      github.com/JavaCodeJunkie/javafx
      Hope this helps,
      Cheers!

    • @amirulmukminin7765
      @amirulmukminin7765 2 ปีที่แล้ว +1

      @@JavaCodeJunkie thank you sir. I resolved this problem but when i run it the video only has audio but no video, just white screen

    • @JavaCodeJunkie
      @JavaCodeJunkie  2 ปีที่แล้ว

      @Amirul Mukminin - Have you downloaded the project code from GitHub and compared the code to what you have?

    • @amirulmukminin7765
      @amirulmukminin7765 2 ปีที่แล้ว

      @@JavaCodeJunkie ahh i seee where i got it wrong. Thank you sir!

    • @KanizFatema-co3eu
      @KanizFatema-co3eu ปีที่แล้ว

      @@JavaCodeJunkie hello I cannot seem to find the code in git can you name the file? Thank you

  • @adja8227
    @adja8227 ปีที่แล้ว

    huhu idk why my private hbox and everything is crossmarks

  • @rezahajivand7498
    @rezahajivand7498 ปีที่แล้ว

    Hi davide

  • @olankendrickcanobas5184
    @olankendrickcanobas5184 4 ปีที่แล้ว

    are you busy bro?

    • @JavaCodeJunkie
      @JavaCodeJunkie  4 ปีที่แล้ว

      @Olan Kendrick Canobas - Always busy. There are always more things to do than there is time to do them. That's life, I guess! 😄