C# Projects - Create a Media Player with a Playlist in windows forms and visual studio

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • Source Code - www.mooict.com...
    Hi, In this tutorial we will be making a Media Player app using Windows Form Application, C# programming in Visual Studio. This app will allow you to open a folder and if there are video files such as MP4, AVI, MKV, WEBM or WMV files then it will simply load it into the application and play it using the Media Player component from Windows Form. It will keep a track of which video is playing and you can control the play list from a list box. You can change the videos and skip to the next one from there or the app will simply keep playing the video until it finished and restart again.

Komentáře • 30

  • @tayaro2453
    @tayaro2453 Před 2 lety +3

    So it´s like spotify you make yourself. Like the concept of it!

    • @mooict
      @mooict  Před 2 lety +1

      I suppose you can use for music as well. I thought it would be a fun experiment to work with video files, this is the result I've been using it for a bit now and it made life a lot easier.

  • @FrozenHack
    @FrozenHack Před 2 lety +5

    Thanks man you explain the code so good, and nice tutorial!

    • @mooict
      @mooict  Před 2 lety +3

      You're welcome. Have fun coding.

  • @muhammadanisfakhriansyah2699

    you can do what you want!

    • @mooict
      @mooict  Před 2 lety

      Yes 😂 coding is the best

  • @andersonpayne9773
    @andersonpayne9773 Před 8 měsíci

    Fantastic instructions please show how to code 12 band equalizer in c#

  • @carloscosta4713
    @carloscosta4713 Před 2 lety +2

    Parabéns pelo excelente trabalho!!

  • @lukasavle3153
    @lukasavle3153 Před 3 měsíci

    Good day! Sorry if I bother you, it won't add windows media player to me.

  • @underground_laboratory-x
    @underground_laboratory-x Před 9 měsíci

    Thank you for this lesson. How to repeat the selected file? Repeat button.

  • @IamUAV
    @IamUAV Před rokem +1

    Very insightful, thank you.

    • @mooict
      @mooict  Před rokem

      Glad it was helpful!

  • @Kobubu
    @Kobubu Před 2 lety +1

    Thank you for your amazing job!

  • @user-hm6dr1oi3g
    @user-hm6dr1oi3g Před rokem

    check definition picture before publication. white font in VS impossible read

  • @haophamtrong
    @haophamtrong Před rokem

    Dear Moo ICT, I try create application with your code, but i realized that the program increase memory, so how to fix this problem?. I have test with 12 video duration 10s in folder. Thanks

  • @andersonpayne9773
    @andersonpayne9773 Před 8 měsíci

    From barbados you are the best

    • @mooict
      @mooict  Před 8 měsíci

      Hi 👋 thank you!

  • @xircelofficial9652
    @xircelofficial9652 Před rokem +1

    Bro i wanna ask, the program worked, but when i choose a video, the video wont work .
    It has this message “system.windows.form+listbox” and all my video cannot be played
    How to fix this?

    • @mooict
      @mooict  Před rokem

      Could you paste the whole error message? I’ll take a look

    • @_exr-yabal
      @_exr-yabal Před 9 měsíci

      @@mooict The file you are attempting to play has an extension (.Listbox+ SelectedObjectCollection) that does not match the file format. Playing the file may result in unexpected behavior.
      I assume we encountered similar issues, do u know how to fix it?

  • @TOP123ization
    @TOP123ization Před 2 lety +2

    thanks

  • @IamJoashNighy
    @IamJoashNighy Před 2 lety

    it says when I click the media player state change event
    the error of CS1752: Interop type: cannot be embedded. Use the applicable interface instead.

    • @kenkoch2843
      @kenkoch2843 Před 6 měsíci

      I could care less about the app, it's just an app. I seems like it is a .net standard app, but maybe not. However, I have yet to find a way around this interop problem, and it isn't mentioned once. I have tried using the "interface" method with no luck so far. Getting the media player to work in .net framework is easy. In .net standard not so much. If you have found a way, please let me know. I know that this video a a year old, but....

    • @IamJoashNighy
      @IamJoashNighy Před 6 měsíci

      @kenkoch2843 i forgot how i solve this problem. I cant recall if it was because i was using .net core instead of the framework one. Nah, but i landed in a way i used the external media player instead of integrating it inside my app.

  • @Getorix
    @Getorix Před rokem +1

    How would I be able to make the player alternate between folders? Would like to make a custom player that will play music with custom bumps in between.
    Awesome video by the way. Thank you for sharing your knowledge.

  • @yavuzbey5097
    @yavuzbey5097 Před rokem

    Can't play WEBM

  • @wylesagota
    @wylesagota Před rokem

    How to make it full screen?

    • @mooict
      @mooict  Před rokem +2

      When the app is running right click on the media player and click on full screen option.

    • @wylesagota
      @wylesagota Před rokem

      @@mooict thanks!..and how to make slide playlist sir?

  • @maciejspawinski1301
    @maciejspawinski1301 Před rokem

    WOW FIINALLY SOMEONE WHO SPEAKS ENGLISH ENGLISH NOT INDIAN ENGLISH