MediaPlayer | JavaFX GUI Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 56

  • @JavaCodeJunkie
    @JavaCodeJunkie  4 года назад

    Hope you enjoy this video about the JavaFX MediaPlayer!

  • @740iOrientBlue
    @740iOrientBlue 11 месяцев назад

    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?

  • @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

  • @740iOrientBlue
    @740iOrientBlue 11 месяцев назад

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

  • @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.

  • @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!

  • @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.

  • @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.

  • @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 3 года назад

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

    • @JavaCodeJunkie
      @JavaCodeJunkie  3 года назад

      @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! 😄